Search found 10 matches

by Eralp
Tue Jan 25, 2011 01:25
Forum: Help
Topic: Set&Get userdata (Pointer problem)
Replies: 3
Views: 1927

Re: Set&Get userdata (Pointer problem)

Problem solved.Followings are just my ideas I am not sure if they are correct.. It seems that the compiler can not climb up the hierarchy if the given pointer is void. And It seems that dynamic_cast doesn't work on void pointers so I tried that: consumable* consumeitem = dynamic_cast<consumable*>(re...
by Eralp
Tue Jan 25, 2011 00:51
Forum: Help
Topic: Set&Get userdata (Pointer problem)
Replies: 3
Views: 1927

Re: Set&Get userdata (Pointer problem)

Thanks for the response, I tried the reinterpret and static cast too but I had no luck. And the same pointer works before setting and getting it from the window. I tried to delete the virtual function and put it on healthPotion class and casted that pointer directly to healthPotion and I can now use...
by Eralp
Mon Jan 24, 2011 23:12
Forum: Help
Topic: Set&Get userdata (Pointer problem)
Replies: 3
Views: 1927

Set&Get userdata (Pointer problem)

Hello, I have been dealing with this problem nearly like 2 hours now and it is irritating -.- I minimalized the code here. newitem is a base class(baseItem class). healthPotion <=== consumable <===== baseItem my consumable class has a pure virtual function that is overriden in healthPotion class ( i...
by Eralp
Tue Jan 04, 2011 23:13
Forum: Help
Topic: Question about ingame
Replies: 4
Views: 3278

Re: Question about ingame

Thanks! Your statement relieved me :) You gave a very good example, if I want to customize the minimap like adding tooltips or clicking it would be reinventing the wheel. I definetly will want to get those features, so I'll be using CEGUI. But if anyone is past over the same roads, I'd like to liste...
by Eralp
Tue Jan 04, 2011 20:51
Forum: Help
Topic: Question about ingame
Replies: 4
Views: 3278

Re: Question about ingame

Thanks for your answer but in-game gui is not EXACTLY the same as a menu-gui OR I can't see them as a whole :) more basically the thing is will I be able to have that much control on in-game GUI if I do them using CEGUI. for example there are dots running around in the minimap, I can do this easily ...
by Eralp
Tue Jan 04, 2011 12:06
Forum: Help
Topic: Question about ingame
Replies: 4
Views: 3278

Question about ingame

Hello, I am currently coding my game and I am using CEGUI for gui, obviously :) CEGUI is working perfectly for my menus before the game and for the lobby, but I can't figure out how should I adjust my ingame gui? Like inventory, shop or hp bars. OR the question is should I for example assume my hp b...
by Eralp
Sat May 02, 2009 19:43
Forum: Help
Topic: Subscribing events
Replies: 6
Views: 3258

Re: Subscribing events

The exception occurs exactly by the time I call this line: baglan->subscribeEvent(PushButton::EventClicked,CEGUI::Event::Subscriber(&Engine::BaglanButton,this)); I was not static linking. But uh I have made it work while I am writing this post, I think I didn't ignore default library LIBCMTD. To...
by Eralp
Wed Apr 29, 2009 21:47
Forum: Help
Topic: Subscribing events
Replies: 6
Views: 3258

Subscribing events

Hi, I really have a problem with subscribing events.I searched and found a solution in which you should recompile ur dll's with some option(that I dont understand). But isn't there any other solution? bool Engine::BaglanButton(const CEGUI::EventArgs& args) { BaglanMenu(); return 1; } void Engine...
by Eralp
Tue Apr 28, 2009 20:55
Forum: Help
Topic: Initializing "events"
Replies: 2
Views: 1380

Re: Initializing "events"

Thank you for taking time replying my question, it was helpful.
I will try to register them as I load them (if there won't be any problem like gui class doesnt know about other instances of classes or whatever, oop thing u know =)).
by Eralp
Tue Apr 28, 2009 18:00
Forum: Help
Topic: Initializing "events"
Replies: 2
Views: 1380

Initializing "events"

Hi , i am a little bit in trouble =) I have a gui system in mind and I dont want to code it further before deciding what to do. I am thinking of loading layout files at the beginning of my program and when the game state changes I will change the "sheet" too.But where should I register eve...

Go to advanced search