Changeset 643 for abuse/trunk/src/gui.cpp
- Timestamp:
- May 13, 2011, 9:13:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/gui.cpp
r579 r643 73 73 } 74 74 75 void ico_switch_button::handle_event( event &ev, image *screen, InputManager *im)75 void ico_switch_button::handle_event(Event &ev, image *screen, InputManager *im) 76 76 { 77 77 if ((ev.type==EV_KEY && ev.key==13) || (ev.type==EV_MOUSE_BUTTON && … … 92 92 93 93 if (active!=act && activate_id!=-1 && active) 94 wm-> push_event(new event(activate_id,NULL));94 wm->Push(new Event(activate_id,NULL)); 95 95 96 96 if (up && !active) … … 103 103 104 104 if (act!=active && active && activate_id!=-1) 105 wm-> push_event(new event(activate_id,NULL));105 wm->Push(new Event(activate_id,NULL)); 106 106 act=active; 107 107 … … 121 121 extern int sfx_volume; 122 122 123 void ico_button::handle_event( event &ev, image *screen, InputManager *im)123 void ico_button::handle_event(Event &ev, image *screen, InputManager *im) 124 124 { 125 125 if ((ev.type==EV_KEY && ev.key==13) || (ev.type==EV_MOUSE_BUTTON && … … 130 130 up=!up; 131 131 draw(act,screen); 132 wm-> push_event(new event(id,(char *)this));132 wm->Push(new Event(id,(char *)this)); 133 133 if (S_BUTTON_PRESS_SND) 134 134 cache.sfx(S_BUTTON_PRESS_SND)->play(sfx_volume);
Note: See TracChangeset
for help on using the changeset viewer.