Loading

Paste #pdn5yogmn

  1.     virtual void SetStringParameters(int widget) const
  2.     {
  3.         switch (widget) {
  4.             case WID_AIS_CAPTION:
  5.                 SetDParam(0, (this->slot == OWNER_DEITY) ? STR_AI_SETTINGS_CAPTION_GAMESCRIPT : STR_AI_SETTINGS_CAPTION_AI);
  6.  
  7.                 StringID text;
  8.                 if (GetConfig(this->slot)->GetInfo() != NULL) {
  9.                     SetDParamStr(1, GetConfig(this->slot)->GetInfo()->GetName());
  10.                     text = STR_JUST_RAW_STRING;
  11.                 } else {
  12.                     text = (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI;
  13. //                  char name[1024];
  14. //                  GetString(name, (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI, lastof(name));
  15. //                  const char *script_name = stredup(name);
  16. //                  SetDParam(1, (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI);
  17.                 }
  18.         }
  19.     }

Comments