Last change
on this file since 4073 was
3374,
checked in by rgrieder, 15 years ago
|
Added most of the text based files of the media directory (the file I deleted in the previous commit of the media repo) with svn:eol-style=native
|
-
Property svn:eol-style set to
native
|
File size:
646 bytes
|
Rev | Line | |
---|
[3374] | 1 | --- Init Script for Instanced Windows Demo --- |
---|
| 2 | local guiSystem = CEGUI.System:getSingleton() |
---|
| 3 | local schemeMgr = CEGUI.SchemeManager:getSingleton() |
---|
| 4 | local winMgr = CEGUI.WindowManager:getSingleton() |
---|
| 5 | |
---|
| 6 | -- Load a Scheme File |
---|
| 7 | schemeMgr:loadScheme("TaharezLook.scheme") |
---|
| 8 | -- Setup Mouse Pointer |
---|
| 9 | guiSystem:setDefaultMouseCursor("TaharezLook", "MouseArrow") |
---|
| 10 | -- Setup a DefaultSheet |
---|
| 11 | local root = winMgr:createWindow("DefaultWindow","RootNode") |
---|
| 12 | local xx = CEGUI.UDim(1,0) |
---|
| 13 | local yy = CEGUI.UDim(1,0) |
---|
| 14 | local zz = CEGUI.UVector2(xx,yy) |
---|
| 15 | root:setSize(zz) |
---|
| 16 | guiSystem:setGUISheet(root) |
---|
| 17 | -- set the Tooltip type |
---|
| 18 | guiSystem:setDefaultTooltip("TaharezLook/Tooltip") |
---|
| 19 | -- Done! |
---|
Note: See
TracBrowser
for help on using the repository browser.