Fixed quotes and spelling in new actor examples. Fixed RollingNumbers to do nothing instead of crashing if it's rendered before it loads its metrics.

This commit is contained in:
Kyzentun
2015-02-05 18:56:56 -07:00
parent fa560d755c
commit 1de3cce1cd
5 changed files with 47 additions and 24 deletions
@@ -4,16 +4,16 @@
Def.Quad{
-- Quads have no special attributes, but they do have a few special functions.
OnCommand=function(self)
self:SetWidth(40) -- scales the quads width to 40
self:SetHeight(40) -- scales the quads height to 40
self:SetWidth(40) -- scales the quad's width to 40
self:SetHeight(40) -- scales the quad's height to 40
-- SetWidth and SetHeight must be capitalized to work.
-- SetSize (or setsize) is a shorthand for SetWidth and SetHeight.
-- The syntax is setsize(x, y), where x is the width and y is the height.
-- The default width and height is 1, which is less than 1 pixel on some displays
self:diffuse(color(Red))
self:diffuse(Color.Red)
-- Sets the color to red.
-- A list of all possible names for the colors can be found in
-- A list of all possible names for the colors can be found in
-- Themes/_fallback/Scripts/02 Colors.lua
self:Center()