From 995bc5ba7d1b5e38cf294d6fa27db7ee89886a28 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Nov 2015 20:16:14 +0300 Subject: Use magic command properties only if compiled for tmwa. --- src/gui/windows/textcommandeditor.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/windows/textcommandeditor.h') diff --git a/src/gui/windows/textcommandeditor.h b/src/gui/windows/textcommandeditor.h index 2e04e4fbf..0baa9a62c 100644 --- a/src/gui/windows/textcommandeditor.h +++ b/src/gui/windows/textcommandeditor.h @@ -32,7 +32,9 @@ class DropDown; class IconsModel; class IntTextField; class Label; +#ifdef TMWA_SUPPORT class MagicSchoolModel; +#endif class RadioButton; class TargetTypeModel; class TextCommand; @@ -61,16 +63,22 @@ class TextCommandEditor final : public Window, void scheduleDelete() override final; private: +#ifdef TMWA_SUPPORT void showControls(const Visible show); +#endif void save(); void deleteCommand(); +#ifdef TMWA_SUPPORT bool mIsMagicCommand; +#endif TextCommand* mCommand; +#ifdef TMWA_SUPPORT RadioButton* mIsMagic A_NONNULLPOINTER; +#endif RadioButton* mIsOther A_NONNULLPOINTER; Label* mSymbolLabel A_NONNULLPOINTER; TextField* mSymbolTextField A_NONNULLPOINTER; @@ -84,6 +92,7 @@ class TextCommandEditor final : public Window, IconsModel* mIconsModel A_NONNULLPOINTER; Label* mIconLabel A_NONNULLPOINTER; DropDown* mIconDropDown A_NONNULLPOINTER; +#ifdef TMWA_SUPPORT Label* mManaLabel A_NONNULLPOINTER; IntTextField* mManaField A_NONNULLPOINTER; Label* mMagicLvlLabel A_NONNULLPOINTER; @@ -93,6 +102,7 @@ class TextCommandEditor final : public Window, DropDown* mSchoolDropDown A_NONNULLPOINTER; Label* mSchoolLvlLabel A_NONNULLPOINTER; IntTextField* mSchoolLvlField A_NONNULLPOINTER; +#endif Button* mCancelButton A_NONNULLPOINTER; Button* mSaveButton A_NONNULLPOINTER; Button* mDeleteButton A_NONNULLPOINTER; -- cgit v1.2.3-70-g09d2