Exemplo n.º 1
0
void create::select_level_type_helper(const std::string & str)
{
	for (size_t idx = 0; idx < available_level_types_.size(); idx++) {
		if (available_level_types_[idx].to_string() == str) {
			level_type_combo_.set_selected(idx);
			init_level_type_changed(0);
			process_event_impl(process_event_data(false, false, false));
		}
	}
}
Exemplo n.º 2
0
void create::process_event()
{
	int mousex, mousey;
	SDL_GetMouseState(&mousex,&mousey);
	tooltips::process(mousex, mousey);

	process_event_data data;
	data.quit = cancel_game_.pressed();
	data.create = launch_game_.pressed() || levels_menu_.double_clicked();
	data.load = load_game_.pressed();

	process_event_impl(data);
}
Exemplo n.º 3
0
bool create::plugin_event_helper(const process_event_data & data)
{
	process_event_impl(data);
	return get_result() == mp::ui::CONTINUE;
}
Exemplo n.º 4
0
 void process_event( const event_base & evt )
 {
   process_event_impl( evt );
 }
Exemplo n.º 5
0
void wait::process_event()
{
	process_event_impl(cancel_button_.pressed());
}