AlfiskoSkin/ListBox

Help and discussion regarding skinning, themes, and other artistic content.

Moderators: CEGUI MVP, CEGUI Team

nicoo
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Mon Mar 24, 2014 03:29

AlfiskoSkin/ListBox

Postby nicoo » Thu Apr 10, 2014 02:57

Hi, I would like to use AlfiskoSkin, but it's unfinished. I need Listbox and items for my console. When I opened AlfiskoSkin.looknfeel... I almost fainted... So there is another way than being brutalized by XML to add a listbox to AlfiskoSkin ?

there is a tutorial or a "how to" about skining ?

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

Re: AlfiskoSkin/ListBox

Postby Ident » Thu Apr 10, 2014 23:18

Use the API docu and : http://cegui.org.uk/wiki/The_Beginners_ ... g_-_Part_I
The above wiki article is pretty aged, but not so much has changed. Also it helps to look at the existing widgets and just copy them over and replace the image references for example. Taharezlook as a pretty complete set of widgets, so you could try to copy stuff over from there.

You will have to use XML, I am sorry. :?

Maybe during this summer's GSOC projects someone might implement an look n' feel editor for CEED if we are lucky :wink:. If this is going to happen then it should be possible to make new widgets without touching any XML quite easily, unless you want to do really extraordinary things that might not be implemented into the editor so soon.
CrazyEddie: "I don't like GUIs"

nicoo
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Mon Mar 24, 2014 03:29

Re: AlfiskoSkin/ListBox

Postby nicoo » Sat Apr 12, 2014 06:01

well...
...NO PAIN NO FUN :x

anyway thx for the link

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

Re: AlfiskoSkin/ListBox

Postby Ident » Sat Apr 12, 2014 11:48

I would just start by taking two existing Listbox widget definitions as base and use the API reference in case you have questions about elements, attributes, etc. That's how i learnt it. It is not that difficult actually.
CrazyEddie: "I don't like GUIs"

nicoo
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Mon Mar 24, 2014 03:29

Re: AlfiskoSkin/ListBox

Postby nicoo » Sat Apr 12, 2014 18:41

well, I get something interesting,
Image

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

Re: AlfiskoSkin/ListBox

Postby Ident » Sat Apr 12, 2014 21:28

And what would that be? i dont see a listbox
CrazyEddie: "I don't like GUIs"

nicoo
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Mon Mar 24, 2014 03:29

Re: AlfiskoSkin/ListBox

Postby nicoo » Sat Apr 12, 2014 21:31

it is :hammer:
you can check on my bitbucket

the console game tutorial, uses a listbox. So I do

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

Re: AlfiskoSkin/ListBox

Postby Ident » Sat Apr 12, 2014 21:37

oh cool. thought thats a statictext inside a framewindow or something like that. It is not really visible that these are different entries. Do you use wordwrap?
CrazyEddie: "I don't like GUIs"

nicoo
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Mon Mar 24, 2014 03:29

Re: AlfiskoSkin/ListBox

Postby nicoo » Sat Apr 12, 2014 21:40

not yet, and for now the vertical bar is not controlled (I will have to search how to do that). I have to move the vertical bar myself to see recent outputs

Interitus
Just popping in
Just popping in
Posts: 2
Joined: Sat Aug 16, 2014 12:09

Re: AlfiskoSkin/ListBox

Postby Interitus » Sat Aug 16, 2014 12:10

Hey,

I need an ListBox in AlfiskoSkin, too. I tried to have a look at your bitbucket, but there is no code. Could you please reupload your listbox code? :)

thanks

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

Re: AlfiskoSkin/ListBox

Postby Ident » Sat Aug 16, 2014 14:29

https://bitbucket.org/nicooplusplus/boo ... 7248a1deca
The bitbucket repo is weird. This code seems to be on a branch that isnt choosable by option.
CrazyEddie: "I don't like GUIs"

Interitus
Just popping in
Just popping in
Posts: 2
Joined: Sat Aug 16, 2014 12:09

Re: AlfiskoSkin/ListBox

Postby Interitus » Sat Aug 16, 2014 14:36

Thanks for the reply!

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

Re: AlfiskoSkin/ListBox

Postby Ident » Sat Aug 16, 2014 15:10

No problem. Check out the other commits if it wasnt in the one i linked:
https://bitbucket.org/nicooplusplus/boo ... ommits/all

maybe you can also figure out how to display the branch in that those commits are. It might be necessary to do a lokal clone though instead, maybe the repo has two heads.
CrazyEddie: "I don't like GUIs"


Return to “Skins and Themes”

Who is online

Users browsing this forum: No registered users and 6 guests