void set_menu_mode(long mnu_idx) { if (!menu_is_active(mnu_idx)) { turn_off_all_panel_menus(); turn_on_menu(mnu_idx); } }
void turn_on_main_panel_menu(void) { if (menu_id_to_number(GMnu_MAIN) == MENU_INVALID_ID) { turn_on_menu(GMnu_MAIN); } if (info_tag != 0) { turn_on_menu(GMnu_QUERY); } else if (room_tag != 0) { turn_on_menu(GMnu_ROOM); } else if (spell_tag != 0) { turn_on_menu(GMnu_SPELL); } else if (trap_tag != 0) { turn_on_menu(GMnu_TRAP); } else if (creature_tag != 0) { turn_on_menu(GMnu_CREATURE); } }
void start_resurrect_creature(struct PlayerInfo *player, struct Thing *thing) { struct Dungeon *dungeon; dungeon = get_dungeon(player->id_number); if (dungeon->dead_creatures_count != 0) { if (is_my_player(player)) { dungeon_special_selected = thing->index; resurrect_creature_scroll_offset = 0; turn_off_menu(GMnu_DUNGEON_SPECIAL); turn_on_menu(GMnu_RESURRECT_CREATURE); } } }
void start_transfer_creature(struct PlayerInfo *player, struct Thing *thing) { struct Dungeon *dungeon; dungeon = get_dungeon(player->id_number); if (dungeon->num_active_creatrs != 0) { if (is_my_player(player)) { dungeon_special_selected = thing->index; transfer_creature_scroll_offset = 0; turn_off_menu(GMnu_DUNGEON_SPECIAL); turn_on_menu(GMnu_TRANSFER_CREATURE); } } }