I've been having a blast learning dialog triggers. I followed great tutorial on a champion selection dialog. Now I'm tweaking it for my needs.
The dialog is generated using an array, allowing me to easily add or remove champions. One of the ways I'm trying to tweak the dialog is to have icons in the array for the buttons, rather than text.
Is this something that can be stored in an array? While we're at it, am I actually referring to an array? All I know an array is, is a list of items with defined subcategories each item contains. It seems like it could contain images.
Here is the current map save if this helps anything. It's clearly labeled.
If anyone has a dialog that functions this way that I can look at, that'd be great, too.
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
I'd just like to recommend that with patch 1.5.x, Using user type data might be an easier way to manage your icons, as you can have fields with image links.
I've been having a blast learning dialog triggers. I followed this great tutorial on a champion selection dialog. Now I'm tweaking it for my needs.
The dialog is generated using an array, allowing me to easily add or remove champions. One of the ways I'm trying to tweak the dialog is to have icons in the array for the buttons, rather than text.
Is this something that can be stored in an array? While we're at it, am I actually referring to an array? All I know an array is, is a list of items with defined subcategories each item contains. It seems like it could contain images.
Here is the current map save if this helps anything. It's clearly labeled.
If anyone has a dialog that functions this way that I can look at, that'd be great, too.
Thanks yo.
Simple answer to your question is.
Yes you need to create a new array. Perferably Type String.... set the dimensions the same as your other dialog item arrays.
You can store the path of an asset to a string. The editor has a built in asset to string converter. That you then load the values out of them.
But you kinda need to know where the dialog items are updated and how they work.
As stated above, you need a reference of an already created variable of type file image/asset or of a direct game link.
The dimensions are actually the file's number. Think of it like a filing system. File 0 would be first, file 15 would be last. As the way I did it, everything is linked to the heroes number, which in itself is stored for future use and use in "pick each integer" actions.
Did you do this? If so, please link your work.
If you are actually looking for a system to call the image without having to store it manually, I'll let someone else handle that, as I barely have a handle on my current system as it is.
I wouldn't know about the second one, but I imagine it'll be even more complex. :P
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
I've been having a blast learning dialog triggers. I followed great tutorial on a champion selection dialog. Now I'm tweaking it for my needs.
The dialog is generated using an array, allowing me to easily add or remove champions. One of the ways I'm trying to tweak the dialog is to have icons in the array for the buttons, rather than text.
Is this something that can be stored in an array? While we're at it, am I actually referring to an array? All I know an array is, is a list of items with defined subcategories each item contains. It seems like it could contain images.
Here is the current map save if this helps anything. It's clearly labeled.
If anyone has a dialog that functions this way that I can look at, that'd be great, too.
Thanks yo.
An array is a variable that has multiple dimensions. Here is a little tutorial on it. It can anything that is listed under "Type".
Also what do you mean by champions? Is that some kind of super unit?:P
Well, I say champions/heros because that's what a lot of custom maps rock. It's actually more like "tribe" selection, or "faction" selection.
Going to read that now! Before, I added a '- file:image' to my array paramater, and tried to make it display. Got an error message. Hm.
So, does this mean I need a second dimension to my array variable?
@FoxyMayhem: Go
This is my variable that I use for housing hero image files:
Here's how I store it:
And here's how I call it:
Used an (each integer) and a bunch of different, complicated, variables. Disregard spots with variables you don't know what they do.
Hopefully this helps you troubleshoot your problem. :)
(If you need me to elaborate further, feel free to ask.)
I'd just like to recommend that with patch 1.5.x, Using user type data might be an easier way to manage your icons, as you can have fields with image links.
User types data basics
Simple answer to your question is.
Yes you need to create a new array. Perferably Type String.... set the dimensions the same as your other dialog item arrays.
You can store the path of an asset to a string. The editor has a built in asset to string converter. That you then load the values out of them.
But you kinda need to know where the dialog items are updated and how they work.
Thanks guys, I'll dig in and see what I can come up with. Really appreciate it!
I have an array set to string, 0-15, 1 dimension. I have an action "assign variable". How do I assign the image path to the variable?
Alternatively, it seems like I could be putting these images in the name array somehow, but I have no clue (it is also a string).
@FoxyMayhem: Go
As stated above, you need a reference of an already created variable of type file image/asset or of a direct game link.
The dimensions are actually the file's number. Think of it like a filing system. File 0 would be first, file 15 would be last. As the way I did it, everything is linked to the heroes number, which in itself is stored for future use and use in "pick each integer" actions.
Did you do this? If so, please link your work.
If you are actually looking for a system to call the image without having to store it manually, I'll let someone else handle that, as I barely have a handle on my current system as it is.
I wouldn't know about the second one, but I imagine it'll be even more complex. :P
@FoxyMayhem: Go
take a look at my dialog leader board library it has examples of how to do everything your asking about.
http://www.sc2mapster.com/forums/resources/trigger-libraries/43572-library-team-sort-library-leaderboard/#p1
Assign a hero number to each player, that way you can reference everything relating to the hero number.