summaryrefslogtreecommitdiff
path: root/src/gui/setupitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-19 21:23:26 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-19 21:23:26 +0300
commitf64447a7c8a3ba855923e3d9a1c2e9c62e6bdba4 (patch)
treee6b2678f3e4b1f4456843246a15bf8654e89e41d /src/gui/setupitem.h
parentbf38c1a0d27aff70646022fb2a898532c1f95001 (diff)
downloadmanaverse-f64447a7c8a3ba855923e3d9a1c2e9c62e6bdba4.tar.gz
manaverse-f64447a7c8a3ba855923e3d9a1c2e9c62e6bdba4.tar.bz2
manaverse-f64447a7c8a3ba855923e3d9a1c2e9c62e6bdba4.tar.xz
manaverse-f64447a7c8a3ba855923e3d9a1c2e9c62e6bdba4.zip
Fix reading default config values in setupitem class.
Diffstat (limited to 'src/gui/setupitem.h')
-rw-r--r--src/gui/setupitem.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/setupitem.h b/src/gui/setupitem.h
index b5ea566da..686f8a2a7 100644
--- a/src/gui/setupitem.h
+++ b/src/gui/setupitem.h
@@ -51,6 +51,13 @@ class TextField;
class SetupItem : public gcn::ActionListener
{
public:
+ enum
+ {
+ VBOOL,
+ VSTR,
+ VINT
+ };
+
SetupItem(std::string text, std::string description,
std::string keyName, SetupTabScroll *parent,
std::string eventName, bool mainConfig);
@@ -115,6 +122,8 @@ class SetupItem : public gcn::ActionListener
gcn::Widget *mWidget;
std::list<gcn::Widget*> mTempWidgets;
+
+ int mValueType;
};
class SetupItemCheckBox : public SetupItem