Custom GUI

Since 2.1.0 version, it's possible to use FrameOpenEvent and FrameTag. To change the GUI we will cancel the event passively and then call our own inventory.

One of the way of using FrameOpenEvent is call frame from the event declaration:

my_gui:
    type: world
    events:
        on frame clanlist open:
        - determine passively cancelled
        - inventory open d:my_inventory_script

List of all available frames is here.

Another idea is get a class name by JavaReflectedObjectTag:

my_gui:
    type: world
    events:
        on frame open:
        - define frame <context.frame.reflected_internal_object.simple_class_name>
        - if <[frame]> == "MainFrame":
            - determine passively cancelled
            - inventory open d:my_inventory_script

You have the right to choose the method that you like best.

Example

MyGUI.dsc

You can read denizen guide about creation GUI here.

Last updated