1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
#ifndef EDIT_NAME_PANEL_INCLUDED
#define EDIT_NAME_PANEL_INCLUDED
#include "Panel.h"
#include "ScoreBundle.h"
class EditNamePanel : public Panel {
public:
EditNamePanel( int inW, int inH );
~EditNamePanel();
// set score to post (with edited name) as soon as name
// next edited.
// after name edited, and SEND button pressed,
// postScore will be called from
// inScoreHandler (assumed to be a MenuPanel)
// inScore destroyed by this class
void setScoreToPost( ScoreBundle *inScore,
Panel *inScoreHandler );
// over rides these:
void setVisible( char inIsVisible );
char pointerUp( int inX, int inY );
protected:
// override
void drawBase();
void closePressed();
private:
// pointer to global player name
char *mName;
// override instead of drawing global name if non-NULL
char *mOverrideName;
Button mSendButton;
Button *mKeyButtons[28];
ScoreBundle *mScoreToPost;
Panel *mScoreHandler;
};
#endif
|