Go to Page... |
|
Thread Tools | Display Modes |
|
07-02-2012, 12:18 PM | #1 |
Modding Flash in The Secret World
This post contains information regarding changing the Flash GUI of "The Secret World" (TSW).
Sections Last edited by Cairenn : 07-02-2012 at 12:57 PM. |
|
07-02-2012, 12:19 PM | #2 |
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 Last edited by Cairenn : 07-02-2012 at 12:42 PM. |
|
07-02-2012, 12:20 PM | #3 |
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:
Last edited by Cairenn : 07-02-2012 at 01:13 PM. |
|
07-02-2012, 12:20 PM | #4 |
USEFUL SHORTCUTS/COMMANDS
Last edited by Cairenn : 07-02-2012 at 01:18 PM. |
|
07-02-2012, 12:21 PM | #5 |
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" ?> <Root> <Module name="Test01" movie = "Test01.swf" flags = "GMF_CLOSE_ON_ESCAPE" depth_layer = "Middle" sub_depth = "0" variable = "test01_module" criteria = "test01_module && (guimode & GUIMODEFLAGS_INPLAY)" /> </Root> Step 3 Register your module in the preferences
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <Root> <Value name="test01_module" value="true"/> </Root>
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. Last edited by Cairenn : 07-02-2012 at 01:26 PM. |
|
07-02-2012, 12:22 PM | #6 |
ADDITIONAL INFO
depth_layer "depth_layer" values map to an enum in CPP code. Here is the mapping: Code:
enum ViewLayer_e { e_ViewLayerDebugBack, // "DebugBack" e_ViewLayerBack, // "Back" e_ViewLayerMiddle, // "Middle" e_ViewLayerTop, // "Top" e_ViewLayerOptions, // "Options" e_ViewLayerDialogs, // "Dialogs" e_ViewLayerTooltip, // "Tooltip" e_ViewLayerDragAndDrop, // "DragAndDrop" e_ViewLayerOnScreenMessage, // "OnScreenMessage" e_ViewLayerSplashScreen, // "SplashScreen" e_ViewLayerSplashScreenTop, // "SplashScreenTop" e_ViewLayerDebugTop // "DebugTop" }; Last edited by Cairenn : 07-02-2012 at 01:29 PM. |
|
SecretUI » Developer Discussions » Tutorials & Other Helpful Info » Modding Flash in The Secret World |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|