I've been looking through the forum for a way to achieve this and I've found a few posts, but I'm not grasping the whole picture from the answers (specifically, here and here).
To describe the situation, I'm working on a game where clicking on objects opens up a tabbed information window. Each tab exposes certain information about the object. Each object though has a particular subset of tabs which are applicable to it, so I'm looking for a way to enable the pertinent tabs and disable the rest.
Is the idea to enable / disable the tab buttons (which need to be searched by name) a good one (since they're "technically" not accessible to the user)? Does Crazzy Eddie mean to remove the child window when he states that the "Content Pane" should be removed? How can it be removed without destroying the window (since I need to re-use it)?
Any help is greatly appreciated
Edit: Enabling / disabling buttons is not the best solution, as the visible tab buttons don't align left, but rather remain where they would normally be if all tabs were visible.
CEGUI Info
Code: Select all
---- Version: 0.8.4 (Build: Jul 13 2016 Static Debug Microsoft Windows MSVC++ 11.0 32 bit) ----
---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
---- XML Parser module is: CEGUI::RapidXMLParser - Official RapidXML based parser module for CEGUI ----
---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
---- Scripting module is: None ----