simple question

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

zydgyy
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 05, 2012 03:01

simple question

Postby zydgyy » Fri Apr 06, 2012 12:52

Hi,i am new to cegui and GUI in games,so,if i want widget to diplay the scores of my player,what kind of widget in CEGUI do i use???
What about title text of this scores?Thanks~

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: simple question

Postby Ident » Fri Apr 06, 2012 13:06

statictext
CrazyEddie: "I don't like GUIs"

zydgyy
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 05, 2012 03:01

Re: simple question

Postby zydgyy » Fri Apr 06, 2012 16:00

Ok,so what about what i want to group some scores display widgets,what do i use?framewindow is the only option?Is there something like panel as parent window??

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: simple question

Postby Ident » Fri Apr 06, 2012 16:25

how do you want them to be grouped? automatically or manually? as a list?
CrazyEddie: "I don't like GUIs"

zydgyy
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 05, 2012 03:01

Re: simple question

Postby zydgyy » Fri Apr 06, 2012 17:53

No,briefly,i want to group some scores text display window in a panel manually,and show the panel somewhere in the window
so,what is my panel widget???

-------------------------window--------------------------------
| |
| |
| |
| |
| |---------------panel-----| |
| | score1 score2 | |
| |---------------------------| |
| |
| |
|-----------------------------------------------------------------

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: simple question

Postby Ident » Sat Apr 07, 2012 09:18

should it have a frame and background? you can take just a CEGUI/Window without skin and put the 2 scores inside, but then it will be "Invisible". You can use a framewindow but it is kind of "more than you would need". I am not sure what else there is, depends on the looknfeel you use, also you could create a simple window looknfeel yourself.
CrazyEddie: "I don't like GUIs"

Blender+C++
Just popping in
Just popping in
Posts: 16
Joined: Sat Jun 23, 2012 01:40
Location: Brazil

Re: simple question

Postby Blender+C++ » Tue Jun 26, 2012 01:08

Sorry about ressurect a thread but i also want to create something similar to this but i want that the titlebar(FrameWindow) show the character information when i select it from a combobox menu, well first of all i dont even know how to create a text inside the framewindow, the only text i know how to create is the basic one, setText() function, but i wanted to show the charater information inside the framewindow, is it possible? and i also wanted to disabled the drag and resize function, the only thing i want is to show some basic information inside of it...if theres a better way of doing this i appreciate any help here, im pretty new to CEGUI so dunno how it works..the only reason why im picking the framewindow is due to its design, i have changed a couple of details but in general i left as it is,anyways i liked it and can i use it in the way i described above?
any help here is greatly appreciated!
thx in advance,
ROmulo Romero

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: simple question

Postby CrazyEddie » Tue Jun 26, 2012 07:50

Hi,

You can learn quite a lot about what is and is not possible by reading the API reference for a given class (yes, I know there is a lot of it) and also looking at property lists. So for example, for the frame window: http://www.cegui.org.uk/api_reference/c ... indow.html and (for TaharezLook) http://cegui.org.uk/static/TaharezLookP ... rameWindow you will see there are indeed functions and properties for disabling both sizing and drag moving of the FrameWindow.(so basically setSizingEnabled and setDragMovingEnabled).

The text in the titlebar is changed by the basic setText function. I assume you want additional text in the window itself? The easiest way (but, as ever, not the only way) to do that is to attach a StaticText (so when using TaharezLook, "TaharezLook/StaticText"), and use the setText on that to add additional content (you can split it onto multiple lines by using newline ('\n') within the string you set on the window.

CE.

Blender+C++
Just popping in
Just popping in
Posts: 16
Joined: Sat Jun 23, 2012 01:40
Location: Brazil

Re: simple question

Postby Blender+C++ » Wed Jun 27, 2012 01:28

Hi dude thx for replying again and for ur attention, i really appreciate all that!
You can learn quite a lot about what is and is not possible by reading the API reference for a given class (yes, I know there is a lot of it)

wow man even though there is a lot of stuff in there it looks pretty well organised and easy to use, thx dude for sharing the links,i didnt think about the possibility of looking into the API considering i ve given up lots of times on Ogre API ,i still kind of dont get how things work in the ogre API but i believe that some day in future that ll be as easy as look for a trouser in the wardrobe ^^ anyways that been said , i ll try to use the method u just showed me and whenever it is done ill póst here how it worked out!
thx again and ill see ya next time :D
Kind regards,
Romulo Romero


Return to “Help”

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests