From 5a9a9d113f88ab4e3f9e570397a744760d4520c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Oct 2012 20:39:51 +0300 Subject: Extend radio button theming. New options: padding - padding from all sides except left imagePadding - padding from left before image imageSize - image size for computation width spacing - space between image and text width = imagePadding + imageSize + spacing + text width + padding height = padding + text height + padding --- data/graphics/gui/radio.xml | 5 ++ src/gui/charcreatedialog.h | 8 +-- src/gui/quitdialog.cpp | 6 +- src/gui/quitdialog.h | 18 ++--- src/gui/registerdialog.h | 8 +-- src/gui/widgets/checkbox.cpp | 2 +- src/gui/widgets/radiobutton.cpp | 137 +++++++++++++++++++----------------- src/gui/widgets/radiobutton.h | 16 +++-- src/guichan/widgets/radiobutton.cpp | 4 -- 9 files changed, 108 insertions(+), 96 deletions(-) diff --git a/data/graphics/gui/radio.xml b/data/graphics/gui/radio.xml index d825e5973..8d4040536 100644 --- a/data/graphics/gui/radio.xml +++ b/data/graphics/gui/radio.xml @@ -1,5 +1,10 @@ +