//--------------------------------------------------------------------------- #ifndef ScoreFormUnitH #define ScoreFormUnitH //--------------------------------------------------------------------------- #include #include #include #include #include "GeneralDialogPanel.h" #include "TextButton.h" #include #include "PNGButton.hpp" //--------------------------------------------------------------------------- class TScoreForm : public TForm { __published: // IDE-managed Components TTextButton *m_btnOk; TTextButton *m_btnCanel; TLabel *Label1; TLabel *Label3; TLabel *Label5; TLabel *m_StyleName; TLabel *m_NetScore; TLabel *m_MyScore; TPNGButton *PNGButton1; TPNGButton *PNGButton2; TPNGButton *PNGButton3; TPNGButton *PNGButton4; TPNGButton *PNGButton5; TPNGButton *PNGButton6; TPNGButton *PNGButton7; TPNGButton *PNGButton8; TPNGButton *PNGButton9; TPNGButton *PNGButton10; TPNGButton *PNGButton11; TPNGButton *PNGButton12; TPNGButton *PNGButton13; TPNGButton *PNGButton14; TPNGButton *PNGButton15; TPNGButton *PNGButton16; TPNGButton *PNGButton17; TPNGButton *PNGButton18; TPNGButton *PNGButton19; TPNGButton *PNGButton20; void __fastcall BtnMouseEnter(TObject *Sender); void __fastcall BtnMouseLeave(TObject *Sender); void __fastcall BtnClick(TObject *Sender); void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift); void __fastcall FormPaint(TObject *Sender); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall FormCreate(TObject *Sender); private: // User declarations TPNGButton *m_PNGNetScore[10]; TPNGButton *m_PNGMyScore[10]; TPngImage *m_PngScoreA; TPngImage *m_PngScoreB; public: // User declarations int MyScore; void SetNetScore( int iScore, const char* strName ); void SetMyScore( int iScore, bool bChange=true ); void SetScoreWindow(bool DownorUp); __fastcall TScoreForm(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TScoreForm *ScoreForm; //--------------------------------------------------------------------------- #endif