1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

"Added Custom User Interface functions to allow map makers to add, remove, and adjust UI frames"

Discussion in 'The Lab' started by Duvo, May 4, 2019.

  1. Duvo

    Duvo

    Joined:
    Feb 25, 2018
    Messages:
    13
    Resources:
    0
    Resources:
    0
    This line from the ptr patch notes particularly took my attention.

    we've been given the following natives to play with in JASS, but how do we even use them?;


    constant originframetype ORIGIN_FRAME_GAME_UI = ConvertOriginFrameType(0)
    constant originframetype ORIGIN_FRAME_COMMAND_BUTTON = ConvertOriginFrameType(1)
    constant originframetype ORIGIN_FRAME_HERO_BAR = ConvertOriginFrameType(2)
    constant originframetype ORIGIN_FRAME_HERO_BUTTON = ConvertOriginFrameType(3)
    constant originframetype ORIGIN_FRAME_HERO_HP_BAR = ConvertOriginFrameType(4)
    constant originframetype ORIGIN_FRAME_HERO_MANA_BAR = ConvertOriginFrameType(5)
    constant originframetype ORIGIN_FRAME_HERO_BUTTON_INDICATOR = ConvertOriginFrameType(6)
    constant originframetype ORIGIN_FRAME_ITEM_BUTTON = ConvertOriginFrameType(7)
    constant originframetype ORIGIN_FRAME_MINIMAP = ConvertOriginFrameType(8)
    constant originframetype ORIGIN_FRAME_MINIMAP_BUTTON = ConvertOriginFrameType(9)
    constant originframetype ORIGIN_FRAME_SYSTEM_BUTTON = ConvertOriginFrameType(10)
    constant originframetype ORIGIN_FRAME_TOOLTIP = ConvertOriginFrameType(11)
    constant originframetype ORIGIN_FRAME_UBERTOOLTIP = ConvertOriginFrameType(12)
    constant originframetype ORIGIN_FRAME_CHAT_MSG = ConvertOriginFrameType(13)
    constant originframetype ORIGIN_FRAME_UNIT_MSG = ConvertOriginFrameType(14)
    constant originframetype ORIGIN_FRAME_TOP_MSG = ConvertOriginFrameType(15)
    constant originframetype ORIGIN_FRAME_PORTRAIT = ConvertOriginFrameType(16)
    constant originframetype ORIGIN_FRAME_WORLD_FRAME = ConvertOriginFrameType(17)

    constant framepointtype FRAMEPOINT_TOPLEFT = ConvertFramePointType(0)
    constant framepointtype FRAMEPOINT_TOP = ConvertFramePointType(1)
    constant framepointtype FRAMEPOINT_TOPRIGHT = ConvertFramePointType(2)
    constant framepointtype FRAMEPOINT_LEFT = ConvertFramePointType(3)
    constant framepointtype FRAMEPOINT_CENTER = ConvertFramePointType(4)
    constant framepointtype FRAMEPOINT_RIGHT = ConvertFramePointType(5)
    constant framepointtype FRAMEPOINT_BOTTOMLEFT = ConvertFramePointType(6)
    constant framepointtype FRAMEPOINT_BOTTOM = ConvertFramePointType(7)
    constant framepointtype FRAMEPOINT_BOTTOMRIGHT = ConvertFramePointType(8)

    constant textaligntype TEXT_JUSTIFY_TOP = ConvertTextAlignType(0)
    constant textaligntype TEXT_JUSTIFY_MIDDLE = ConvertTextAlignType(1)
    constant textaligntype TEXT_JUSTIFY_BOTTOM = ConvertTextAlignType(2)
    constant textaligntype TEXT_JUSTIFY_LEFT = ConvertTextAlignType(3)
    constant textaligntype TEXT_JUSTIFY_CENTER = ConvertTextAlignType(4)
    constant textaligntype TEXT_JUSTIFY_RIGHT = ConvertTextAlignType(5)

    constant frameeventtype FRAMEEVENT_CONTROL_CLICK = ConvertFrameEventType(1)
    constant frameeventtype FRAMEEVENT_MOUSE_ENTER = ConvertFrameEventType(2)
    constant frameeventtype FRAMEEVENT_MOUSE_LEAVE = ConvertFrameEventType(3)
    constant frameeventtype FRAMEEVENT_MOUSE_UP = ConvertFrameEventType(4)
    constant frameeventtype FRAMEEVENT_MOUSE_DOWN = ConvertFrameEventType(5)
    constant frameeventtype FRAMEEVENT_MOUSE_WHEEL = ConvertFrameEventType(6)
    constant frameeventtype FRAMEEVENT_CHECKBOX_CHECKED = ConvertFrameEventType(7)
    constant frameeventtype FRAMEEVENT_CHECKBOX_UNCHECKED = ConvertFrameEventType(8)
    constant frameeventtype FRAMEEVENT_EDITBOX_TEXT_CHANGED = ConvertFrameEventType(9)
    constant frameeventtype FRAMEEVENT_POPUPMENU_ITEM_CHANGED = ConvertFrameEventType(10)
    constant frameeventtype FRAMEEVENT_MOUSE_DOUBLECLICK = ConvertFrameEventType(11)
    constant frameeventtype FRAMEEVENT_SPRITE_ANIM_UPDATE = ConvertFrameEventType(12)
    constant frameeventtype FRAMEEVENT_SLIDER_VALUE_CHANGED = ConvertFrameEventType(13)
    constant frameeventtype FRAMEEVENT_DIALOG_CANCEL = ConvertFrameEventType(14)
    constant frameeventtype FRAMEEVENT_DIALOG_ACCEPT = ConvertFrameEventType(15)
    constant frameeventtype FRAMEEVENT_EDITBOX_ENTER = ConvertFrameEventType(16)
     
  2. burner89

    burner89

    Joined:
    Mar 11, 2019
    Messages:
    31
    Resources:
    0
    Resources:
    0
    Have you figured out how to adjust the UI? Is it possible with triggers?
     
  3. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,276
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
  4. burner89

    burner89

    Joined:
    Mar 11, 2019
    Messages:
    31
    Resources:
    0
    Resources:
    0
    Yeah, I wish I knew how to code. I barely understand GUI lol. I just wish someone could make some sort of Jass template/GUI thing where noobs like me can just plug in numbers and edit the UI that way. Kinda like Missile GUI, where you can just edit values and get the missile you want.