Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 13, 2010, 3:58:56 PM (14 years ago)
Author:
rgrieder
Message:

"init" lua function —> "onLoad" to make it clear that it is a user function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestates2/data/gui/scripts/GUISheet.lua

    r6718 r6720  
    1313
    1414-- Override this function if you need to do work on load
    15 -- TODO: rename to onLoad
    16 function P:init()
     15function P:onLoad()
    1716end
    1817
     
    3837    self:hide()
    3938    -- Allow sheets to do some work upon loading
    40     self:init()
     39    self:onLoad()
    4140    return self
    4241end
Note: See TracChangeset for help on using the changeset viewer.