E2150 - Custom Interface Guide: Difference between revisions

Content added Content deleted
(added link to forum)
(exporting files)
Line 47: Line 47:


Exported in that way files should work in game after compilation.
Exported in that way files should work in game after compilation.

== Changing lights and highlighting ==
[[File:Interface lightstext.png|thumb|400px|right|Found highlighting color definition]]
You may want to change lights on buildings and units (researches) visible in every animated menu. For that you have to find the right values in
'''''Dialogs.txt''''' file. You can find any colour definition by searching for 0xFF string. Corresponding item on the list was Item:20 Animated button.

You must know that Earth have one strange thing with hex color codes, namely it has changed order of RGB values (same as for EarthNet chat color codes). If your desired color have for example - #0000ff (very blue), you would write something like that '''0xFF<your color code>''':
0xFF0000FF
But in Earth codes are more like '''BGR''' than RGB, so.. in order to achieve color blue you have to write:
0xFFFF0000


== Final interface creation ==
[[File:Interface make dir.PNG|thumb|400px|right|Make file inside template folder]]
After you are done with changings all you need to do is launching the '''''Make_interface.bat''''' file inside your template directory.

In case your directory tree differs the script may not find the tools for compiling the interface so you better ensure it's correct or simply edit '''.bat''' file and paste the right path to your '''Tools''' folder. Of course beside that you can change the name of the interface which will be displayed in-game in options' combobox.

[[File:Interface change dir.PNG|thumb|400px|none|Path to tools inside .bat file]]