I have the following code. And the dialog appears, because after this custom script, I have a Show Dialog action. But, I tried showing the Buttons Manually, but it's just an empty dialog. =\
well I can't say because the x,y positions of your buttons are calculations which could end up negative, because I don't know the formula used.
or perhaps your global variable hours_on_a_clock is set to 0 so it won't even create the buttons at all.
hint: Use debug message to check all the calculation results and see if they get generated at the correct locations.
You can see the entire list of meesages in the debug window (file->preferences->test document->run in window+show trigger debugger or something alike)
I have the following code. And the dialog appears, because after this custom script, I have a Show Dialog action. But, I tried showing the Buttons Manually, but it's just an empty dialog. =\
@DerNalia: Go
well I can't say because the x,y positions of your buttons are calculations which could end up negative, because I don't know the formula used.
or perhaps your global variable hours_on_a_clock is set to 0 so it won't even create the buttons at all.
hint: Use debug message to check all the calculation results and see if they get generated at the correct locations.
You can see the entire list of meesages in the debug window (file->preferences->test document->run in window+show trigger debugger or something alike)
@Helral: Go
It was because the Galaxy Editor uses Degrees instead of Radians for Cosine and Sine.
http://www.sc2mapster.com/forums/development/triggers/23563-solved-trying-to-get-positions-along-a-circle-my-expression/