So.... the game just starts.... and... I have my base... and my workers. But I *think* I'm close to getting the gui to show up before the game starts. How do I need to do to get it to intercept the player and the beginning of the game?
That's because there is no camera object for the game to reference so it defaults to the bottom left. The same thing happens if you try to pan the camera to a unit that doesn't exist. All you have to do for this is pan the camera immediately to the center of the map or wherever you want it to go.
That or create a camera object and apply it for every player at the start, setting the options to include the target.
Like... When the map loads from the custom game screen (after the countdown and such), I want the screen to be black, and have a 2D interface for selecting some options before the game actually starts. Similar to the monobattle or 1v1-obs screens.
You never gave a command in your entry. There should be a visible/not visible preset as the third parameter, though I couldn't tell you what the code is supposed to be. Not my forte.
http://dl.dropbox.com/u/331982/Help/StarCraft/Editor/GUIWontLaunch1.png
http://dl.dropbox.com/u/331982/Help/StarCraft/Editor/GUIWontLaunch2.png
So.... the game just starts.... and... I have my base... and my workers. But I *think* I'm close to getting the gui to show up before the game starts. How do I need to do to get it to intercept the player and the beginning of the game?
Add a wait time before the melee triggers, or move all of them to a new trigger with the event "Elapsed time is X seconds"
@BasharTeg: Go
So... I removed the game starting actions, and put then into a new function that should get called when any button is pushed (for now).
What is happening is that the map loads, and the camera is in the bottom left corner of the map. =\
That's because there is no camera object for the game to reference so it defaults to the bottom left. The same thing happens if you try to pan the camera to a unit that doesn't exist. All you have to do for this is pan the camera immediately to the center of the map or wherever you want it to go.
That or create a camera object and apply it for every player at the start, setting the options to include the target.
@BasharTeg: Go
Do I need to do that for just a 2D gui?
Like... When the map loads from the custom game screen (after the countdown and such), I want the screen to be black, and have a 2D interface for selecting some options before the game actually starts. Similar to the monobattle or 1v1-obs screens.
Ah, I see. Well for that all you need to do is fade the screen out. There should be an action called "Fade Screen In/Out" or something similar.
@BasharTeg: Go
Thanks, bro. Now I just need to like.. Learn how to do what I want to do in the editor =D
@BasharTeg: Go
Actually, how do I make my buttons visible on my dialog? in my initGUI function, in the second pic I posted.
I currently have the dialog showing up, but no buttons. =(
I've created my interface through code. So... I'd need the function name that show buttons =\
In that case, I think you're in luck: Wiki
@BasharTeg: Go
You sir, are a gentleman, and a scholar.
Though it would be nice for it to have a small code example for each thing...
Like... my buttons don't show up still. =(
You never gave a command in your entry. There should be a visible/not visible preset as the third parameter, though I couldn't tell you what the code is supposed to be. Not my forte.
@BasharTeg: Go
bah, It didn't copy.
the rest of the line:
PlayerGroupActive(), true);
the visible/not visible thing is supposedly just a true/false value according to the wiki. and the editor didn't yell at me for syntax =D
@DerNalia: Go
le bump?