void TechInfo_Switch (void) { if (TechInfo.active ^= 1) Msg (MSGT_USER, Msg_Get(MSG_TechInfo_Enabled)); else Msg (MSGT_USER, Msg_Get(MSG_TechInfo_Disabled)); gui_box_show(TechInfo.box, TechInfo.active, TRUE); gui_menu_inverse_check(menus_ID.tools, 5); }
void TileViewer_Switch (void) { if (TileViewer.active ^= 1) Msg(MSGT_USER, "%s", Msg_Get(MSG_TilesViewer_Enabled)); else Msg(MSGT_USER, "%s", Msg_Get(MSG_TilesViewer_Disabled)); gui_box_show (TileViewer.box, TileViewer.active, TRUE); gui_menu_toggle_check (menus_ID.tools, 2); }
void TB_Message_Switch(void) { t_app_messages *app = &TB_Message; // Global instance if (app->active ^= 1) Msg(MSGT_USER, "%s", Msg_Get(MSG_Message_Enabled)); else Msg(MSGT_USER, "%s", Msg_Get(MSG_Message_Disabled)); gui_box_show (app->box, app->active, TRUE); gui_menu_toggle_check (menus_ID.tools, 0); }
void AboutBox_Switch() { int menu_pos = 4; #ifdef MEKA_Z80_DEBUGGER menu_pos += 1; #endif AboutBox.active ^= 1; gui_box_show (AboutBox.box, AboutBox.active, TRUE); gui_menu_toggle_check (menus_ID.help, menu_pos); }
void Inputs_CFG_Switch (void) { Inputs_CFG.active ^= 1; gui_box_show (Inputs_CFG.box, Inputs_CFG.active, TRUE); gui_menu_inverse_check (menus_ID.inputs, 7); }
void Options_Switch() { Options.active ^= 1; gui_box_show(Options.box, Options.active, TRUE); gui_menu_toggle_check(menus_ID.file, 8); }