• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Making 24 'buttons' in UI but what's wrong?!

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
I started making something like a custom UI starting with 24 buttons alligned to the button of the screen ( 3 rows of 8 ).
For some reason the trigger for (nothing more but) the looks doesn't work.

What am I doing wrong?

  • Global Variables:
  • PlayerDialog = No Dialog <Dialog[16]>
  • DialogButton = No Dialog Item <Dialog Item[16][24]>
  • The Trigger:
    • Events
      • Game - Map initialization
    • Local Variables
      • TempPlayerID = 1 <Integer>
      • ButtonID = 1 <Integer>
      • ButtonX = -224 <Integer>
      • ButtonY = 45 <Integer>
    • Conditions
    • Actions
      • UI - Hide game UI for (Active Players)
      • General - For each integer TempPlayerID from 1 to 16 with increment 1, do (Actions)
        • Actions
          • ------- Dialog Creation
          • Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Center of screen
          • Dialog - Set (Last created dialog) to be fullscreen true
          • Dialog - Hide the background image of (Last created dialog)
          • Variable - Set PlayerDialog[TempPlayerID] = (Last created dialog)
          • ------- Button Creation
          • General - For each integer ButtonID from 1 to 24 with increment 1, do (Actions)
            • Actions
              • Dialog - Create a Button for Dialog (Last created dialog) with the dimensions (62, 62) anchored to Bottom with an offset of (ButtonX, ButtonY) setting the tooltip to "" with button text "" and the hover image set to ""
              • Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (62, 62) anchored to Bottom with an offset of (ButtonX, ButtonY) setting the tooltip to "" using the image Assets\Textures\btn-border-ability.dds as a Normal type with tiled set to true tint color White and blend mode Normal
              • Variable - Set DialogButton[TempPlayerID][ButtonID] = (Last created dialog item)
              • Variable - Set ButtonX = (ButtonX + 64)
              • General - If (Conditions) then do (Actions) else do (Actions)
                • If
                  • ButtonID == 9
                • Then
                  • Variable - Set ButtonY = (ButtonY + 64)
                • Else
                  • General - If (Conditions) then do (Actions) else do (Actions)
                    • If
                      • ButtonID == 17
                    • Then
                      • Variable - Set ButtonY = (ButtonY + 64)
                    • Else
 
Status
Not open for further replies.
Top