Custom UI Addons Quick Tutorial

Talk here about anything related to the Custom Interfaces. Tutorials and so on.
IronDonut
Posts: 3
Joined: Tue Jan 14, 2020 10:58 pm

Custom UI Addons Quick Tutorial

Postby IronDonut » Tue Aug 25, 2020 3:19 am

Navigate towards your Dragon Raja Global installation folder.
Go into Data
Go into UI
Go into Addons
e.g. C:\Dragon Raja Global\Data\UI\Addons

Inside the Addons folder create a new folder called anything you want
ex. Wizard (we'll use Wizard spells for this example)
Inside this Wizard folder: C:\Dragon Raja Global\Data\UI\Addons\Wizard
We're going to create 2 files: addon.inf and MainBar.ui

File 1: addon.inf
Open up a new Notepad document and copy & paste this:

Code: Select all

[infos]
name=Wizard
description=Adds an extra spellbar on the screen.
enabled=1
addon_version=1
client_version=1

[interface]
count=1
interface0=MainBar.ui


Go to File>Save As
Now navigate towards your Wizard folder we created earlier
C:\Dragon Raja Global\Data\UI\Addons\Wizard

We want to change the "Save as type" to All Files
then we name the file addon.inf and save
AllFiles.JPG


File 2: MainBar.ui
Open up a new Notepad document and type this (can't copy and paste because the formatting screws up. I'll attach example files at the end for you to download to make it easier and quicker)

Code: Select all

UIName=MainBar
{
   ox=775
   oy=0
   active=1
   silent=0
   permanent=1
   hidden=0
   SizeFromElement=Layout
   UILayout=VBox
   {
      name=Layout
      offset=0
      UIElement=MagicIcon
      {
         name=ExtraSpell1
         image=Data/UI/Resources/MainInterface/quickmagic
         magic=1
         type=0
         shortcut=6
      }
    }
}


Now just like we did for addons.inf we're going to do for MainBar.ui

Go to File>Save As
Now navigate towards your Wizard folder
C:\Dragon Raja Global\Data\UI\Addons\Wizard

Change the "Save as type" to All Files
Finally name the file MainBar.ui and save

To add additional spells we'll add another one of these guys in the code but, we're going to change some fields

Code: Select all

            
      UIElement=MagicIcon
      {
         name=ExtraSpell2     // Has to be a Unique name (Found it easiest just to number them and increment)
         image=Data/UI/Resources/MainInterface/quickmagic
         magic=2         // This is the Spell ID for the spell you want this hotkey to be (2 = Protection)
         type=0         // 0 for Spells and 1 for Combat Skills
         shortcut=7      // This is the key you're assigning the spell/skill to. (Note not all keys are usable)
      }


Now our MainBar.ui should look like this:

Code: Select all

UIName=MainBar
{
   ox=775
   oy=0
   active=1
   silent=0
   permanent=1
   hidden=0
   SizeFromElement=Layout
   UILayout=VBox
   {
      name=Layout
      offset=0

      UIElement=MagicIcon
      {
         name=ExtraSpell1
         image=Data/UI/Resources/MainInterface/quickmagic
         magic=1
         type=0
         shortcut=6
      }
      UIElement=MagicIcon
      {
         name=ExtraSpell2
         image=Data/UI/Resources/MainInterface/quickmagic
         magic=2
         type=0
         shortcut=7
      }
   }
}


Save and Start up Dragon Raja
Go into Options>Interface>Addons
Make sure the Wizard and Enable outdated addons boxes are checked
Now you're all set and ready to play
(Note: Download the Wizard.zip and edit those files.
Moving the code from Notepad to the forum back to Notepad screws up the formatting and copy & paste won't work)
EnableAddons.JPG


For list of Spell & Combat Skill Ids:
https://forum.dragonraja.eu/viewtopic.php?f=58&t=25265

More Info about the Custom UI (Use Chrome and Translate the page unless you can read Chinese)
https://forum.dragonraja.eu/viewtopic.php?f=24&t=26785
Attachments
Wizard.zip
(784 Bytes) Downloaded 5 times

User avatar
care
Posts: 141
Joined: Sun Jun 27, 2010 11:49 am

Re: Custom UI Addons Quick Tutorial

Postby care » Wed Sep 09, 2020 4:37 am

thks dear ;3
feeling lazy. zzzzzzz


Return to “Custom Interfaces”

Who is online

Users browsing this forum: No registered users and 1 guest