summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-27 23:03:55 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-27 23:03:55 +0000
commit1c390bc80c21461b77d83c889af786123da9005d (patch)
treecc732b58d1b5bb49d33bade0a63299feb866aa93 /src/gui/gui.cpp
parent6b37586c309017c6ba0c3cd7b9c551cfd8de731a (diff)
downloadmana-1c390bc80c21461b77d83c889af786123da9005d.tar.gz
mana-1c390bc80c21461b77d83c889af786123da9005d.tar.bz2
mana-1c390bc80c21461b77d83c889af786123da9005d.tar.xz
mana-1c390bc80c21461b77d83c889af786123da9005d.zip
Added radiobutton class and aqua graphic for it.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 45599520..24069cda 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -360,6 +360,12 @@ blit(temp2, gui_skin.bar.bg.grid[3], 0, 0, 0, 0, 3, 11);
blit(temp2, gui_skin.bar.bg.grid[4], 4, 0, 0, 0, 1, 11);
blit(temp2, gui_skin.bar.bg.grid[5], 13, 0, 0, 0, 3, 11);
}
+void loadRadioSkin() {
+gui_skin.radiobutton.normal = load_bitmap("data/Skin/radioout.bmp", NULL);
+gui_skin.radiobutton.checked = load_bitmap("data/Skin/radioin.bmp", NULL);
+gui_skin.radiobutton.disabled = load_bitmap("data/Skin/radioout.bmp", NULL);
+gui_skin.radiobutton.disabled_checked = load_bitmap("data/Skin/radioin.bmp", NULL);
+}
void loadPlusSkin() {
//BITMAP *temp1 = load_bitmap("data/bar.bmp", NULL);
//BITMAP *temp2 = load_bitmap("data/bar_filled.bmp", NULL);
@@ -447,6 +453,7 @@ int gui_load_skin(const char* skinname) {
loadButtonSkin();
loadSliderSkin();
loadCheckboxSkin();
+ loadRadioSkin();
loadTextboxSkin();
loadListboxSkin();
loadDialogSkin();