View Single Post
Unread 07-02-2012, 12:21 PM   #5
Cairenn
Credendo Vides
Premium Member
Secretui Admin
Join Date: Jun 2011
Posts: 66
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 &amp;&amp; (guimode &amp; GUIMODEFLAGS_INPLAY)"
  />
</Root>

Step 3

Register your module in the preferences
  • For character based UI, use CharPrefs.xml
  • For account based UI, use LoginPrefs.xml
  • For machine based UI, use MainPrefs.xml
Example:
  • Create a file with the name you selected from above in the Customized folder (or edit if one already exists)
  • Add the following lines (for example in CharPrefs.xml):
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Root>
  <Value name="test01_module" value="true"/>
</Root>
  • "true" will have it open by default
Step 4
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:
  • /setoption test01_module <true|false>
  • /setoption test01_module !test01_module
    • (Use this one to be able to easily toggle.)
NOTE: Please note that your movie clips MUST implement a onRelease() function for it to receive any mouse events. (It can be an empty function.)

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.
Cairenn is offline   Reply With Quote