Planeshift
pawsloading.h
Go to the documentation of this file.
1
/*
2
* pawsLoadWindow.h - Author: Andrew Craig
3
*
4
* Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5
*
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation (version 2 of the License)
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
*
18
*/
19
20
#ifndef PAWS_LOAD_WINDOW_HEADER
21
#define PAWS_LOAD_WINDOW_HEADER
22
//=============================================================================
23
// Crystal Space Includes
24
//=============================================================================
25
26
//=============================================================================
27
// Project Includes
28
//=============================================================================
29
#include "
paws/pawswidget.h
"
30
#include "
net/cmdbase.h
"
31
32
//=============================================================================
33
// Local Includes
34
//=============================================================================
35
36
//-----------------------------------------------------------------------------
37
// Forward Declarations
38
//-----------------------------------------------------------------------------
39
class
pawsMessageTextBox
;
40
41
45
class
pawsLoadWindow
:
public
pawsWidget
,
public
psClientNetSubscriber
46
{
47
public
:
48
pawsLoadWindow
();
49
virtual
~pawsLoadWindow
();
50
51
bool
PostSetup
();
52
void
HandleMessage
(
MsgEntry
* me );
53
void
AddText
(
const
char
* text );
54
void
Clear
();
55
void
Show
();
56
void
Hide
();
57
void
Draw
();
58
66
void
InitAnim
(csVector2 start, csVector2 dest, csTicks delay);
67
73
void
PublishMOTD
();
74
75
private
:
76
pawsMessageTextBox
* loadingText;
77
78
bool
renderAnim;
79
csVector2 lastPos;
80
csVector2 vel;
81
csVector2 diffVector;
82
csVector2 destination;
83
csArray<csVector2> positions;
84
csTicks delayBetDot;
85
csTicks startFrom;
86
size_t
numberDot;
87
csRef<iPawsImage> dot;
88
89
csString guildName;
90
csString guildMOTD;
91
92
// Default tip position (used for switch loading/travel screens)
93
csRect tipDefaultRect;
94
100
void
DrawAnim();
101
};
102
103
CREATE_PAWS_FACTORY
(
pawsLoadWindow
);
104
105
#endif
106
107
pawsLoadWindow::PostSetup
bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsLoadWindow)
pawsLoadWindow::InitAnim
void InitAnim(csVector2 start, csVector2 dest, csTicks delay)
Initializing of the dot animation.
pawsLoadWindow::~pawsLoadWindow
virtual ~pawsLoadWindow()
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
cmdbase.h
pawsLoadWindow
This is the window that is displayed when the game is loading the maps.
Definition:
pawsloading.h:45
pawsLoadWindow::Hide
void Hide()
Makes widget invisible and removes focus if widget has current focus.
pawsLoadWindow::HandleMessage
void HandleMessage(MsgEntry *me)
pawsLoadWindow::PublishMOTD
void PublishMOTD()
Sends the motd message to local listeners.
pawswidget.h
pawsLoadWindow::Clear
void Clear()
pawsMessageTextBox
This is a special type of text box that is used for messages.
Definition:
pawstextbox.h:285
pawsLoadWindow::AddText
void AddText(const char *text)
pawsLoadWindow::pawsLoadWindow
pawsLoadWindow()
pawsLoadWindow::Draw
void Draw()
Draws the widget and all of it's children.
pawsLoadWindow::Show
void Show()
Makes widget visible and brings it to the front.
psClientNetSubscriber
Definition:
cmdbase.h:67
client
gui
pawsloading.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11