mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-18 14:23:56 -07:00
Use white text in the mod selection screen. Patch by Nescio.
Differential Revision: https://code.wildfiregames.com/D911 This was SVN commit r20195.
This commit is contained in:
parent
b3db71aa63
commit
fd034c9bcd
2 changed files with 18 additions and 18 deletions
|
|
@ -182,7 +182,7 @@ function generateModsList(listObjectName, mods)
|
|||
|
||||
keys.push(foldername);
|
||||
names.push(mod.name);
|
||||
folders.push('[color="45 45 45"](' + foldername + ')[/color]');
|
||||
folders.push('[color="255 255 255"](' + foldername + ')[/color]');
|
||||
|
||||
labels.push(mod.label || "");
|
||||
types.push(mod.type || "");
|
||||
|
|
@ -377,11 +377,11 @@ function areDependenciesMet(mod)
|
|||
{
|
||||
if (isDependencyMet(dependency))
|
||||
continue;
|
||||
guiObject.caption = '[color="250 100 100"]' + translate(sprintf('Dependency not met: %(dep)s', { "dep": dependency })) +'[/color]';
|
||||
guiObject.caption = '[color="255 100 100"]' + translate(sprintf('Dependency not met: %(dep)s', { "dep": dependency })) +'[/color]';
|
||||
return false;
|
||||
}
|
||||
|
||||
guiObject.caption = '[color="100 250 100"]' + translate('All dependencies met') + '[/color]';
|
||||
guiObject.caption = '[color="100 255 100"]' + translate('All dependencies met') + '[/color]';
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -507,7 +507,7 @@ function showModDescription(listObjectName)
|
|||
{
|
||||
var listObject = Engine.GetGUIObjectByName(listObjectName);
|
||||
if (listObject.selected == -1)
|
||||
var desc = '[color="255 100 100"]' + translate("No mod has been selected.") + '[/color]';
|
||||
var desc = '[color="255 255 100"]' + translate("No mod has been selected.") + '[/color]';
|
||||
else
|
||||
{
|
||||
let key = listObject.list[listObject.selected];
|
||||
|
|
|
|||
|
|
@ -94,25 +94,25 @@
|
|||
>
|
||||
<action on="SelectionChange">showModDescription(this.name);</action>
|
||||
<!-- List headers -->
|
||||
<column id="name" color="100 100 200" width="10%">
|
||||
<column id="name" color="255 255 255" width="10%">
|
||||
<translatableAttribute id="heading">Name</translatableAttribute>
|
||||
</column>
|
||||
<column id="modVersion" color="128 128 128" width="7%">
|
||||
<column id="modVersion" color="255 255 255" width="7%">
|
||||
<translatableAttribute id="heading">Version</translatableAttribute>
|
||||
</column>
|
||||
<column id="modFolderName" color="100 100 200" width="13%">
|
||||
<column id="modFolderName" color="255 255 255" width="13%">
|
||||
<translatableAttribute id="heading">(Folder)</translatableAttribute>
|
||||
</column>
|
||||
<column id="modLabel" color="0 60 0" width="18%">
|
||||
<column id="modLabel" color="255 255 255" width="18%">
|
||||
<translatableAttribute id="heading">Mod Label</translatableAttribute>
|
||||
</column>
|
||||
<column id="modType" color="0 128 128" width="12%">
|
||||
<column id="modType" color="255 255 255" width="12%">
|
||||
<translatableAttribute id="heading">Mod Type</translatableAttribute>
|
||||
</column>
|
||||
<column id="modDependencies" color="128 128 128" width="20%">
|
||||
<column id="modDependencies" color="255 255 255" width="20%">
|
||||
<translatableAttribute id="heading">Dependencies</translatableAttribute>
|
||||
</column>
|
||||
<column id="modURL" color="128 128 128" width="24%">
|
||||
<column id="modURL" color="255 255 255" width="24%">
|
||||
<translatableAttribute id="heading">Website</translatableAttribute>
|
||||
</column>
|
||||
</object>
|
||||
|
|
@ -141,25 +141,25 @@
|
|||
>
|
||||
<action on="SelectionChange">showModDescription(this.name);</action>
|
||||
<!-- List headers -->
|
||||
<column id="name" color="100 100 200" width="10%">
|
||||
<column id="name" color="255 255 255" width="10%">
|
||||
<translatableAttribute id="heading">Name</translatableAttribute>
|
||||
</column>
|
||||
<column id="modVersion" color="128 128 128" width="7%">
|
||||
<column id="modVersion" color="255 255 255" width="7%">
|
||||
<translatableAttribute id="heading">Version</translatableAttribute>
|
||||
</column>
|
||||
<column id="modFolderName" color="100 100 200" width="13%">
|
||||
<column id="modFolderName" color="255 255 255" width="13%">
|
||||
<translatableAttribute id="heading">(Folder)</translatableAttribute>
|
||||
</column>
|
||||
<column id="modLabel" color="0 60 0" width="18%">
|
||||
<column id="modLabel" color="255 255 255" width="18%">
|
||||
<translatableAttribute id="heading">Mod Label</translatableAttribute>
|
||||
</column>
|
||||
<column id="modType" color="0 128 128" width="12%">
|
||||
<column id="modType" color="255 255 255" width="12%">
|
||||
<translatableAttribute id="heading">Mod Type</translatableAttribute>
|
||||
</column>
|
||||
<column id="modDependencies" color="128 128 128" width="20%">
|
||||
<column id="modDependencies" color="255 255 255" width="20%">
|
||||
<translatableAttribute id="heading">Dependencies</translatableAttribute>
|
||||
</column>
|
||||
<column id="modURL" color="128 128 128" width="20%">
|
||||
<column id="modURL" color="255 255 255" width="24%">
|
||||
<translatableAttribute id="heading">Website</translatableAttribute>
|
||||
</column>
|
||||
</object>
|
||||
|
|
|
|||
Loading…
Reference in a new issue