Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-04-15 17:08:51 +0000
committerStijn Buys <ingar@osirion.org>2009-04-15 17:08:51 +0000
commita95028547981614e06ea7a6d22b853b85418cea3 (patch)
treed4d6998a4118a4d8690ce138d586abfba4893179 /src/core/descriptions.h
parent4f33f59571f10019c1e7a0e3640b2f69c159a8cf (diff)
added info registry, list_info
added network info transfer added info based buy menu and related game changes
Diffstat (limited to 'src/core/descriptions.h')
-rw-r--r--src/core/descriptions.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/descriptions.h b/src/core/descriptions.h
index 345d354..dec7896 100644
--- a/src/core/descriptions.h
+++ b/src/core/descriptions.h
@@ -28,6 +28,8 @@ class ButtonDescription
public:
enum Align {Center=0, Left=1, Right=2};
+ enum CommandType {CommandNone=0, CommandGame=1, CommandMenu=2};
+
ButtonDescription();
~ButtonDescription();
@@ -36,6 +38,9 @@ public:
/// button text
inline const std::string & text() const { return button_text; }
+ /// button command type
+ inline const CommandType command_type() const {return button_commandtype; }
+
/// button command
inline const std::string & command() const { return button_command; }
@@ -54,7 +59,7 @@ public:
void set_text(const std::string &text);
/// set button command
- void set_command(const std::string &command);
+ void set_command(const std::string &command, const CommandType command_type);
/// set button name
void set_modelname(const std::string &modelname);
@@ -64,10 +69,10 @@ public:
private:
std::string button_text;
+ CommandType button_commandtype;
std::string button_command;
std::string button_modelname;
Align button_align;
-
model::Model *button_model;
};