Files
itgmania212121/Docs/Themerdocs/Examples/Example_Actors/BitmapText.lua
T
2015-02-05 19:32:10 -05:00

18 lines
667 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- A simple BitmapText example. Puts “Hello World!” in the center of the screen.
-- BitmapTexts put text on the screen (pretty self-explanatory)
Def.BitmapText{
Font=Common normal,
-- Chooses the font for the text. The font needs to be in the themes Fonts folder or
-- the fallback themes Fonts folder. By default, Common normal is
-- “_open sans semibold”.
-- File is used in XML files from ITG, instead of Font. Its deprecated.
-- You shouldnt use it.
Text=Hello World!,
-- Chooses what the BitmapText will show. Pretty straightforward.
OnCommand=cmd(Center)
-- Puts the text in the center in the center of the screen.
}