GUI_ID_KEY_RANGE_BUTTON,
// other
GUI_ID_CB_AUX1_DESCENDS,
+ GUI_ID_CB_DOUBLETAB_JUMP,
};
GUIKeyChangeMenu::GUIKeyChangeMenu(gui::IGUIEnvironment* env,
Environment->addCheckBox(g_settings->getBool("aux1_descends"), rect, this,
GUI_ID_CB_AUX1_DESCENDS, wgettext("\"Use\" = climb down"));
}
+ offset += v2s32(0, 25);
+ }
+
+ {
+ s32 option_x = offset.X + 10;
+ s32 option_y = offset.Y;
+ u32 option_w = 220;
+ {
+ core::rect<s32> rect(0, 0, option_w, 30);
+ rect += topleft + v2s32(option_x, option_y);
+ Environment->addCheckBox(g_settings->getBool("doubletab_jump"), rect, this,
+ GUI_ID_CB_DOUBLETAB_JUMP, wgettext("Doubltab \"jump\" to toogle fly"));
+ }
+ offset += v2s32(0, 25);
}
{
if(e != NULL && e->getType() == gui::EGUIET_CHECK_BOX)
g_settings->setBool("aux1_descends", ((gui::IGUICheckBox*)e)->isChecked());
}
+ {
+ gui::IGUIElement *e = getElementFromId(GUI_ID_CB_DOUBLETAB_JUMP);
+ if(e != NULL && e->getType() == gui::EGUIET_CHECK_BOX)
+ g_settings->setBool("doubletab_jump", ((gui::IGUICheckBox*)e)->isChecked());
+ }
clearKeyCache();
return true;
}