- Joined
- May 1, 2008
- Messages
- 1,605
Moin moin =)
Well, this is one of the most things that makes me crazy at all! Before I start, with "GUI variables" I mean this variables, which are in this variable monitor when you press Crtl + B.
I'll take as an example my dialog "system". I needed it like this, that I have one part, which creates the dialog and another part which runs all the actions, that should happen when a button of this dialog is clicked.
The problem was now, I didn't get this into only one vJass trigger, so I used GUI variables, to store the dialog and the buttons. In this case I made two triggers, one which runs at game time 0.00 and create + store the dialog + buttons and the second checks what button is clicked and make actions.
Now the question is, when I store the dialog and the buttons only into struct members, can I refer in the second trigger somehow to this struct members?
=====
Also another thing, when I create a GUI variable and convert it into custom text, then I see that this variable starts with udg_ (what does this udg means btw?).
Would something happen, or can this be a solution, when I make an initialized trigger with this:
Is this then a GUI variable which isn't just showed in the "GUI variable monitor (Ctrl + B)"? (I just typed "public" because for me its the most logical word for this case^^)
Note: I used the dialog thing as an example only, so please don't write "Use DialogUtils" - because I don't understand it anyway and I have to say I learn nothing from it when I just take some code an other dude made.
Hope someone understand what I'm trying to say and can help me with this!
Greetings and Peace
Dr. BøøM
Well, this is one of the most things that makes me crazy at all! Before I start, with "GUI variables" I mean this variables, which are in this variable monitor when you press Crtl + B.
I'll take as an example my dialog "system". I needed it like this, that I have one part, which creates the dialog and another part which runs all the actions, that should happen when a button of this dialog is clicked.
The problem was now, I didn't get this into only one vJass trigger, so I used GUI variables, to store the dialog and the buttons. In this case I made two triggers, one which runs at game time 0.00 and create + store the dialog + buttons and the second checks what button is clicked and make actions.
Now the question is, when I store the dialog and the buttons only into struct members, can I refer in the second trigger somehow to this struct members?
=====
Also another thing, when I create a GUI variable and convert it into custom text, then I see that this variable starts with udg_ (what does this udg means btw?).
Would something happen, or can this be a solution, when I make an initialized trigger with this:
JASS:
globals
public button array udg_buttons[4]
endglobals
Is this then a GUI variable which isn't just showed in the "GUI variable monitor (Ctrl + B)"? (I just typed "public" because for me its the most logical word for this case^^)
Note: I used the dialog thing as an example only, so please don't write "Use DialogUtils" - because I don't understand it anyway and I have to say I learn nothing from it when I just take some code an other dude made.
Hope someone understand what I'm trying to say and can help me with this!
Greetings and Peace
Dr. BøøM