I'm trying to set up a simple menu that the player can expand and collapse during the game.
I originally started out with a dialog box and a button inside that dialog taking up the whole black background, however I really don't need the borders of the dialog. So is there any way I can remove it? Or change the dialog to a simple square that the entire button can take up?
Right now I have it made using screen buttons, however some of the buttons have a screen image inside it, so I need a tooltip that can show when they mouse over it to explain the button, and I can't seem to do this, hence why I may have to go back to dialogs.
One thing you should do is create a Civilian unit group and when you create the civilian for a player make a new action right after to add the last created unit to the Civilian unit group, Then kill the units in the specific region from the civilian unit group.
I totally agree with you, no map should have a vote to decide settings that should be set before the game is even launched, there are several maps i enjoy playing alot, but if a certain voteable option gets turned on I bail instantly.
You don't like the fact that each player is able to choose their favourite option? eg. pick the time length of the game? Unless you can actually have a physical voting system in the lobby, which I didn't know you could do...
The Tutorial Section has a list of many extremely helpful tutorials. One such is this tutorial which seems to be just what you are looking for. Have a go at this and post back here with any problems or questions you may have.
I currently have my working voting system to select between 3 different options, Terran, Protoss and Zerg. I've seen plenty of tutorials for voting but all of them either only include 2 options for the user, or doesn't include a random option (so if option 1 and 3 tie then it will automatically select option 1).
How can I go about setting up this random option? Currently I have lots of IF statements that checks option 1 votes against 2 votes, then 1 against 3 and so on, but there are just so many that I've become lost. Is there a simple way to do what I need?
EDIT: I came up with a solution for my problem (even though I am certain there are easier options), however I have another voting system after this that has 6 options. If I wanted to implement my solution for my first problem into this problem, then that would mean a ton more code. So does anybody have any ideas as to what I could do?
0
Thanks guys,
I got what I needed by hiding the dialog background :)
0
I'm trying to set up a simple menu that the player can expand and collapse during the game.
I originally started out with a dialog box and a button inside that dialog taking up the whole black background, however I really don't need the borders of the dialog. So is there any way I can remove it? Or change the dialog to a simple square that the entire button can take up?
Right now I have it made using screen buttons, however some of the buttons have a screen image inside it, so I need a tooltip that can show when they mouse over it to explain the button, and I can't seem to do this, hence why I may have to go back to dialogs.
0
@Jadilus: Go
One thing you should do is create a Civilian unit group and when you create the civilian for a player make a new action right after to add the last created unit to the Civilian unit group, Then kill the units in the specific region from the civilian unit group.
0
You don't like the fact that each player is able to choose their favourite option? eg. pick the time length of the game? Unless you can actually have a physical voting system in the lobby, which I didn't know you could do...
0
@Artanis186: Go
The Tutorial Section has a list of many extremely helpful tutorials. One such is this tutorial which seems to be just what you are looking for. Have a go at this and post back here with any problems or questions you may have.
0
I currently have my working voting system to select between 3 different options, Terran, Protoss and Zerg. I've seen plenty of tutorials for voting but all of them either only include 2 options for the user, or doesn't include a random option (so if option 1 and 3 tie then it will automatically select option 1).
How can I go about setting up this random option? Currently I have lots of IF statements that checks option 1 votes against 2 votes, then 1 against 3 and so on, but there are just so many that I've become lost. Is there a simple way to do what I need?
EDIT: I came up with a solution for my problem (even though I am certain there are easier options), however I have another voting system after this that has 6 options. If I wanted to implement my solution for my first problem into this problem, then that would mean a ton more code. So does anybody have any ideas as to what I could do?