2 |
==================== |
==================== |
3 |
uiscreen_main.h |
uiscreen_main.h |
4 |
==================== |
==================== |
5 |
version 0.0.1 |
version 0.0.2 |
6 |
==================== |
==================== |
7 |
|
|
8 |
This is the main screen the player will be seeing most of the time. it includes the "panel", the map window, and a status bar. |
This is the main screen the player will be seeing most of the time. it includes the "panel", the map window, and a status bar. |
13 |
|
|
14 |
CHANGELOG: |
CHANGELOG: |
15 |
---------------------- |
---------------------- |
16 |
|
0.0.2 - August 7, 2003 |
17 |
|
- newest version contains: |
18 |
|
- seperator graphics |
19 |
|
- next turn button |
20 |
|
- minimap |
21 |
|
- top nav buttons |
22 |
|
- cleaned up code to avoid segfaults |
23 |
0.0.1 - July 24, 2003: |
0.0.1 - July 24, 2003: |
24 |
-the main screen for Advanced Football demo with: |
-the main screen for Advanced Football demo with: |
25 |
- status bar |
- status bar |
32 |
|
|
33 |
TO-DO & EXPANSION LIST |
TO-DO & EXPANSION LIST |
34 |
---------------------- |
---------------------- |
35 |
- minimap! |
- scrollbars need to work on scroll position, not just scroll track - arrows don't work |
36 |
- like, everything |
- rotating panel (rotating graphics?) |
|
- rotating panel (mabey rotating graphic?) |
|
37 |
|
|
38 |
|
|
39 |
=============================================================== |
=============================================================== |
43 |
#ifndef UISCREEN_MAIN_H |
#ifndef UISCREEN_MAIN_H |
44 |
#define UISCREEN_MAIN_H |
#define UISCREEN_MAIN_H |
45 |
|
|
46 |
|
#include "renderman.h" |
47 |
|
|
48 |
|
#include "pgminimap.h" |
|
|
|
|
#include "uiscreen.h" |
|
|
|
|
49 |
#include "mapwindow.h" |
#include "mapwindow.h" |
50 |
#include "paragui.h" |
#include "paragui.h" |
51 |
#include "pgapplication.h" |
#include "pgapplication.h" |
52 |
#include "pgscrollbar.h" |
#include "pgscrollbar.h" |
53 |
#include "pgwindow.h" |
#include "pgwindow.h" |
54 |
#include "pglabel.h" |
#include "pglabel.h" |
55 |
|
#include "pgimage.h" |
56 |
#include "pgbutton.h" |
#include "pgbutton.h" |
57 |
#include "pgthemewidget.h" |
#include "pgthemewidget.h" |
58 |
|
#include "pgeventobject.h" // do i handle callbacks? |
59 |
|
|
60 |
|
|
61 |
|
#include "../core/pointerhub.h" |
62 |
|
|
63 |
/** The main screen. contains map, pods, side panel, scroll bars, status bar, etc. */ |
/** The main screen. contains map, pods, side panel, scroll bars, status bar, etc. */ |
64 |
class UIScreen_Main: public UIScreen { |
class UIScreen_Main: public PG_ThemeWidget, public PG_EventObject, public PointerHub { |
65 |
public: |
public: |
66 |
|
|
67 |
UIScreen_Main(PG_Widget* parent, const PG_Rect &r); |
UIScreen_Main(PG_Widget* parent, const PG_Rect &r); |
68 |
virtual ~UIScreen_Main(); |
virtual ~UIScreen_Main(); |
69 |
|
|
70 |
void MovePod(int x1, int y1, int x2, int y2); |
void MovePod(int x1, int y1, int x2, int y2); |
71 |
|
void ReInitImages(); |
72 |
|
|
73 |
|
// GET FUNCIONS |
74 |
|
PG_Button* GetB1(); |
75 |
|
PG_Button* GetB2(); |
76 |
|
PG_Button* GetB3(); |
77 |
|
PG_ThemeWidget* GetPanel(); // this needs to return Panel type when we get to that point. |
78 |
|
PG_Button* GetTileSwapButton(); |
79 |
|
PG_ThemeWidget* GetStatusBar(); |
80 |
|
PG_Label* GetStatusLabel(); |
81 |
|
PG_MapWindow* GetMapWindow(); |
82 |
|
PG_ScrollBar* GetVScroll(); |
83 |
|
PG_ScrollBar* GetHScroll(); |
84 |
|
PG_MiniMap* GetMiniMap(); |
85 |
|
|
86 |
// events |
// EVENTS |
87 |
PARAGUI_CALLBACK(handle_regen_map); |
PARAGUI_CALLBACK(handle_regen_map); |
88 |
PARAGUI_CALLBACK(handle_play_football); |
PARAGUI_CALLBACK(handle_play_football); |
89 |
PARAGUI_CALLBACK(handle_go_to_start); |
PARAGUI_CALLBACK(handle_go_to_start); |
90 |
|
|
|
void SetStatus(string &s); |
|
|
|
|
91 |
protected: |
protected: |
92 |
|
PG_ThemeWidget* panel; |
93 |
|
PG_Image* panel_div_a; |
94 |
|
PG_Image* panel_div_b; |
95 |
|
|
96 |
|
PG_Button* ba; |
97 |
|
PG_Button* bb; |
98 |
|
PG_Button* bc; |
99 |
|
PG_Button* bd; |
100 |
|
|
101 |
|
|
|
PG_Window* panel; |
|
102 |
PG_Button* b1; |
PG_Button* b1; |
103 |
PG_Button* b2; |
PG_Button* b2; |
104 |
PG_Button* b3; // go back |
PG_Button* b3; // go back |
105 |
|
PG_Button* tileswap; |
106 |
|
PG_Button* next_turn; |
107 |
|
|
|
/* |
|
|
PG_Button* ba; |
|
|
PG_Button* bb; |
|
|
PG_Button* bc; |
|
|
*/ |
|
108 |
|
|
109 |
PG_Window* statbar; |
|
110 |
|
|
111 |
|
|
112 |
|
PG_ThemeWidget* statbar; |
113 |
PG_Label* status_label; |
PG_Label* status_label; |
114 |
|
|
115 |
PG_MapWindow* map_window; |
PG_MapWindow* map_window; |
116 |
PG_ScrollBar* v; |
PG_ScrollBar* v; |
117 |
PG_ScrollBar* h; |
PG_ScrollBar* h; |
118 |
|
|
119 |
|
PG_MiniMap* minimap; |
120 |
|
|
121 |
}; |
}; |
122 |
|
|
123 |
#endif |
#endif |