Modding Flash in The Secret World
This post contains information regarding changing the Flash GUI of "The Secret World" (TSW).
Sections |
FILE LOCATIONS
Client folder (default for Windows 7): C:\Program Files (x86)\Funcom\The Secret WorldDefault Flash GUI files <Client Folder>\Data\Gui\Default\FlashFolder for customized Flash GUI files <Client Folder>\Data\Gui\Customized\FlashSource code for Flash GUI <Client Folder>\Data\Gui\Customized\Flash\Sources |
INTRODUCTION
The original TSW Flash GUI is located inside your game client installation folder. Typically, in Windows 7, it would be:
Those files will be loaded in case no customized UI is found. To override the original files with your own version, you will need to publish your own SWF files and place them in:
For example, to override Crafting UI, your file should be:
Sources Folder Inside the Sources folder you will find the following:
|
USEFUL SHORTCUTS/COMMANDS
|
HOW TO ADD A NEW UI:
Step 1 Create a Modules.xml file (or edit if one already exists) in the Customized folder. Step 2 Add your own module by adding the info below (if Modules.xml already exists, just add the Module section to the existing file): Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> Step 3 Register your module in the preferences
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
Load and see you UI in the game client by copying your Test01.swf into the Customized/Flash folder. You can use the following commands to see your UI in game:
NOTE: Please note that you will need to embed the fonts you use into the flash file. |
ADDITIONAL INFO
depth_layer "depth_layer" values map to an enum in CPP code. Here is the mapping: Code:
enum ViewLayer_e |
sub_depth
"sub_depth" sorts the UIs within a depth_layer. If you have all UIs in a layer to have a sub_depth of 0, then the framework will sort by the last clicked. |
flags
Module flags define certain behaviours. See the list below. Code:
GMF_DONT_UNLOAD = 0x0020, // Loaded at first use and kept forever |
criteria
Defines an expression that will determine when your UI can be opened. The start of your expression should always be the variable you defined. In our example: test01_module. Then you should usually only allow the UI to open while your character is in play. This prevents the UI from showing while on the loading screen or cinematics, etc. This is achieved by adding the section: Code:
&& (guimode & GUIMODEFLAGS_INPLAY) |
Scaleform CLIK
Funcom uses the Scaleform middleware in our GUI framework. Scaleform has their own set of basic components called CLIK. Please note that you will not be able to reuse/edit/improve Funcom's flash files that use CLIK components unless you own a license yourself. You may, however, build your own components (buttons, lists, etc) from scratch. |
Example File
You can find a very simple example UI made following this guide in the Customized folder. It is called Test01.swf |
All times are GMT -6. The time now is 03:08 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2020 MMOUI