Planeshift
pawsmodswindow.h
Go to the documentation of this file.
1
/*
2
* Author: Ralph Campbell
3
*
4
* Copyright (C) 2014 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
#ifndef PAWS_MODS_WINDOW_HEADER
20
#define PAWS_MODS_WINDOW_HEADER
21
22
#include "
paws/pawswidget.h
"
23
#include "
net/cmdbase.h
"
24
25
class
pawsListBox
;
26
class
pawsGMSpawnWindow
;
27
33
class
pawsModsWindow
:
public
pawsWidget
,
public
psClientNetSubscriber
34
{
35
public
:
36
pawsModsWindow
();
37
virtual
~pawsModsWindow
();
38
39
bool
PostSetup
();
40
41
void
HandleMessage
(
MsgEntry
* me);
42
43
void
OnListAction
(
pawsListBox
* widget,
int
status);
44
45
void
Show
();
46
47
private
:
48
pawsListBox
* list[
psGMSpawnMods::ITEM_NUM_TYPES
];
49
int
selectedRow[
psGMSpawnMods::ITEM_NUM_TYPES
];
50
csArray<psGMSpawnMods::ItemModifier> mods;
51
52
pawsGMSpawnWindow
* spawnw;
53
};
54
55
CREATE_PAWS_FACTORY
(
pawsModsWindow
);
56
57
#endif
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
pawsModsWindow
The Mods window shows 3 lists of item modifiers when creating items from the pawsGMSpawnWindow.
Definition:
pawsmodswindow.h:33
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
cmdbase.h
pawsModsWindow::PostSetup
bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsListBox
A simple list box widget.
Definition:
pawslistbox.h:202
pawswidget.h
pawsModsWindow::HandleMessage
void HandleMessage(MsgEntry *me)
pawsModsWindow::OnListAction
void OnListAction(pawsListBox *widget, int status)
Called whenever an item in a child list box is selected.
pawsGMSpawnWindow
Window which allows GM to spawn items in game, shows full tree of items on the left and 3d preview of...
Definition:
pawsgmspawn.h:41
pawsModsWindow::pawsModsWindow
pawsModsWindow()
psGMSpawnMods::ITEM_NUM_TYPES
Definition:
messages.h:5061
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsModsWindow)
pawsModsWindow::Show
void Show()
Makes widget visible and brings it to the front.
psClientNetSubscriber
Definition:
cmdbase.h:67
pawsModsWindow::~pawsModsWindow
virtual ~pawsModsWindow()
client
gui
pawsmodswindow.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11