#pragma once #include "UIScene.h" class UIScene_CreateBattleMenu : public UIScene { private: UIControl_Button m_buttonOk; UIControl_Button m_buttonCancel; UIControl_CheckBox m_checkOption; UIControl_CheckBox m_checkPoint; UIControl_CheckBox m_mariotomato; UIControl_Slider m_sliderValue; UIControl_Label m_labelTitle; UIControl_Label m_labelStatus; // Map Flash elements to C++ variables UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) UI_MAP_ELEMENT(m_buttonOk, "Button1") UI_MAP_ELEMENT(m_buttonCancel, "Button2") UI_MAP_ELEMENT(m_checkOption, "CentralSpawn") UI_MAP_ELEMENT(m_checkPoint, "OnlineGame") UI_MAP_ELEMENT(m_mariotomato, "PublicGame") UI_MAP_ELEMENT(m_sliderValue, "Difficulty") UI_MAP_ELEMENT(m_labelTitle, "LabelTitle") UI_MAP_ELEMENT(m_labelStatus, "LabelStatus") UI_END_MAP_ELEMENTS_AND_NAMES() public: UIScene_CreateBattleMenu(int iPad, void *initData, UILayer *parentLayer); virtual EUIScene getSceneType() { return eUIScene_CreateBattleMenu; } protected: virtual wstring getMoviePath(); virtual void handleReload(); public: virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); virtual void updateTooltips(); protected: void handlePress(F64 controlId, F64 childId); void handleCheckboxToggled(F64 controlId, bool selected); void handleSliderMove(F64 sliderId, F64 currentValue); void handleGainFocus(bool navBack); };