1
0
forked from 0ad/0ad

gamesetup panel should indicate the AI level without having to open the AI-config panel

Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D1066
This was SVN commit r20529.
This commit is contained in:
mimo 2017-11-26 14:42:10 +00:00
parent 89055ef858
commit 6a10797355

View File

@ -955,6 +955,10 @@ var g_PlayerMiscElements = {
"onPress": (playerIdx) => function() {
openAIConfig(playerIdx);
},
"tooltip": (playerIdx) => sprintf(translate("Configure AI: %(name)s - %(difficulty)s."), {
"name": translateAIName(g_GameAttributes.settings.PlayerData[playerIdx].AI),
"difficulty": translateAIDifficulty(g_GameAttributes.settings.PlayerData[playerIdx].AIDiff)
}),
},
};