0.6.X What do you want to see in 0.6 series

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Thu Nov 30, 2006 19:56

hmmm yea a good idea would maybe be something like stringtables, but these need to be well integrated in the GUI system to be util. but i really think this feature is needed, more then new controls !

User avatar
gcarlton
Just can't stay away
Just can't stay away
Posts: 149
Joined: Wed Jan 12, 2005 12:06

Postby gcarlton » Tue Dec 05, 2006 21:55

You can already do this by redirecting loaded strings when layouts are read in. So for example, the layout may have a label "cmd_quit" which the application can convert as "Quit" or "@$@(!%" or whatever. Here is the code I've used before:


Code: Select all

bool GuiLayoutPropertyCallback(CEGUI::Window* a_pWindow, CEGUI::String& a_rPropName, CEGUI::String& a_rPropValue, void* a_pUserData)
{
   const char* szPropName = a_rPropName.c_str();
   if (0 == strcmp(szPropName, "Text"))
   {
      // Try to localise value
      const utf8* szUtf8Value = a_rPropValue.data();
      const utf8* szUtf8Result = Localise(reinterpret_cast<const char*>(szUtf8Value));
      a_rPropValue = szUtf8Result;
   }
   return true;
}


This also extends to all sorts of customising abilities: search and replace $NAME, $PLAYER, etc. So we already have a lightweight way of doing it, one that separates out the layout from the localised text. Standardising a "translation" module would help. Then CEGUI can provide its own, or the app can provide it. Makes it a bit neater than above, but its the same sort of idea.

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Thu Dec 07, 2006 12:37

hey your function really looks very handy ! But you have to explain me a bit more :) especially: when is this function called ? If i understand right, it is not a CEGUI function but one from your program/game.

Sorry for going a little off-topic :oops:

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Thu Dec 07, 2006 22:25

Take a look at WindowManager::loadWindowLayout

http://www.cegui.org.uk/api_reference/c ... 94578743c2

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Mon Dec 11, 2006 16:44

cool thank you very much, now i only have to find some free time :P

User avatar
kornerr
Not too shy to talk
Not too shy to talk
Posts: 41
Joined: Tue Apr 11, 2006 10:07
Location: Russia, Siberia, Kemerovo
Contact:

Postby kornerr » Mon Feb 12, 2007 08:46

I want to see working irrlicht samples, current svn version is broken agains latest irrlicht 1.2, it simply doesn't display anything... but responds to events.
Open Source all the way, baby ;)
Opensource Game Studio

User avatar
kornerr
Not too shy to talk
Not too shy to talk
Posts: 41
Joined: Tue Apr 11, 2006 10:07
Location: Russia, Siberia, Kemerovo
Contact:

Postby kornerr » Mon Feb 12, 2007 17:13

Sorry, it was my fault, I recompile the whole cegui svn lib, and now all works ok :)
Open Source all the way, baby ;)
Opensource Game Studio

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Fri Feb 16, 2007 15:17

I would really appreciate being able to compile CEGUI as static library that can be linked into the executable !

ppl
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Tue May 15, 2007 16:37
Location: Canada

Postby ppl » Thu Jun 14, 2007 13:53

What I would like to see:

- Changing Udim to have an integer as offset instead of a floating point
- Fully defining properties in XML instead of using special value formats
-- Use XML child elements for dimensions e.g. {{0,0}}
-- Use XML child elements for e.g. set:foo image:bar
- Replace DimOperator with an infix dim operator

Liberator
Just popping in
Just popping in
Posts: 19
Joined: Mon Jun 25, 2007 13:16
Contact:

event driven systems: observer-notifier implementation

Postby Liberator » Sun Aug 12, 2007 10:42

I read somewhere you guys where thinking about redesigning the event system or something to that effect. Feel free to look at the implementation I made for the GUCEF platform. Its is designed to support runtime hot-plugable event driven systems with fast event comparison in mind. My CICloneable approach to passing data has also turned out to be a very nice feature.

