Game Development Reference
In-Depth Information
The 1600 width size is obviously more than you require for a 1280 x 720 screen. You could just as
easily use the following:
Screen.width / 2 - 700, Screen.height / 2 - 250,1400,200
or:
Screen.width / 2 - 640, Screen.height / 2 - 250,1280,200
With the text being centered, as long as it isn't cropped at the edges, it doesn't really matter for
this game.
This time, there is no doubt about the outcome (Figure 10-8 ).
Figure 10-8. The repaired, super-sized label text
It would be nicer if the font color was something other than white. Let's change it to a nice yellow.
Most of the regular template parameters are associated with the type of functionality associated
with the type of control it is. Because a label has almost no interactive functionality, most of the
parameters—such as Hover, Active, Focused, etc.—are never used. Normal, the top behavior, is
where the very basics are set. In the Label's case, there is no background set as a default, but that is
where you can set the color of the text for all of the Label controls that use the Garden GUI Skin.
9.
Stop Play mode.
10.
Expand the Label's Normal parameter, and change the Text Color to yellow,
RGB, 255 , 255 , 0 .
 
Search WWH ::




Custom Search