__myevic__ void ShowContrast() { int pc, nd, x; DrawString( String_Contrast, 4, 6 ); DrawHLine( 0, 16, 63, 1 ); pc = ( ( 100 * dfContrast ) / 255 ); nd = ( pc < 100 ? pc < 10 ? 1 : 2 : 3 ); x = ( 64 - ( 6 * nd + 9 )) / 2; DrawValue( x, 20, pc, 0, 0x0B, 0 ); DrawImage( x + 6 * nd, 20, 0xC2 ); DrawFillRect( 0, 32, 63, 44, 1 ); DrawFillRect( 1, 33, 62, 43, 0 ); if ( dfContrast ) { DrawFillRect( 2, 34, 2 + ( ( 59 * dfContrast ) / 255 ), 42, 1 ); } DrawStringCentered( String_Fireto, 57 ); DrawStringCentered( ( gFlags.edit_capture_evt ) ? String_Exit : String_Edit, 67 ); if ( !(dfStatus.nologo) ) DrawLOGO( 0, 88 ); }
//========================================================================= //----- (000068D4) -------------------------------------------------------- __myevic__ void ShowNewCoil() { int rez; DrawStringCentered( String_NewCoil, 50 ); DrawValue( 16, 62, dfResistance, 2, 0x0B, 3 ); DrawImage( 40, 62, 0xC0 ); DrawStringCentered( String_Right, 74 ); DrawStringCentered( String_SameCoil, 90 ); if ( ISMODETC( dfMode ) ) { if ( dfMode == 0 ) { rez = dfRezNI; } else if ( dfMode == 1 ) { rez = dfRezTI; } else if ( dfMode == 2 ) { rez = dfRezSS; } else if ( dfMode == 3 ) { rez = dfRezTCR; } DrawValue( 16, 102, rez, 2, 11, 3 ); } DrawImage( 40, 102, 0xC0 ); DrawStringCentered( String_Left, 114 ); }
__myevic__ void ShowInfos() { uint16_t strbuf[20]; convert_string1( strbuf, "Ferox" ); DrawStringCentered( strbuf, 82 ); convert_string1( strbuf, "was" ); DrawStringCentered( strbuf, 92 ); convert_string1( strbuf, "here" ); DrawStringCentered( strbuf, 102 ); return; }
void Render(Context* pcontext) { if (m_bValidPreview) { RealRender(pcontext); if (m_bShowDetails) { int nbsect = m_missionpv.GetClusters()->n(); int nbaleph = m_missionpv.GetWarps()->n() / 2; ZString str1 = ZString(nbsect) + (nbsect>1? ZString(" sectors"): ZString(" sector")); ZString str2 = ZString(nbaleph) + (nbaleph>1? ZString(" alephs"): ZString(" aleph")); Rect r = m_bounds.GetRect(); WinPoint p1 = TrekResources::LargeBoldFont()->GetTextExtent(str1); WinPoint p2 = TrekResources::LargeBoldFont()->GetTextExtent(str2); debugf("show details: %s - %s\n",(const char *)str1,(const char *)str2); int x1 = r.Size().X()-p1.X(); if (x1<0) x1 = 0; int x2 = r.Size().X()-p2.X(); if (x2<0) x2 = 0; int y2 = r.Size().Y()-p1.Y()-p2.Y(); if (y2<0) y2 = 0; y2 = y2/2; int y1 = y2+p2.Y(); if (y1<0) y1 = 0; pcontext->DrawString(TrekResources::LargeBoldFont(),Color::White(),Point(x1/2,y1),str1); pcontext->DrawString(TrekResources::LargeBoldFont(),Color::White(),Point(x2/2,y2),str2); } return; } // draw the minimap background pcontext->SetShadeMode(ShadeModeFlat); pcontext->DrawImage(m_pimageSectorBkgnd->GetSurface()); if (m_pszReason[0] == '1') DrawStringCentered(pcontext, TrekResources::SmallFont(), Color::White(), // Point(20, 96/2-14), "invalid settings"); else if (m_pszReason != NULL) DrawStringCentered(pcontext, TrekResources::SmallFont(), Color::White(), m_pszReason); }
//========================================================================= //----- (000077CC) -------------------------------------------------------- __myevic__ void ShowNoAtoFound() { DrawStringCentered( String_No, 82 ); DrawStringCentered( String_Atomizer, 92 ); DrawStringCentered( String_Found, 102 ); }
//========================================================================= //----- (000077B0) -------------------------------------------------------- __myevic__ void ShowKeyUnLock() { DrawStringCentered( String_Key, 88 ); DrawStringCentered( String_UnLock, 102 ); }
//========================================================================= //----- (0000776C) -------------------------------------------------------- __myevic__ void ShowBatLowLock() { DrawStringCentered( String_Battery, 82 ); DrawStringCentered( String_Low, 92 ); DrawStringCentered( String_Lock, 102 ); }
//========================================================================= //----- (00007750) -------------------------------------------------------- __myevic__ void ShowBatLow() { DrawStringCentered( String_Battery, 88 ); DrawStringCentered( String_Low, 102 ); }
//========================================================================= //----- (00007734) -------------------------------------------------------- __myevic__ void ShowAtoShort() { DrawStringCentered( String_Atomizer, 88 ); DrawStringCentered( String_Short, 102 ); }
//========================================================================= //----- (00007718) -------------------------------------------------------- __myevic__ void ShowAtoLow() { DrawStringCentered( String_Atomizer, 88 ); DrawStringCentered( String_Low, 102 ); }
//========================================================================= //----- (000076DC) -------------------------------------------------------- __myevic__ void ShowDevTooHot() { DrawStringCentered( String_Device, 88 ); DrawStringCentered( String_TooHot, 102 ); }
//========================================================================= //----- (000076AC) -------------------------------------------------------- __myevic__ void ShowStealthMode() { DrawStringCentered( String_Stealth, 88 ); DrawStringCentered( dfStealthOn ? String_ON : String_OFF, 102 ); }
//========================================================================= //----- (00007684) -------------------------------------------------------- __myevic__ void ShowVersion() { DrawStringCentered( String_Version, 88 ); DrawValue( 6, 102, 303, 2, 0x52, 3 ); }
//========================================================================= //----- (00006874) -------------------------------------------------------- __myevic__ void ShowBoardTemp() { DrawStringCentered( String_Temp, 88 ); DrawValue( 16, 102, BoardTemp, 0, 0x52, 2 ); }
//========================================================================= //----- (0000683C) -------------------------------------------------------- __myevic__ void ShowBattVolts() { DrawStringCentered( String_Battery, 88 ); DrawValue( 6, 102, BatteryVoltage, 2, 0x29, 3 ); DrawImage( 46, 102, 0xB8 ); }
//========================================================================= //----- (000077F4) -------------------------------------------------------- __myevic__ void Show10sProtec() { DrawStringCentered( String_Over10s, 88 ); DrawStringCentered( String_Protec, 102 ); }
//========================================================================= //----- (00007810) -------------------------------------------------------- __myevic__ void ShowWeakBat() { DrawStringCentered( String_Weak, 106 ); DrawStringCentered( String_Battery, 118 ); }
//========================================================================= //----- (000076F8) -------------------------------------------------------- __myevic__ void ShowTiOnOff() { DrawStringCentered( dfTiOn ? String_TiON : String_TiOFF, 88 ); }