mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 01:52:16 +00: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:
@@ -182,7 +182,7 @@ function generateModsList(listObjectName, mods)
|
|||||||
|
|
||||||
keys.push(foldername);
|
keys.push(foldername);
|
||||||
names.push(mod.name);
|
names.push(mod.name);
|
||||||
folders.push('[color="45 45 45"](' + foldername + ')[/color]');
|
folders.push('[color="255 255 255"](' + foldername + ')[/color]');
|
||||||
|
|
||||||
labels.push(mod.label || "");
|
labels.push(mod.label || "");
|
||||||
types.push(mod.type || "");
|
types.push(mod.type || "");
|
||||||
@@ -377,11 +377,11 @@ function areDependenciesMet(mod)
|
|||||||
{
|
{
|
||||||
if (isDependencyMet(dependency))
|
if (isDependencyMet(dependency))
|
||||||
continue;
|
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;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -507,7 +507,7 @@ function showModDescription(listObjectName)
|
|||||||
{
|
{
|
||||||
var listObject = Engine.GetGUIObjectByName(listObjectName);
|
var listObject = Engine.GetGUIObjectByName(listObjectName);
|
||||||
if (listObject.selected == -1)
|
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
|
else
|
||||||
{
|
{
|
||||||
let key = listObject.list[listObject.selected];
|
let key = listObject.list[listObject.selected];
|
||||||
|
|||||||
@@ -94,25 +94,25 @@
|
|||||||
>
|
>
|
||||||
<action on="SelectionChange">showModDescription(this.name);</action>
|
<action on="SelectionChange">showModDescription(this.name);</action>
|
||||||
<!-- List headers -->
|
<!-- 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>
|
<translatableAttribute id="heading">Name</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modVersion" color="128 128 128" width="7%">
|
<column id="modVersion" color="255 255 255" width="7%">
|
||||||
<translatableAttribute id="heading">Version</translatableAttribute>
|
<translatableAttribute id="heading">Version</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modFolderName" color="100 100 200" width="13%">
|
<column id="modFolderName" color="255 255 255" width="13%">
|
||||||
<translatableAttribute id="heading">(Folder)</translatableAttribute>
|
<translatableAttribute id="heading">(Folder)</translatableAttribute>
|
||||||
</column>
|
</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>
|
<translatableAttribute id="heading">Mod Label</translatableAttribute>
|
||||||
</column>
|
</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>
|
<translatableAttribute id="heading">Mod Type</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modDependencies" color="128 128 128" width="20%">
|
<column id="modDependencies" color="255 255 255" width="20%">
|
||||||
<translatableAttribute id="heading">Dependencies</translatableAttribute>
|
<translatableAttribute id="heading">Dependencies</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modURL" color="128 128 128" width="24%">
|
<column id="modURL" color="255 255 255" width="24%">
|
||||||
<translatableAttribute id="heading">Website</translatableAttribute>
|
<translatableAttribute id="heading">Website</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
</object>
|
</object>
|
||||||
@@ -141,25 +141,25 @@
|
|||||||
>
|
>
|
||||||
<action on="SelectionChange">showModDescription(this.name);</action>
|
<action on="SelectionChange">showModDescription(this.name);</action>
|
||||||
<!-- List headers -->
|
<!-- 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>
|
<translatableAttribute id="heading">Name</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modVersion" color="128 128 128" width="7%">
|
<column id="modVersion" color="255 255 255" width="7%">
|
||||||
<translatableAttribute id="heading">Version</translatableAttribute>
|
<translatableAttribute id="heading">Version</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modFolderName" color="100 100 200" width="13%">
|
<column id="modFolderName" color="255 255 255" width="13%">
|
||||||
<translatableAttribute id="heading">(Folder)</translatableAttribute>
|
<translatableAttribute id="heading">(Folder)</translatableAttribute>
|
||||||
</column>
|
</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>
|
<translatableAttribute id="heading">Mod Label</translatableAttribute>
|
||||||
</column>
|
</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>
|
<translatableAttribute id="heading">Mod Type</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modDependencies" color="128 128 128" width="20%">
|
<column id="modDependencies" color="255 255 255" width="20%">
|
||||||
<translatableAttribute id="heading">Dependencies</translatableAttribute>
|
<translatableAttribute id="heading">Dependencies</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
<column id="modURL" color="128 128 128" width="20%">
|
<column id="modURL" color="255 255 255" width="24%">
|
||||||
<translatableAttribute id="heading">Website</translatableAttribute>
|
<translatableAttribute id="heading">Website</translatableAttribute>
|
||||||
</column>
|
</column>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
Reference in New Issue
Block a user