Difference between revisions of "GUI Distribution"
(→XML) |
JungleGeorge (talk | contribs) m |
||
(13 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
= Overview = | = Overview = | ||
− | + | The Anarchy Online GUI can be modified quite throughly. Some of the things which can be modified: | |
+ | * The entire static screenspace | ||
+ | * F10 options menu | ||
+ | * Textures of most GUI elements | ||
+ | * Loading screens | ||
+ | A GUI distribution consist of three sets of files: XML, Loading Screens and Graphics Archive. All these may be placed under cd_image\GUI\GUIName (see Custom GUI: Naming and Placement of files for more info) | ||
+ | |||
+ | == Enabling a custom GUI == | ||
+ | Lets take a specific gui as example: Demoder's upcoming GUI; currently named "DemodersGUI". | ||
+ | <pre>/setoption GUIName "DemodersGUI" | ||
+ | /setoption GUISkin "GUI\DemodersGUI\Archives\default.uvgi"</pre> | ||
+ | If you are distributing a GUI, you might want to add the above to a script which the user can execute. | ||
+ | |||
+ | = Technical Information = | ||
== XML == | == XML == | ||
Locations | Locations | ||
Line 9: | Line 22: | ||
== Loading Screens == | == Loading Screens == | ||
− | Locations | + | Locations |
* Custom: cd_image\gui\GUINAME\gfx\ | * Custom: cd_image\gui\GUINAME\gfx\ | ||
* Default: cd_image\gui\Default\gfx\ | * Default: cd_image\gui\Default\gfx\ | ||
Line 19: | Line 32: | ||
== Graphics Archive == | == Graphics Archive == | ||
− | Locations | + | Locations |
− | * Custom: cd_image\ | + | * Custom: cd_image\GUI\GUIName\Archives\*.UVGI |
− | * | + | * Static archive: cd_image\textures\archives\GUIGFX.UVGI |
− | * | + | * Default active archive: cd_image\textures\archives_ep1\GUIGFX.UVGI |
+ | The active archive overrides the keys in the static archive, and adds custom keys if present. | ||
+ | |||
+ | Custom GUIs archives replace the role of the default active archive. | ||
+ | |||
This folder contains *.UVGA and *.UVGI files. The *.UVGA files contain a series of image files appended one after another. The *.UVGI file is an index with the following format (as of 18.4.0): | This folder contains *.UVGA and *.UVGI files. The *.UVGA files contain a series of image files appended one after another. The *.UVGI file is an index with the following format (as of 18.4.0): | ||
− | |||
number_of_entries | number_of_entries | ||
entry1_key filepos length | entry1_key filepos length | ||
Line 33: | Line 49: | ||
== Recommended Locations == | == Recommended Locations == | ||
* XML files: cd_image\gui\GUIName\ | * XML files: cd_image\gui\GUIName\ | ||
− | * Graphical Archives: cd_image | + | * Graphical Archives: cd_image\GUI\GUINAME\Arhives |
+ | |||
== Files & Folders to avoid == | == Files & Folders to avoid == | ||
You should '''never''' touch these folders, nor files within: | You should '''never''' touch these folders, nor files within: | ||
Line 39: | Line 56: | ||
* cd_image\textures\archives | * cd_image\textures\archives | ||
* cd_image\textures\Archives_ep1 | * cd_image\textures\Archives_ep1 | ||
+ | |||
+ | [[Category: Coding]] |
Latest revision as of 15:44, 8 September 2011
Overview[edit]
The Anarchy Online GUI can be modified quite throughly. Some of the things which can be modified:
- The entire static screenspace
- F10 options menu
- Textures of most GUI elements
- Loading screens
A GUI distribution consist of three sets of files: XML, Loading Screens and Graphics Archive. All these may be placed under cd_image\GUI\GUIName (see Custom GUI: Naming and Placement of files for more info)
Enabling a custom GUI[edit]
Lets take a specific gui as example: Demoder's upcoming GUI; currently named "DemodersGUI".
/setoption GUIName "DemodersGUI" /setoption GUISkin "GUI\DemodersGUI\Archives\default.uvgi"
If you are distributing a GUI, you might want to add the above to a script which the user can execute.
Technical Information[edit]
XML[edit]
Locations
- Custom: cd_image\gui\GUINAME\
- Default: cd_image\gui\Default
These define where static GUI elements are located, and how many GUI elements look.
Loading Screens[edit]
Locations
- Custom: cd_image\gui\GUINAME\gfx\
- Default: cd_image\gui\Default\gfx\
This folder contains an AI, SL and RK loading screen. AO chose which loading screen to use based on the highest expansion of the logged in account.
- ai_loading_login.png: Alien Invasion login screen
- loadingimage_fullscreen.jpg: Shadowlands login screen
- welcome_to_rubika_shadowlands.jpg: Default loading screen
Graphics Archive[edit]
Locations
- Custom: cd_image\GUI\GUIName\Archives\*.UVGI
- Static archive: cd_image\textures\archives\GUIGFX.UVGI
- Default active archive: cd_image\textures\archives_ep1\GUIGFX.UVGI
The active archive overrides the keys in the static archive, and adds custom keys if present.
Custom GUIs archives replace the role of the default active archive.
This folder contains *.UVGA and *.UVGI files. The *.UVGA files contain a series of image files appended one after another. The *.UVGI file is an index with the following format (as of 18.4.0):
number_of_entries entry1_key filepos length entry2_key filepos length ...
Custom GUI: Naming and Placement of files[edit]
Recommended Locations[edit]
- XML files: cd_image\gui\GUIName\
- Graphical Archives: cd_image\GUI\GUINAME\Arhives
Files & Folders to avoid[edit]
You should never touch these folders, nor files within:
- cd_image\gui\Default
- cd_image\textures\archives
- cd_image\textures\Archives_ep1