Loading

Revision differences

Old revision #pcjfb5zgeNew revision #pb6cuve2a
1Display "Configure" or "Settings" button:  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  
  
13this->selected_slot == OWNER_DEITY // it's a GS slot, and thus, display the "Settings" button  13this->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 */  
16IsValidAiID = false // AI slot is orange, and thus, "Configure"  16Company::IsValidAiID(selected_slot) = false // AI slot is orange, and thus, "Configure"
17IsValidAiID = true  // AI slot is either red or green, check IsDead  17Company::IsValidAiID(selected_slot) = true  // AI slot is either red or green, check IsDead
18  18  
19Company::Get(selected_slot)->ai_instance->IsDead() = true  // AI slot is red, and thus, display the "Configure" button  19Company::Get(selected_slot)->ai_instance->IsDead() = true  // AI slot is red, and thus, display the "Configure" button  
20Company::Get(selected_slot)->ai_instance->IsDead() = false // AI slot is green, and thus, display the "Settings" button 20Company::Get(selected_slot)->ai_instance->IsDead() = false // AI slot is green, and thus, display the "Settings" button