Ejemplo n.º 1
0
//. #include "ai_space.h"
//. #include "script_engine.h"
void CDialogHolder::StartStopMenu(CUIDialogWnd* pDialog, bool bDoHideIndicators)
{
//.	ai().script_engine().script_log	(eLuaMessageTypeError,"foo");
	if( pDialog->IsShown() )
		StopMenu(pDialog);
	else
		StartMenu(pDialog, bDoHideIndicators);
	
}
Ejemplo n.º 2
0
void ShowError(uint8_t ErrorClass, uint8_t ErrorCode) {
	timer_stop(-1); // stop all timers
	OutDataPort(0); // reset all ports
	state.bits.error=1;
	state.bits.started = 0;
	if (state.bits.config == 1) {
		StopMenu();
		state.bits.config = 0;
	}

	char buf[6];
	int16_to_str(ErrorCode+1, buf, 0x30); // bcd convertion

	lcd_clear();
	ShowCmd(ErrorCode);
	lcd_pos(0x19); lcd_out((char[]){79,193,184,178,186,97,33,0}); // "Ошибка!"