2 |
==================== |
==================== |
3 |
uiscreen_main.h |
uiscreen_main.h |
4 |
==================== |
==================== |
5 |
version 0.0.2 |
version 0.0.4 |
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.4 - August 20, 2003 |
17 |
|
- minor changes to work with advancing UI model. |
18 |
|
0.0.3 - August 15, 2003 |
19 |
|
- lots of changes, too many to count! screen now is parent to The Panel and a revamed map window. |
20 |
|
- all buttons relocated to the panel |
21 |
|
- NEXT TURN now works! |
22 |
0.0.2 - August 7, 2003 |
0.0.2 - August 7, 2003 |
23 |
- newest version contains: |
- newest version contains: |
24 |
- seperator graphics |
- seperator graphics |
39 |
TO-DO & EXPANSION LIST |
TO-DO & EXPANSION LIST |
40 |
---------------------- |
---------------------- |
41 |
- scrollbars need to work on scroll position, not just scroll track - arrows don't work |
- scrollbars need to work on scroll position, not just scroll track - arrows don't work |
|
- rotating panel (rotating graphics?) |
|
42 |
|
|
43 |
|
|
44 |
=============================================================== |
=============================================================== |
48 |
#ifndef UISCREEN_MAIN_H |
#ifndef UISCREEN_MAIN_H |
49 |
#define UISCREEN_MAIN_H |
#define UISCREEN_MAIN_H |
50 |
|
|
51 |
|
class PG_Panel; |
52 |
|
|
53 |
#include "renderman.h" |
#include "renderman.h" |
54 |
|
|
55 |
|
#include "panel/pgpanel.h" |
56 |
#include "pgminimap.h" |
#include "pgminimap.h" |
57 |
#include "mapwindow.h" |
#include "mapwindow.h" |
58 |
#include "paragui.h" |
#include "paragui.h" |
67 |
|
|
68 |
|
|
69 |
#include "../core/pointerhub.h" |
#include "../core/pointerhub.h" |
70 |
|
#include "../core/turn_mgr.h" |
71 |
|
|
72 |
|
|
73 |
/** 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. */ |
74 |
class UIScreen_Main: public PG_ThemeWidget, public PG_EventObject, public PointerHub { |
class UIScreen_Main: public PG_ThemeWidget, public PG_EventObject, public PointerHub { |
81 |
void ReInitImages(); |
void ReInitImages(); |
82 |
|
|
83 |
// GET FUNCIONS |
// GET FUNCIONS |
84 |
|
PG_Panel* GetPanel(); |
85 |
|
PG_MapWindow* GetMapWindow(); |
86 |
|
PG_ScrollBar* GetVScroll(); |
87 |
|
PG_ScrollBar* GetHScroll(); |
88 |
|
/* |
89 |
PG_Button* GetB1(); |
PG_Button* GetB1(); |
90 |
PG_Button* GetB2(); |
PG_Button* GetB2(); |
91 |
PG_Button* GetB3(); |
PG_Button* GetB3(); |
97 |
PG_ScrollBar* GetVScroll(); |
PG_ScrollBar* GetVScroll(); |
98 |
PG_ScrollBar* GetHScroll(); |
PG_ScrollBar* GetHScroll(); |
99 |
PG_MiniMap* GetMiniMap(); |
PG_MiniMap* GetMiniMap(); |
100 |
|
*/ |
101 |
|
|
102 |
// EVENTS |
// EVENTS |
|
PARAGUI_CALLBACK(handle_regen_map); |
|
103 |
PARAGUI_CALLBACK(handle_play_football); |
PARAGUI_CALLBACK(handle_play_football); |
104 |
PARAGUI_CALLBACK(handle_go_to_start); |
PARAGUI_CALLBACK(handle_next_turn); |
105 |
|
PARAGUI_CALLBACK(handle_vscroll); |
106 |
|
PARAGUI_CALLBACK(handle_hscroll); |
107 |
|
|
108 |
protected: |
protected: |
109 |
|
|
110 |
|
/* |
111 |
PG_ThemeWidget* panel; |
PG_ThemeWidget* panel; |
112 |
PG_Image* panel_div_a; |
PG_Image* panel_div_a; |
113 |
PG_Image* panel_div_b; |
PG_Image* panel_div_b; |
122 |
PG_Button* b2; |
PG_Button* b2; |
123 |
PG_Button* b3; // go back |
PG_Button* b3; // go back |
124 |
PG_Button* tileswap; |
PG_Button* tileswap; |
125 |
PG_Button* next_turn; |
*/ |
|
|
|
|
|
|
|
|
|
126 |
|
|
127 |
|
PG_Panel* panel; |
128 |
|
|
129 |
|
PG_Button* next_turn; |
130 |
|
PG_Label* num_turns; |
131 |
PG_ThemeWidget* statbar; |
PG_ThemeWidget* statbar; |
132 |
PG_Label* status_label; |
PG_Label* status_label; |
133 |
|
|
135 |
PG_ScrollBar* v; |
PG_ScrollBar* v; |
136 |
PG_ScrollBar* h; |
PG_ScrollBar* h; |
137 |
|
|
138 |
PG_MiniMap* minimap; |
//PG_MiniMap* minimap; |
139 |
|
|
140 |
}; |
}; |
141 |
|
|