Page 1 of 1
AlfiskoSkin/ListBox
Posted: Thu Apr 10, 2014 02:57
by nicoo
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 ?
Re: AlfiskoSkin/ListBox
Posted: Thu Apr 10, 2014 23:18
by Ident
Use the API docu and :
http://cegui.org.uk/wiki/The_Beginners_ ... g_-_Part_IThe 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
. 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.
Re: AlfiskoSkin/ListBox
Posted: Sat Apr 12, 2014 06:01
by nicoo
well...
...NO PAIN NO FUN anyway thx for the link
Re: AlfiskoSkin/ListBox
Posted: Sat Apr 12, 2014 11:48
by Ident
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.
Re: AlfiskoSkin/ListBox
Posted: Sat Apr 12, 2014 18:41
by nicoo
well, I get something interesting,
Re: AlfiskoSkin/ListBox
Posted: Sat Apr 12, 2014 21:28
by Ident
And what would that be? i dont see a listbox
Re: AlfiskoSkin/ListBox
Posted: Sat Apr 12, 2014 21:31
by nicoo
it is
you can check on my
bitbucketthe console game tutorial, uses a listbox. So I do
Re: AlfiskoSkin/ListBox
Posted: Sat Apr 12, 2014 21:37
by Ident
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?
Re: AlfiskoSkin/ListBox
Posted: Sat Apr 12, 2014 21:40
by nicoo
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
Re: AlfiskoSkin/ListBox
Posted: Sat Aug 16, 2014 12:10
by Interitus
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
Re: AlfiskoSkin/ListBox
Posted: Sat Aug 16, 2014 14:29
by Ident
https://bitbucket.org/nicooplusplus/boo ... 7248a1decaThe bitbucket repo is weird. This code seems to be on a branch that isnt choosable by option.
Re: AlfiskoSkin/ListBox
Posted: Sat Aug 16, 2014 14:36
by Interitus
Thanks for the reply!
Re: AlfiskoSkin/ListBox
Posted: Sat Aug 16, 2014 15:10
by Ident
No problem. Check out the other commits if it wasnt in the one i linked:
https://bitbucket.org/nicooplusplus/boo ... ommits/allmaybe 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.