Hey I'm really interrested in your project. If you want me then I would like to work with triggers/galaxy or dialogs. I've been working with vJass and Jass in Warcraft III before Starcraft II so I have experience in how Blizzard setup things and such. Also been coding some C and C# etc.. But I'm up, just send me a PM or reply here :)
Well in Warcraft 3 we could use GetHandleId(handle) to get the specific ID of a handle for attaching data. I might sound stupid now but is there any function like that in the Galaxy Editor? Because I can't find it, and I really need it.
Nice Shurke, so when the GalaxyX is coming out will it be like vJass for Warcraft? Because I could really use structs with methods and such. I wish you good luck and I will test it out later, I'm going to bed soon so it is not going to be today sorry. :)
Very nice, I especialy like that you will do Scopes and merge it into 1 script. Much easier! Oh and I will no matter what use Galaxy instead of GUI, It is much faster and easier to write/read Galaxy than GUI. If you have to do some math in GUI like 3 + VARIABLE * VARIABLE then it is such a pain in the ass, but in Galaxy you can just type it in 2 seconds. I hope you will get this done, good luck.
You need those values to make UI to World Coordinates. So a map has the same amount of coordinates as the map size, so if its 168x168 it will have 168 coordinates XY. So if we say
Screen_Height = 1150
and
Screen_Width = 1150
then we need these 2 values:
Your map size's X and Y so if your map is 168x168 its 168x168. Got it?
Now make 2 new variables
Multiplier_X
Multiplier_Y
They will be:
Multiplier_X = Screen_Width/Map_Size_X
Multiplier_Y = Screen_Height/Map_Size_Y
Now we got a multiplier, which is the difference in coordinates between the world and the UI. So if we say you have a unit standing in the middle of the map. Then for converting that to the middle of the screen (in UI) we say:
Unit's X * Multiplier_X
Unit's Y * Multiplier_Y
I hope you got what I mean, I weren't quite sure if this were what you needed. But this can be used for creating custom minimaps and such. I've done it and its much more awesome than the normal minimap :)
0
Hey I'm really interrested in your project. If you want me then I would like to work with triggers/galaxy or dialogs. I've been working with vJass and Jass in Warcraft III before Starcraft II so I have experience in how Blizzard setup things and such. Also been coding some C and C# etc.. But I'm up, just send me a PM or reply here :)
I don't know why some of the text is green?
0
Well in Warcraft 3 we could use GetHandleId(handle) to get the specific ID of a handle for attaching data. I might sound stupid now but is there any function like that in the Galaxy Editor? Because I can't find it, and I really need it.
0
Nice Shurke, so when the GalaxyX is coming out will it be like vJass for Warcraft? Because I could really use structs with methods and such. I wish you good luck and I will test it out later, I'm going to bed soon so it is not going to be today sorry. :)
0
Very nice, I especialy like that you will do Scopes and merge it into 1 script. Much easier! Oh and I will no matter what use Galaxy instead of GUI, It is much faster and easier to write/read Galaxy than GUI. If you have to do some math in GUI like 3 + VARIABLE * VARIABLE then it is such a pain in the ass, but in Galaxy you can just type it in 2 seconds. I hope you will get this done, good luck.
0
@HappyWhaleshark: Go
Hold ctrl while clicking or buy a window mouse, they work fine on mac.
0
If we say we have 2 variables
Screen_Height
Screen_Width
You need those values to make UI to World Coordinates. So a map has the same amount of coordinates as the map size, so if its 168x168 it will have 168 coordinates XY. So if we say Screen_Height = 1150 and Screen_Width = 1150 then we need these 2 values: Your map size's X and Y so if your map is 168x168 its 168x168. Got it?
Now make 2 new variables
Multiplier_X
Multiplier_Y
They will be:
Multiplier_X = Screen_Width/Map_Size_X
Multiplier_Y = Screen_Height/Map_Size_Y
Now we got a multiplier, which is the difference in coordinates between the world and the UI. So if we say you have a unit standing in the middle of the map. Then for converting that to the middle of the screen (in UI) we say:
Unit's X * Multiplier_X
Unit's Y * Multiplier_Y
I hope you got what I mean, I weren't quite sure if this were what you needed. But this can be used for creating custom minimaps and such. I've done it and its much more awesome than the normal minimap :)