aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-15 16:16:11 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-15 16:20:26 +0200
commitca0fd4173cb18dd54219a1e8f05ec412e4d707ec (patch)
tree1a59a5358911b4da70d0f72bb21c544a348a3bc2 /src
parent4aa0f040fbe3464a67dbb41904e5d98db2aae5b5 (diff)
downloadminetest-ca0fd4173cb18dd54219a1e8f05ec412e4d707ec.tar.gz
minetest-ca0fd4173cb18dd54219a1e8f05ec412e4d707ec.tar.bz2
minetest-ca0fd4173cb18dd54219a1e8f05ec412e4d707ec.zip
Fix click areas of singleplayer checkboxes
Diffstat (limited to 'src')
-rw-r--r--src/guiMainMenu.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp
index 40f51f97c..553d20018 100644
--- a/src/guiMainMenu.cpp
+++ b/src/guiMainMenu.cpp
@@ -300,41 +300,41 @@ void GUIMainMenu::regenerateGui(v2u32 screensize)
GUI_ID_JOIN_GAME_BUTTON, wgettext("Play"));
}
// Options
- //s32 option_x = 450;
s32 option_x = 50;
s32 option_y = 30;
+ u32 option_w = 150;
{
- core::rect<s32> rect(0, 0, 250, 30);
+ core::rect<s32> rect(0, 0, option_w, 30);
rect += m_topleft_client + v2s32(option_x, option_y);
Environment->addCheckBox(m_data->fancy_trees, rect, this,
GUI_ID_FANCYTREE_CB, wgettext("Fancy trees"));
}
{
- core::rect<s32> rect(0, 0, 250, 30);
+ core::rect<s32> rect(0, 0, option_w, 30);
rect += m_topleft_client + v2s32(option_x, option_y+20);
Environment->addCheckBox(m_data->smooth_lighting, rect, this,
GUI_ID_SMOOTH_LIGHTING_CB, wgettext("Smooth Lighting"));
}
{
- core::rect<s32> rect(0, 0, 250, 30);
+ core::rect<s32> rect(0, 0, option_w, 30);
rect += m_topleft_client + v2s32(option_x, option_y+20*2);
Environment->addCheckBox(m_data->clouds_3d, rect, this,
GUI_ID_3D_CLOUDS_CB, wgettext("3D Clouds"));
}
{
- core::rect<s32> rect(0, 0, 250, 30);
+ core::rect<s32> rect(0, 0, option_w, 30);
rect += m_topleft_client + v2s32(option_x, option_y+20*3);
Environment->addCheckBox(m_data->opaque_water, rect, this,
GUI_ID_OPAQUE_WATER_CB, wgettext("Opaque water"));
}
{
- core::rect<s32> rect(0, 0, 250, 30);
+ core::rect<s32> rect(0, 0, option_w, 30);
rect += m_topleft_client + v2s32(option_x, option_y+20*4);
Environment->addCheckBox(m_data->creative_mode, rect, this,
GUI_ID_CREATIVE_CB, wgettext("Creative Mode"));
}
{
- core::rect<s32> rect(0, 0, 250, 30);
+ core::rect<s32> rect(0, 0, option_w, 30);
rect += m_topleft_client + v2s32(option_x, option_y+20*5);
Environment->addCheckBox(m_data->enable_damage, rect, this,
GUI_ID_DAMAGE_CB, wgettext("Enable Damage"));