Search found 12 matches

by realtiger
Mon Dec 18, 2006 07:55
Forum: Help
Topic: Howto get ListBoxItem from an ID?
Replies: 2
Views: 646

http://www.cegui.org.uk/wiki/index.php/WidgetGalore If you want to get the ID of the selected item you can use: uint valueListbox = listbox->getFirstSelectedItem()->getID(); If you want to retrieve the ListboxItem* from an ID then the following should work: CEGUI::uint findID = 1234; CEGUI::Listbox...
by realtiger
Sun Dec 17, 2006 16:58
Forum: Help
Topic: Howto get ListBoxItem from an ID?
Replies: 2
Views: 646

Howto get ListBoxItem from an ID?

Hi all This is the way I add an item to a list box. CEGUI::ListboxTextItem *item = new CEGUI::ListboxTextItem(userName, id, p); item->setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush"); m_playerListBox->addItem(item); m_playerListBox->ensureI...
by realtiger
Sat Dec 16, 2006 15:14
Forum: Help
Topic: howto draw a texture on a window?
Replies: 4
Views: 881

I have tried

Code: Select all

staticImage = (CEGUI::StaticImage*)wndMgr.getWindow("Root/PlayWindow/Avatar01SImage");


But still get the error: StaticImage is not a member of CEGUI. So I have to use CEGUI::Window class and set image by using SetProperty method.
by realtiger
Sat Dec 16, 2006 03:04
Forum: Help
Topic: howto draw a texture on a window?
Replies: 4
Views: 881

Is this the way to use StaticImage? // load an image to use as a background ImagesetManager::getSingleton().createImagesetFromImageFile("BackgroundImage", "GPN-2000-001437.tga"); // here we will use a StaticImage as the root, then we can use it to place a backgrou...
by realtiger
Sat Dec 16, 2006 02:35
Forum: Help
Topic: Can not create a StaticImage?
Replies: 4
Views: 856

I only include "cegui.h".
by realtiger
Fri Dec 15, 2006 16:36
Forum: Help
Topic: howto draw a texture on a window?
Replies: 4
Views: 881

howto draw a texture on a window?

Hi

I want to make a simple chess board.
So I have to render some textures on window.
How can I do so?
I need it, please.
Thank u.
by realtiger
Fri Dec 15, 2006 14:49
Forum: Help
Topic: Can not create a StaticImage?
Replies: 4
Views: 856

Can not create a StaticImage?

Hi all I use this code to get StaticImage from WindowManager: m_avatar01StaticImage = (CEGUI::StaticImage*)wndMgr.getWindow("Root/PlayWindow/Avatar01SImage"); But the compiler said: 1>d:\study\visual studio 2005\projects\carol\carol\src\playwindow.cpp(12) : error C2...
by realtiger
Fri Dec 15, 2006 14:42
Forum: Help
Topic: Add new skin to CELayoutEditor?
Replies: 5
Views: 883

I put files in right folders and it works. Copy imageset files (psplash.imageset, phud.imageset, sleekspace.imageset) to C:\CEGUI-SDK-0.5.0b\datafiles\imagesets Copy looknfeel files containers.looknfeel lists.looknfeel menu.looknfeel progress.looknfeel scroll.looknfeel sleekspace.looknfeel static.lo...
by realtiger
Thu Dec 14, 2006 13:16
Forum: Help
Topic: Add new skin to CELayoutEditor?
Replies: 5
Views: 883

I added it.
But sleekspace doesn't work correctly.
by realtiger
Thu Dec 14, 2006 10:42
Forum: Help
Topic: Add new skin to CELayoutEditor?
Replies: 5
Views: 883

Add new skin to CELayoutEditor?

Hi all

How can I add a new skin to CELayoutEditor?
I have downloaded Sleekspace Skin and copied its files to dedicated folders (imagesets, looknfeels, schemes,...) but CELayoutEditor doesn't know it.

:?:
by realtiger
Thu Dec 14, 2006 07:58
Forum: Help
Topic: can't load imageset
Replies: 1
Views: 716

I have found the answer in wiki. The Direct3D and OpenGL renderers do not, by default, use a specialised ResourceProvider; these systems default to loading all resources from the current working directory for the running application (usually the directory containing the executable). This fact is of ...
by realtiger
Thu Dec 14, 2006 07:12
Forum: Help
Topic: can't load imageset
Replies: 1
Views: 716

can't load imageset

hi all I use this code to load a scheme. CEGUI::OpenGLRenderer *renderer; CEGUI::System *system; CEGUI::Imageset *imgSet; try { renderer = new CEGUI::OpenGLRenderer(0, 800, 600); system = new CEGUI::System(renderer); CEGUI::SchemeManager::getSingleton().loadScheme(&q...

Go to advanced search