NXEngine v1.0.0.6
[NXEngine.git] / TextBox / YesNoPrompt.h
blobdc7286aac41fa5be31d623550bec164a64c663c0
2 #ifndef _YESNOPROMPT_H
3 #define _YESNOPROMPT_H
5 enum YNJResult
7 NO,
8 YES
9 };
11 class TB_YNJPrompt
13 public:
14 void SetVisible(bool enable);
15 void ResetState();
17 void Draw();
19 bool IsVisible() { return fVisible; }
20 bool ResultReady(); // returns true if the user has selected a result
21 int GetResult(); // returns YES or NO
23 private:
24 bool fVisible;
25 struct { int y; } fCoords;
27 int fState;
28 int fTimer;
30 int fAnswer;
34 #endif