Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;
};