Old revision #pcjfb5zge | New revision #pb6cuve2a | ||
---|---|---|---|
1 | 1 | /* Display "Configure" or "Settings" button: */ | |
2 | _game_mode != GM_NORMAL // not in a game, and thus, display the "Configure" button | 2 | _game_mode != GM_NORMAL // not in a game, and thus, display the "Configure" button |
3 | _game_mode == GM_NORMAL // in a game, check if something is selected or not | 3 | _game_mode == GM_NORMAL // in a game, check if something is selected or not |
4 | 4 | … | … |
13 | this->selected_slot == OWNER_DEITY // it's a GS slot, and thus, display the "Settings" button | 13 | this->selected_slot == OWNER_DEITY // it's a GS slot, and thus, display the "Settings" button |
14 | 14 | ||
15 | /* Check for orange and red AI slots */ | 15 | /* Check for orange and red AI slots */ |
16 | 16 | Company::IsValidAiID(selected_slot) = false // AI slot is orange, and thus, "Configure" | |
17 | 17 | Company::IsValidAiID(selected_slot) = true // AI slot is either red or green, check IsDead | |
18 | 18 | ||
19 | Company::Get(selected_slot)->ai_instance->IsDead() = true // AI slot is red, and thus, display the "Configure" button | 19 | Company::Get(selected_slot)->ai_instance->IsDead() = true // AI slot is red, and thus, display the "Configure" button |
20 | Company::Get(selected_slot)->ai_instance->IsDead() = false // AI slot is green, and thus, display the "Settings" button | 20 | Company::Get(selected_slot)->ai_instance->IsDead() = false // AI slot is green, and thus, display the "Settings" button |