Search found 62 matches
- Wed Aug 31, 2011 14:25
- Forum: Help
- Topic: combining 2 images in a button?
- Replies: 0
- Views: 3084
combining 2 images in a button?
Is it possible to combine 2 images in a button? I was thinking to use a frame including the key shortcut on each button of my quickslot bar, but I noticed that I didnt knew how to do it and also change the associated action icon.
- Wed Aug 24, 2011 15:06
- Forum: Help
- Topic: 2 questions about progress bar
- Replies: 4
- Views: 4138
- Tue Aug 23, 2011 12:52
- Forum: Help
- Topic: 2 questions about progress bar
- Replies: 4
- Views: 4138
Re: 2 questions about progress bar
Fixed the progress problem. perc was float, but the values used to calculate it were int, always producing 0. Casted them to float and now Im getting the right value. But still cant make the tooltip work.
- Mon Aug 22, 2011 18:16
- Forum: Help
- Topic: 2 questions about progress bar
- Replies: 4
- Views: 4138
2 questions about progress bar
I want to use a couple of progress bars to show hp and mana in my game, but I found two problems: the progress bars jumps from full to empty when I call setProgress() and neither can set a tooltip to figure out the current value. Here is my layout definition: <Window Type="TaharezLook/ProgressB...
- Thu Jul 21, 2011 15:58
- Forum: Help
- Topic: Misterious crash under windows
- Replies: 2
- Views: 2549
Re: Misterious crash under windows
The CEGUI log file is normal. No errors are logged there, simply ends after ---- Successfully completed loading of GUI layout from 'ark.layout' ----. There is no exception, Windows 7 just says that the application was closed, no more. I will add today some exception management to see if there is one...
- Wed Jul 20, 2011 13:30
- Forum: Help
- Topic: Misterious crash under windows
- Replies: 2
- Views: 2549
Misterious crash under windows
Im facing a really annoying problem with my windows port, seems that CEGUI cant assign the window I used to load the layout as the GUI sheet. Here is the code: inline bool loadLayout(const char* layout) { CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton(); gRoot = winMgr.loadWin...
- Fri Jul 15, 2011 12:03
- Forum: Help
- Topic: lclick/rclick on a button
- Replies: 3
- Views: 2887
Re: lclick/rclick on a button
Thanks for the help, but the solution in the forum thread produces an error. the problem is that in the same event handler Im managing 10 buttons, so, this is the code: bool gsGame::slots_OnClick(const CEGUI::EventArgs &args) { CEGUI::String buttonName = static_cast<const CEGUI::WindowEventArgs&...
- Thu Jul 14, 2011 20:34
- Forum: Help
- Topic: lclick/rclick on a button
- Replies: 3
- Views: 2887
lclick/rclick on a button
How can I tell inside the event handler if the widget received a left click or a mouse click? I need to implement different behaviours for each click in my buttons, but I havent found a clue about how to get that from EventArgs.
- Mon Jun 27, 2011 12:23
- Forum: Help
- Topic: CEGUI is intercepting all mouse clicks
- Replies: 1
- Views: 1860
CEGUI is intercepting all mouse clicks
Im having a problem with cegu on my project, seems that it is processing all mouse clicks. This is my mouse pressed event: bool StratApp::mousePressed (const OIS::MouseEvent &arg, OIS::MouseButtonID id) { if (CEGUI::System::getSingleton().injectMouseButtonDown(convertOGREButtonToCEGUI(id))) retu...
- Wed Oct 13, 2010 19:40
- Forum: Help
- Topic: Laoyout Editor 0.7 cant load Taharez scheme
- Replies: 3
- Views: 2490
Re: Laoyout Editor 0.7 cant load Taharez scheme
Actually, I have fixed the problem by adding those files just got an error about missing tabcontrol, but as Im in the process of removing tabs from my layout, it was no problem.
- Wed Oct 13, 2010 19:37
- Forum: Help
- Topic: Laoyout Editor 0.7 cant load Taharez scheme
- Replies: 3
- Views: 2490
Re: Laoyout Editor 0.7 cant load Taharez scheme
Those files are not included in Layout Editor. In schemes dir I just have: TaharezLook, scheme, VanillaSkin.scheme and WindowsLook.scheme. The rest of directories seems to have just the required files for those schemes, no extra files.
- Wed Oct 13, 2010 19:33
- Forum: Help
- Topic: line breaks
- Replies: 2
- Views: 2381
Re: line breaks
Via code. And, if my memory doenst fails, it worked back in the age of CEGUI 0.6. I just noticed recently that my texts were not splitted.
- Tue Oct 12, 2010 14:59
- Forum: Help
- Topic: Laoyout Editor 0.7 cant load Taharez scheme
- Replies: 3
- Views: 2490
Laoyout Editor 0.7 cant load Taharez scheme
When I try to use the latest version (0.7.1 I think) I got an error when loading my layout about Taharez/StaticText not found. also, if I try to create a new layout, the Taharez look is not available.
- Tue Oct 12, 2010 14:50
- Forum: Help
- Topic: line breaks
- Replies: 2
- Views: 2381
line breaks
I have made a quick search and seems that the way to inlcude line breaks is \n, but it doesnt works in my StaticText, it simply displays \n and the text is lost beyond the limits of the widget. DO{ I need to set some property for this to work?
- Fri Jun 11, 2010 16:59
- Forum: Help
- Topic: WindowsLook mouse arrow name?
- Replies: 2
- Views: 2454
Re: WindowsLook mouse arrow name?
Fixed, that was the correct line, but wasnt working because I forgot to implement th emose move injection.