Ali-il / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Create a Gui Demo. #132

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Use libRocket: http://librocket.com

http://www.youtube.com/watch?v=mOv-FZDSmdY

TODO: Create lua bind interfaces for libRocket.

Original issue reported on code.google.com by harkon...@gmail.com on 22 Jan 2011 at 9:28

GoogleCodeExporter commented 8 years ago
Does this issue mean you have already integrated libRocket (and is only about 
creating a lua interface), or is it about doing the whole thing...

The video indicates the former but the lack of libRocket in the repo suggests 
the latter.

Original comment by BenT.Sol...@gmail.com on 23 Jan 2011 at 6:37

GoogleCodeExporter commented 8 years ago
I'm starting to integrate libRocket into Gamekit a few days ago.
libRocket already provide a Ogre3d sample, so it isn't difficult.
I think, commit soon the working copy.

DONE:
Merge libRocket build to Gamekit build.
Convert Ogre3d sample to Gamekit sample. (translate keyboard event not yet)

TODO:
Read libRocket resources from the blend file. (Commit to trunk)
Create lua bind interfaces. (Maybe later)

Original comment by harkon...@gmail.com on 23 Jan 2011 at 10:48

GoogleCodeExporter commented 8 years ago
Thanks for the clarification. I was tossing up a libRocket vs Gorilla/Monkey UI 
integration into GameKit (more accurately, OgreKit, I guess) and your work 
decides that nicely.

So, from the above indication, the "style sheets", images, etc will all be 
embedded into the .blend file as well? This would be nice, though perhaps 
difficult to initially setup & test.

Original comment by BenT.Sol...@gmail.com on 24 Jan 2011 at 1:26

GoogleCodeExporter commented 8 years ago
Yes, it is possible that ui resource files will be embedded to the blend file & 
separate to other blend file from the game scene blend file.

One problem is that I can't embed any font files(.otf, .ttf) to the blend file. 

Is it possible to embed a unknown binary file to the blend file in Blender?

Temporarily, the font file is embedded to cpp source file as binary array.

Original comment by harkon...@gmail.com on 24 Jan 2011 at 11:49

GoogleCodeExporter commented 8 years ago
>Is it possible to embed a unknown binary file to the blend file in Blender?
I'm not sure about "unkown binary files", but font files (e.g. otf) can be 
packed in Blender. Attached is a file with a DroidSans.otf font packed into it 
(Blender 2.5 file, but it should work in 2.49 too)

Original comment by dfeli...@gmail.com on 24 Mar 2011 at 2:58

Attachments:

GoogleCodeExporter commented 8 years ago
A font file can be loaded from the blend file.
Thanks dfelinto.

Original comment by harkon...@gmail.com on 26 Mar 2011 at 1:16

GoogleCodeExporter commented 8 years ago
Was it created for the Lua interface?

If not, would applying what is found on this thread you've created would work 
properly?
http://gamekit.org/forum/viewtopic.php?f=2&t=27

Thank you

Original comment by Silverk...@gmail.com on 27 Feb 2012 at 5:58

GoogleCodeExporter commented 8 years ago
Since r1109 the fonts are read from the blend file and the library in general 
is more integrated with gamekit. Should I close this issue? Anyone wants to add 
Lua bindings?

Original comment by kungfoobar@gmail.com on 11 Jul 2012 at 3:22

GoogleCodeExporter commented 8 years ago
Is there any specific reason why you chose libRocket instead of the Gorilla / 
Monkey UI?

Original comment by fasdfas...@gmail.com on 16 May 2013 at 8:54