Search found 9 matches

by Bagheera
Mon Aug 06, 2007 20:43
Forum: Help
Topic: How to create a button via lua script?
Replies: 5
Views: 1727

This is working code in my game, using CEGUI 0.5 and Lua 5.1 function buttonClicked(eventArgs) local we = CEGUI.toWindowEventArgs(eventArgs) gSceneMgr:getSceneNode("Turret Marker.node"):flipVisibility(true) end local winMgr = CEGUI.WindowManager:getSingleton...
by Bagheera
Sat Jun 30, 2007 12:49
Forum: Help
Topic: Running an empty lua script crashes the game
Replies: 2
Views: 881

I catch CEGUI excpetions at the highest level. Also, it is not an unhandled exception, as there is some text...
by Bagheera
Fri Jun 29, 2007 15:26
Forum: Help
Topic: Running an empty lua script crashes the game
Replies: 2
Views: 881

Running an empty lua script crashes the game

I'm currently using CEGUI 5 and Ogre 1.4. I init CEGUI like this: mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr); mCEGUILua = new CEGUI::LuaScriptModule(); mGUISystem = new CEGUI::System(mGUIRenderer); CEGUI::System::g...
by Bagheera
Mon May 07, 2007 18:03
Forum: Help
Topic: Setting an ImageButton's image - With no imageset!
Replies: 20
Views: 5519

I tried the SystemButton widget and it works fine. Thanks for all your help guys!
by Bagheera
Mon May 07, 2007 17:33
Forum: Help
Topic: Setting an ImageButton's image - With no imageset!
Replies: 20
Views: 5519

No, I'm using WindowsLook. You're saying there's no NormalImage property for a Button in WindowsLook? I just checked and it exists in both Taharez and WindowsLook.
by Bagheera
Mon May 07, 2007 17:00
Forum: Help
Topic: Setting an ImageButton's image - With no imageset!
Replies: 20
Views: 5519

I use Ogre so all exceptions are caught. I'm getting CEGUI: Unkown Object Exception, and the log file includes:

07/05/2007 19:52:03 (Error) Exception: There is no Property named 'NormalImage' available in the set.
by Bagheera
Mon May 07, 2007 15:54
Forum: Help
Topic: Setting an ImageButton's image - With no imageset!
Replies: 20
Views: 5519

CEGUI::PushButton *IB = (CEGUI::PushButton*)wmgr.createWindow("WindowsLook/Button", "IB"); wmgr.getWindow((CEGUI::utf8*)"Root/ToolBarWindow")->addChildWindow(IB); IB->setPosition(CEGUI::UVector2(CEGUI::UDim(0.0, 0)...
by Bagheera
Mon May 07, 2007 14:51
Forum: Help
Topic: Setting an ImageButton's image - With no imageset!
Replies: 20
Views: 5519

How do I do that? What is the syntax?
by Bagheera
Mon May 07, 2007 14:16
Forum: Help
Topic: Setting an ImageButton's image - With no imageset!
Replies: 20
Views: 5519

Setting an ImageButton's image - With no imageset!

Howdy. I'd like to change the property of an ImageButton normal/hover/pushed or disabled images in C++ code, however, the textures that I use are end-user supplied. For example: Dirt.jpg. These images are not part of any image files. To clarify: My application will come with a folder called textures...

Go to advanced search