Planeshift
pawsconfigentitylabels.h
Go to the documentation of this file.
1 /*
2  * pawsconfigentitylabels.h - Author: Ondrej Hurt
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_CONFIG_ENTITY_LABELS_HEADER
21 #define PAWS_CONFIG_ENTITY_LABELS_HEADER
22 
23 // CS INCLUDES
24 #include <csutil/array.h>
25 
26 // PAWS INCLUDES
27 #include "paws/pawswidget.h"
28 #include "pawsconfigwindow.h"
30 
31 class pawsTree;
32 class pawsCheckBox;
38 {
39 public:
40  virtual ~pawsConfigEntityLabels();
42  virtual bool OnChange(pawsWidget * widget);
43  virtual bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
44 
46  virtual bool Initialize();
47  virtual bool LoadConfig();
48  virtual bool SaveConfig();
49  virtual void SetDefault();
50 
52  virtual void OnColorEntered(const char *name,int param,int color);
53 protected:
54 
58  bool CreateTree();
67 
68 
72 };
73 
74 
76 
77 
78 #endif
79 
virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
int labelColors[ENTITY_TYPES_AMOUNT]
Radio button group for set creatures labels visibility.
class psEntityLabels serves for creation and management of 2D sprites hanging above cel-entities that...
Definition: entitylabels.h:69
pawsColorPromptWindow is window that lets the user enter a color by the use of three sliders and a co...
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
A combination widget that has a check box and a text label.
Definition: pawscheckbox.h:48
psEntityLabels * entityLabels
array of default entity labels colors
virtual bool Initialize()
from pawsConfigSectionWindow:
csString name
The name of this widget.
Definition: pawswidget.h:217
int defLabelColors[ENTITY_TYPES_AMOUNT]
array of entity labels colors
virtual void SetDefault()
sets content of dialog according to default configuration
class pawsConfigEntityLabels is options screen for configuration of entity labels (see client/entityl...
virtual ~pawsConfigEntityLabels()
pawsColorPromptWindow * colorPicker
the tree that makes whole window GUI
amount of entity types
Definition: entitylabels.h:62
virtual void OnColorEntered(const char *name, int param, int color)
from iOnColorEnteredAction (set color to param-identified label)
pawsRadioButtonGroup * CreatureRBG
Radio button group for set items labels visibility.
virtual bool LoadConfig()
sets content of dialog according to current configuration
pawsTree * tree
Adds widgets to all nodes in subtree with root &#39;subtreeRoot&#39;.
CREATE_PAWS_FACTORY(pawsConfigEntityLabels)
virtual bool SaveConfig()
remembers settings in-game and saves them permanently to a file also
virtual bool OnChange(pawsWidget *widget)
from pawsWidget:
bool CreateTree()
Creates the tree that makes the whole GUI.
pawsCheckBox * visGuildCheck
pointer to colorPicker window
pawsRadioButtonGroup * ItemRBG
check box to select visibility of guild
This is a set of radio buttons and is used to control them.
Definition: pawsradio.h:131