Game Development Reference
In-Depth Information
Expand the Button template.
1.
Put the ButtonBlueGlassSm in the Normal's Background slot and the
ButtonOrangeGlassSm in the Hover and Active slots.
2.
Set the Border Left and Right values to 16 .
3.
Set the Font Size to 24 .
With a clear view of the final controls in the Game view, you can now tweak the x and y offset
variables in the code.
4.
In the MainMenuGUI script, set the x and y values as follows:
int y = 265; // base Y position
int x = 200; // base x inset
5.
Save the script.
6.
All four buttons line up correctly (Figure 10-36 ).
Figure 10-36. The Main Menu, with the Play/Resume button showing Hover behavior
7.
Stop Play mode.
8.
Save the scene.
 
Search WWH ::




Custom Search