File diff r23496:661d21df67d7 → r23497:a0ab44ebd2fa
src/ai/ai_gui.cpp
Show inline comments
 
@@ -643,13 +643,13 @@ struct ScriptTextfileWindow : public Tex
 
	ScriptTextfileWindow(TextfileType file_type, CompanyID slot) : TextfileWindow(file_type), slot(slot)
 
	{
 
		const char *textfile = GetConfig(slot)->GetTextfile(file_type, slot);
 
		this->LoadTextfile(textfile, (slot == OWNER_DEITY) ? GAME_DIR : AI_DIR);
 
	}
 

	
 
	/* virtual */ void SetStringParameters(int widget) const
 
	void SetStringParameters(int widget) const override
 
	{
 
		if (widget == WID_TF_CAPTION) {
 
			SetDParam(0, (slot == OWNER_DEITY) ? STR_CONTENT_TYPE_GAME_SCRIPT : STR_CONTENT_TYPE_AI);
 
			SetDParamStr(1, GetConfig(slot)->GetName());
 
		}
 
	}