Exemplo n.º 1
0
void formula_debugger::show_gui()
{
	if (resources::screen == nullptr) {
		WRN_FDB << "do not showing debug window due to nullptr gui" << std::endl;
		return;
	}
	if (game_config::debug) {
		gui2::tformula_debugger debug_dialog(*this);
		debug_dialog.show(resources::screen->video());
	} else {
		WRN_FDB << "do not showing debug window due to disabled --new-widgets"<< std::endl;
	}
}
Exemplo n.º 2
0
void formula_debugger::show_gui()
{
	if (resources::screen == NULL) {
		WRN_FDB << "do not showing debug window due to NULL gui" << std::endl;
		return;
	}
	if (gui2::new_widgets) {
		gui2::tformula_debugger debug_dialog(*this);
		debug_dialog.show(resources::screen->video());
	} else {
		WRN_FDB << "do not showing debug window due to disabled --new-widgets"<< std::endl;
	}
}
Exemplo n.º 3
0
void formula_debugger::show_gui()
{
	if (game_display::get_singleton() == nullptr) {
		WRN_FDB << "do not showing debug window due to nullptr gui" << std::endl;
		return;
	}
	if (game_config::debug) {
		gui2::dialogs::formula_debugger debug_dialog(*this);
		debug_dialog.show();
	} else {
		WRN_FDB << "do not showing debug window due to disabled --new-widgets"<< std::endl;
	}
}