2015-02-05 18:56:56 -07:00
|
|
|
-- A simple BitmapText example. Puts "Hello World!" in the center of the screen.
|
2015-02-05 19:32:10 -05:00
|
|
|
-- BitmapTexts put text on the screen (pretty self-explanatory)
|
|
|
|
|
|
|
|
|
|
Def.BitmapText{
|
2015-02-05 18:56:56 -07:00
|
|
|
Font="Common Normal",
|
|
|
|
|
-- Chooses the font for the text. The font needs to be in the theme's Fonts
|
|
|
|
|
-- folder or the fallback theme's Fonts folder. By default, Common Normal
|
|
|
|
|
-- is "_open sans semibold".
|
|
|
|
|
-- File is used in XML files from ITG, instead of Font. It's deprecated.
|
|
|
|
|
-- You shouldn't use it.
|
2015-02-05 19:32:10 -05:00
|
|
|
|
2015-02-05 18:56:56 -07:00
|
|
|
Text="Hello World!",
|
2015-02-05 19:32:10 -05:00
|
|
|
-- Chooses what the BitmapText will show. Pretty straightforward.
|
|
|
|
|
|
2015-02-05 18:56:56 -07:00
|
|
|
OnCommand= function(self) self:Center() end,
|
2015-02-05 19:32:10 -05:00
|
|
|
-- Puts the text in the center in the center of the screen.
|
|
|
|
|
}
|