Search found 22 matches

by kiolakin
Mon Jul 07, 2008 20:09
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

Whatever happened to this ? Was it ever looked at for inclusion? I am at the beginning of another project using CEGUI and I have to patch yet again... This is code that I can't see how you could live without if you are trying to provide scripting capability to your CEGUI.
by kiolakin
Sun Aug 13, 2006 22:05
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

I just patched my CEGUI 0.5 using the functions I posted above and it turned out to be almost identical to the CEGUI 0.41 change... bool LuaScriptModule::executeScriptedEventHandler(const String& handler_name, const EventArgs& e) { int nargs=Olua_setupcall(d_state,handler_na...
by kiolakin
Tue Aug 08, 2006 02:49
Forum: Modifications / Integrations / Customisations
Topic: NGlayout for CEGUI
Replies: 1
Views: 1870

After careful consideration I am going to shelf this until Cairo has stabilized and is more widely supported. 1.Creating a mozilla based html widget with the outgoing engine will do nothing for games in early enough development stage to consider using it. 2.Porting mozilla/gfx is a super project in ...
by kiolakin
Mon Aug 07, 2006 20:35
Forum: Modifications / Integrations / Customisations
Topic: NGlayout for CEGUI
Replies: 1
Views: 1870

NGlayout for CEGUI

I am really interested in porting NGLayout to work in CEGUI. In order to stop from hijacking my own CEGUI Lua thread, I started a new one. I broke into mozilla/gfx today and I can already see it is going to take a great deal of work before even considering mozilla/widget. I was right about DeviceCon...
by kiolakin
Mon Aug 07, 2006 15:26
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

(Next week I am going to attempt to modify mozilla/gfx and mozilla/widget to support CEGUI :D ... That may take awhile though.) Sounds ambitious :P but interesting. Let us know how it goes :) Well it is that time...(rolls up sleaves) I am not nearly as worried about mozilla/widget as I am mozilla/g...
by kiolakin
Mon Aug 07, 2006 14:21
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

Meh, you know you coded too much on the weekend when you wake up realizing that there is a bug in code that requires you to recompile 3 libraries and to make it worse you have put the code out on the net. Anyway, I am changing the table part of the switch to read: case LUA_TTABLE: //It is a table, w...
by kiolakin
Sat Aug 05, 2006 19:22
Forum: Help
Topic: Problems populating a listbox
Replies: 4
Views: 4124

Found it. It isn't really a bug like I thought it was, it turns out that the default text colour is white. So unless you are using a white background it won't be a problem, and then it is only a problem if you don't select your own text colour.
by kiolakin
Sat Aug 05, 2006 19:11
Forum: Help
Topic: Problems populating a listbox
Replies: 4
Views: 4124

I am trying to track it down atm, to see if I can figure out how to fix it...

I really need to get a windows diff program...
by kiolakin
Sat Aug 05, 2006 18:37
Forum: Help
Topic: Problems populating a listbox
Replies: 4
Views: 4124

I ran into this today. Apparently by default the text foreground and background are set to the same color. In order to see everything, you need to set the text color and selection brush as: ListboxTextItem *item=new ListboxTextItem((utf8*)szName.c_str()); item->setTextColours...
by kiolakin
Sat Aug 05, 2006 18:17
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

sry about the duplicated effort here. Well, it is technically not a duplicated effort, so don't be sorry about that. :) My need for this stemmed from wanting to be able to have a Lua defined gui. But since my key map window will also be in lua, I needed a way to bind OIS::Keypressed to lua events. ...
by kiolakin
Sat Aug 05, 2006 17:47
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

Score!!!! After all the headaches that code caused me, I was starting to think noone cared. :( Metatables are wierd, they push a value on the stack, but technically don't return anything. The above never would have worked if I didn't slip up once trying to debug and put a 0 where a 1 should have bee...
by kiolakin
Sat Aug 05, 2006 05:20
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

Ok I just downloaded 5.0RC1 to see if it was implemented already. It is almost there..and your code is much nicer than mine :p But you should still take into account userdata. The way that I am using CEGUI is as a scriptable interface in my game, but there are times when someone will want to hook in...
by kiolakin
Sat Aug 05, 2006 02:39
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

No response for no interest, already implemented, or just not enough time to look at it yet ?

That little piece of code gave me a headache for 3 days :p
I almost choked when I had to go back and rewrite it clean.
by kiolakin
Sat Aug 05, 2006 02:37
Forum: Offtopic Discussion
Topic: FAQ wiki problem
Replies: 1
Views: 2479

FAQ wiki problem

Just thought someone might want to correct this... What is the correct way to subscribe for an event? Event notification is a vital aspect of GUI programming. CEGUI handles those using subscribers. In order to subscribe a window for an event, you have to call the method 'Window::subscribeEvent', pas...
by kiolakin
Wed Aug 02, 2006 00:56
Forum: Modifications / Integrations / Customisations
Topic: [PATCH INCLUDED] Setting events to Lua members.
Replies: 12
Views: 10689

[PATCH INCLUDED] Setting events to Lua members.

Ok, finally got it rewritten. Much tighter IMO. And because there is no more redundant code; it is faster, uses less memory, and will handle more possibilities than I had originally considered. It was alot easier to test as well, as a single call will basically chain through every part. Here is the ...

Go to advanced search