Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/gui/scripts/InstancedInit.lua @ 5430

Last change on this file since 5430 was 5430, checked in by rgrieder, 15 years ago

svn:eol-style "native" for the gui scripts.

  • Property svn:eol-style set to native
File size: 646 bytes
Line 
1--- Init Script for Instanced Windows Demo ---
2local guiSystem = CEGUI.System:getSingleton()
3local schemeMgr = CEGUI.SchemeManager:getSingleton()
4local winMgr = CEGUI.WindowManager:getSingleton()
5
6-- Load a Scheme File
7schemeMgr:loadScheme("TaharezLook.scheme")
8-- Setup Mouse Pointer
9guiSystem:setDefaultMouseCursor("TaharezLook", "MouseArrow")
10-- Setup a DefaultSheet
11local root = winMgr:createWindow("DefaultWindow","RootNode")
12local xx = CEGUI.UDim(1,0)
13local yy = CEGUI.UDim(1,0)
14local zz = CEGUI.UVector2(xx,yy)
15root:setSize(zz)
16guiSystem:setGUISheet(root)
17-- set the Tooltip type
18guiSystem:setDefaultTooltip("TaharezLook/Tooltip")
19-- Done!
Note: See TracBrowser for help on using the repository browser.