From b8157ee1f0cc23c9026fd1542f2fef1801b122c3 Mon Sep 17 00:00:00 2001 From: YungDaVinci Date: Thu, 5 Feb 2015 19:32:10 -0500 Subject: [PATCH] Create BitmapText.lua --- .../Examples/Example_Actors/BitmapText.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Docs/Themerdocs/Examples/Example_Actors/BitmapText.lua diff --git a/Docs/Themerdocs/Examples/Example_Actors/BitmapText.lua b/Docs/Themerdocs/Examples/Example_Actors/BitmapText.lua new file mode 100644 index 0000000000..b3318eeeaf --- /dev/null +++ b/Docs/Themerdocs/Examples/Example_Actors/BitmapText.lua @@ -0,0 +1,17 @@ +-- 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 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. + + 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. +}