0.1B source package:
http://www.vanvelzensoftware.com/postnu ... load&sid=3

The projects SourceForge links:
Project: http://sourceforge.net/projects/gucef
Browse SVN: http://gucef.svn.sourceforge.net/gucef
Last edited by Liberator on Mon Dec 31, 2007 13:10, edited 1 time in total.

Scorcher24
Just popping in
Just popping in
Posts: 6
Joined: Tue Oct 23, 2007 00:29
Contact:

Postby Scorcher24 » Thu Oct 25, 2007 15:27

What are your most wanted widgets for the next release ?

- I don't know if its not already included (just started to use the lib), but a Toolbar with draggable buttons would be totally cool. You know, something like in EQ2 or other MMORPGs, where you can put your styles or spells on it.
- More documentation in the Download-Package. Include some tutorials, that users can start off without browsing the net.
- Better/more consistent Naming, like already said.
- Less Exceptions. :D
rya.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sun Oct 28, 2007 12:01

A toolbar itself is not an existing widget, hower it can pretty easily be generated by combining widgets, such as a FrameWindow with ImageButtons.

About the documentation, do you mean that you'd like to have some offline wiki contents for example?

Thanks for the input.

Scorcher24
Just popping in
Just popping in
Posts: 6
Joined: Tue Oct 23, 2007 00:29
Contact:

Postby Scorcher24 » Sat Nov 03, 2007 14:08

Basically, yes.
Open yourself the .chm or the .html Docs and all you see is an empty file.
So everything you feel in that moment is a big QuestionMark over your head.
Thats how I felt first. There is no Introduction or a Point to start off, but a lots of classes.
What I like extremly, is the wxWidgets Documentation. Have a look at it. Its really great. You open the .chm and you see a list of things you can read, including a rough but working "Hello World" sample. Its a different feeling.
Starting into a new API with no Clue where to start, is a real pain. Oh yes, there is the internet and the Wiki, but I think much user would feel much better, with a better offline Documentation.
And I also know much ppl who don't have internet or only slow connections like ISDN. In Germany, there are still much small Villages, which don't have ADSL-Connections. And mostly, for ISDN there are no flatrates. But thats only a side-issue.
My main concern is like I said, to get quicker into the API and getting familiar with CEGUI.
And thats all from the View of the avg home-brew-programmer, not from a professional.
rya.

fooguru
Just popping in
Just popping in
Posts: 7
Joined: Wed Sep 19, 2007 19:57

Wish List

Postby fooguru » Sun Dec 30, 2007 16:04

CEGUI 0.5 is great but I like to see:

* multi-colored text - "you want the {#FF0000}red{} or {#0000FF}blue{} pill?"

* clipboard support with multi-platform sample

* tab-character \t support

* I second Lua 5.1 support

* Almost forgot: More Skins! (I hope its alright asking this here)

I use Ogre. Which team is responsible to upgrade OgreCEGUIRenderer with next CEGUI?

User avatar
ErikHjortsberg
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Jan 23, 2005 12:45
Location: Sweden
Contact:

Re: Wish List

Postby ErikHjortsberg » Sun Dec 30, 2007 20:54

fooguru wrote:* clipboard support with multi-platform sample

* I second Lua 5.1 support


You can get cross platform clipboard support by using this code. In your input handling code, listen for paste keypress and get the text from the clipboard and inject it into CEGUI. I've used it successfully in my project for allowing pasting from external text, but haven't had time to implement copying from CEGUI yet (should be possible by listening to a copy key combination and looking at the active widget and try to get the actively marked text if it's a text widget). Some parts of the code in my project can be found here.
Note that CEGUI will filter out injected tab and newline characters, so you'll have to fake those (an example can be found in the injectChar method in this code). Ah, there's feature request: allow for injecting such characters.

The Gentoo folks have created a patch which adds support for Lua 5.1. See here.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests