CEGUI completeness?

cheeze

12-07-2008 04:24:56

I was messing with a lot of the CEGUI stuff and it seemed to me that there are some items that haven't been implemented in the .scheme and .looknfeel files.

For example, I can create a Listbox but ListItems simply don't exist.

Looking through the files, I think it's possible to modify the given files and recreate the necessary components. If this is possible, is there some tutorial I can use to recreate the necessary components?

Or, of course, is there a more complete version of the CEGUI library to be used?

andy

12-07-2008 12:32:50

Do you have example C++ code that you can't convert to Python so I can see what is missing...

Perhaps you are looking for ItemList ?

The only change since the 1.2 RC release is to add 'Tree' support which was missing..

Andy

cheeze

12-07-2008 21:17:40

.. so I forgot to bring up I'm using TaharezLook. After trying ItemList:

RuntimeError: WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'ItemList' Window objects is not registered with the system.
or similarly:
RuntimeError: WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'TaharezLook/ItemList' Window objects is not registered with the system.

This was expected since neither are defined in the TaharezLook.looknfeel nor TaharezLookSkin.scheme.

scriptkid

14-07-2008 09:15:52

Hi,

you are looking for ItemEntry, which is mapped as a ListboxItem. Besides that, Cegui provides a high-level class for text items, ListboxTextItem. So, to summarize, you can create an item like this:


newItem = CEGUI.ListboxTextItem("Item 1")
muList.addItem(newItem)


Make sure to not forget setting some colours and brushes, otherwise the item might appear invisible (because of equal back- and foreground colours).

HTH.