Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 9, 2010, 9:53:34 PM (14 years ago)
Author:
dafrick
Message:

Now we have the level description as tooltip. Unforunately for this to work i had to write two additional wrappers for CEGUI lua functions, so I guess it's time to start investigating why some CEGUI functions work in lua and some don't.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/releasetodo/src/libraries/core/GUIManager.cc

    r7403 r7627  
    4343#include <CEGUIWindow.h>
    4444#include <CEGUIWindowManager.h>
     45#include <CEGUI/elements/CEGUIListbox.h>
     46#include <CEGUI/elements/CEGUIListboxItem.h>
    4547#include <ogreceguirenderer/OgreCEGUIRenderer.h>
    4648
     
    440442        window->subscribeScriptedEvent(event, function);
    441443    }
     444
     445    void GUIManager::setTooltipTextHelper(CEGUI::ListboxItem* item, const std::string& tooltip)
     446    {
     447        item->setTooltipText(tooltip);
     448    }
     449
     450    void GUIManager::setItemTooltipsEnabledHelper(CEGUI::Listbox* listbox, bool enabled)
     451    {
     452        listbox->setItemTooltipsEnabled(enabled);
     453    }
     454
     455   
    442456}
Note: See TracChangeset for help on using the changeset viewer.