I want to create a multi-part dialog but my dialog creation functions automatically set the size of a dialog (with background/border) to the same size.
I am trying to create another dialog and attach it dynamically to the top right or left of my first dialog. This is because the first dialog will resize depending on the number of buttons it has available so that I can expand on my map at any time. I want the second dialog to be placed directly beside the first (allowing settings for offset).
I read some great tutorials by jaminv, greythepirate, and ScorpSCII, combined the aspects that I liked the best and I'm now trying to advance further in my dialog knowledge.
It seems that when I attach a dialog to dialog it only attaches to the anchor of the first dialog and I can offset from there (pointless if the anchor is in centre of screen).
A "master dialog" is not a special kind of dialog, sorry for the confusion. I just wanted to clarify that you simply create 1 single dialog and add several Panel dialog items to it, instead of creating multiple dialogs.
This is helping, just gotta set my dialog sizes from constants, once i get one dialog finished others should come together easily. I'm still running into trouble with selecting and purchasing from the dialog, there is a complicated trigger that I'm trying to use instead of a simple spawn unit. This trigger is supposed to replace the players current hero with the purchased hero.
I'll post the map when I get this dialog set how I want it and preferably a bit cleaner triggers. The map is based on battleships from wc3 and i can't wait to finish it.
Edit: So this is the current dialog, it still has a lot to be improved on though.
Going to make the title bigger and better with an image behind. The sidebar will have the unit portrait of the selected unit as well as the unit's description and stats, the name would appear in the title of the sidebar.
I still need to solve an end of array problem with my selector so that may take some time to get to.
I want to create a multi-part dialog but my dialog creation functions automatically set the size of a dialog (with background/border) to the same size.
I am trying to create another dialog and attach it dynamically to the top right or left of my first dialog. This is because the first dialog will resize depending on the number of buttons it has available so that I can expand on my map at any time. I want the second dialog to be placed directly beside the first (allowing settings for offset).
I read some great tutorials by jaminv, greythepirate, and ScorpSCII, combined the aspects that I liked the best and I'm now trying to advance further in my dialog knowledge.
I would advise using a master dialog, which holds different panels attached to each other. Panels are essentially dialogs within a dialog.
@Alchemist43: Go
"Attach dialog to dialog" should also work. I'm not sure what part of dialogs you're having trouble with, specifically.
@BasharTeg: Go
It seems that when I attach a dialog to dialog it only attaches to the anchor of the first dialog and I can offset from there (pointless if the anchor is in centre of screen).
@Kueken531: Go
How do I create a master dialog with panels?
@Alchemist43: Go
Btw for the offset from the other dialog you can use the width, and height of dialog functions
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Use master dialog and panels within it
A "master dialog" is not a special kind of dialog, sorry for the confusion. I just wanted to clarify that you simply create 1 single dialog and add several Panel dialog items to it, instead of creating multiple dialogs.
@Kueken531: Go
This is helping, just gotta set my dialog sizes from constants, once i get one dialog finished others should come together easily. I'm still running into trouble with selecting and purchasing from the dialog, there is a complicated trigger that I'm trying to use instead of a simple spawn unit. This trigger is supposed to replace the players current hero with the purchased hero.
I'll post the map when I get this dialog set how I want it and preferably a bit cleaner triggers. The map is based on battleships from wc3 and i can't wait to finish it.
Edit: So this is the current dialog, it still has a lot to be improved on though. Going to make the title bigger and better with an image behind. The sidebar will have the unit portrait of the selected unit as well as the unit's description and stats, the name would appear in the title of the sidebar. I still need to solve an end of array problem with my selector so that may take some time to get to.