From a95028547981614e06ea7a6d22b853b85418cea3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Apr 2009 17:08:51 +0000 Subject: added info registry, list_info added network info transfer added info based buy menu and related game changes --- src/core/descriptions.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/core/descriptions.h') 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; }; -- cgit v1.2.3