mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-30 02:56:50 +00:00 
			
		
		
		
	Merge pull request #2392 from akortunov/guifixes
Get ride of some redundant GUI stuff
This commit is contained in:
		
						commit
						c66ddea429
					
				
					 43 changed files with 110 additions and 336 deletions
				
			
		|  | @ -289,9 +289,6 @@ namespace MWBase | ||||||
| 
 | 
 | ||||||
|             virtual const Translation::Storage& getTranslationDataStorage() const = 0; |             virtual const Translation::Storage& getTranslationDataStorage() const = 0; | ||||||
| 
 | 
 | ||||||
|             /// Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this.
 |  | ||||||
|             virtual void setKeyFocusWidget (MyGUI::Widget* widget) = 0; |  | ||||||
| 
 |  | ||||||
|             virtual void loadUserFonts() = 0; |             virtual void loadUserFonts() = 0; | ||||||
| 
 | 
 | ||||||
|             virtual Loading::Listener* getLoadingScreen() = 0; |             virtual Loading::Listener* getLoadingScreen() = 0; | ||||||
|  |  | ||||||
|  | @ -4,6 +4,8 @@ | ||||||
| #include <MyGUI_Button.h> | #include <MyGUI_Button.h> | ||||||
| #include <MyGUI_EditBox.h> | #include <MyGUI_EditBox.h> | ||||||
| #include <MyGUI_ControllerManager.h> | #include <MyGUI_ControllerManager.h> | ||||||
|  | #include <MyGUI_ControllerRepeatClick.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include "../mwbase/environment.hpp" | #include "../mwbase/environment.hpp" | ||||||
| #include "../mwbase/world.hpp" | #include "../mwbase/world.hpp" | ||||||
|  | @ -26,9 +28,6 @@ | ||||||
| 
 | 
 | ||||||
| namespace MWGui | namespace MWGui | ||||||
| { | { | ||||||
|     const float AlchemyWindow::sCountChangeInitialPause = 0.5f; |  | ||||||
|     const float AlchemyWindow::sCountChangeInterval = 0.1f; |  | ||||||
| 
 |  | ||||||
|     AlchemyWindow::AlchemyWindow() |     AlchemyWindow::AlchemyWindow() | ||||||
|         : WindowBase("openmw_alchemy_window.layout") |         : WindowBase("openmw_alchemy_window.layout") | ||||||
|         , mSortModel(nullptr) |         , mSortModel(nullptr) | ||||||
|  | @ -170,7 +169,7 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|         update(); |         update(); | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mNameEdit); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mNameEdit); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void AlchemyWindow::onIngredientSelected(MyGUI::Widget* _sender) |     void AlchemyWindow::onIngredientSelected(MyGUI::Widget* _sender) | ||||||
|  | @ -282,10 +281,9 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|     void AlchemyWindow::addRepeatController(MyGUI::Widget *widget) |     void AlchemyWindow::addRepeatController(MyGUI::Widget *widget) | ||||||
|     { |     { | ||||||
|         MyGUI::ControllerItem* item = MyGUI::ControllerManager::getInstance().createItem(Controllers::ControllerRepeatEvent::getClassTypeName()); |         MyGUI::ControllerItem* item = MyGUI::ControllerManager::getInstance().createItem(MyGUI::ControllerRepeatClick::getClassTypeName()); | ||||||
|         Controllers::ControllerRepeatEvent* controller = item->castType<Controllers::ControllerRepeatEvent>(); |         MyGUI::ControllerRepeatClick* controller = static_cast<MyGUI::ControllerRepeatClick*>(item); | ||||||
|         controller->eventRepeatClick += MyGUI::newDelegate(this, &AlchemyWindow::onRepeatClick); |         controller->eventRepeatClick += newDelegate(this, &AlchemyWindow::onRepeatClick); | ||||||
|         controller->setRepeat(sCountChangeInitialPause, sCountChangeInterval); |  | ||||||
|         MyGUI::ControllerManager::getInstance().addItem(widget, controller); |         MyGUI::ControllerManager::getInstance().addItem(widget, controller); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,9 +4,10 @@ | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <vector> | #include <vector> | ||||||
| 
 | 
 | ||||||
|  | #include <MyGUI_ControllerItem.h> | ||||||
|  | 
 | ||||||
| #include <components/widgets/numericeditbox.hpp> | #include <components/widgets/numericeditbox.hpp> | ||||||
| 
 | 
 | ||||||
| #include "controllers.hpp" |  | ||||||
| #include "windowbase.hpp" | #include "windowbase.hpp" | ||||||
| 
 | 
 | ||||||
| namespace MWMechanics | namespace MWMechanics | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ | ||||||
| #include <MyGUI_ImageBox.h> | #include <MyGUI_ImageBox.h> | ||||||
| #include <MyGUI_Gui.h> | #include <MyGUI_Gui.h> | ||||||
| #include <MyGUI_ScrollView.h> | #include <MyGUI_ScrollView.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include "../mwbase/environment.hpp" | #include "../mwbase/environment.hpp" | ||||||
| #include "../mwbase/world.hpp" | #include "../mwbase/world.hpp" | ||||||
|  | @ -71,7 +72,7 @@ namespace MWGui | ||||||
|         WindowModal::onOpen(); |         WindowModal::onOpen(); | ||||||
|         updateBirths(); |         updateBirths(); | ||||||
|         updateSpells(); |         updateSpells(); | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mBirthList); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mBirthList); | ||||||
| 
 | 
 | ||||||
|         // Show the current birthsign by default
 |         // Show the current birthsign by default
 | ||||||
|         const std::string &signId = |         const std::string &signId = | ||||||
|  |  | ||||||
|  | @ -101,7 +101,7 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|         setTakeButtonShow(showTakeButton); |         setTakeButtonShow(showTakeButton); | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCloseButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mCloseButton); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void BookWindow::setTakeButtonShow(bool show) |     void BookWindow::setTakeButtonShow(bool show) | ||||||
|  | @ -161,9 +161,9 @@ namespace MWGui | ||||||
|         mPrevPageButton->setVisible(prevPageVisible); |         mPrevPageButton->setVisible(prevPageVisible); | ||||||
| 
 | 
 | ||||||
|         if (focus == mNextPageButton && !nextPageVisible && prevPageVisible) |         if (focus == mNextPageButton && !nextPageVisible && prevPageVisible) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mPrevPageButton); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mPrevPageButton); | ||||||
|         else if (focus == mPrevPageButton && !prevPageVisible && nextPageVisible) |         else if (focus == mPrevPageButton && !prevPageVisible && nextPageVisible) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mNextPageButton); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mNextPageButton); | ||||||
| 
 | 
 | ||||||
|         if (mPages.empty()) |         if (mPages.empty()) | ||||||
|             return; |             return; | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| #include <MyGUI_ImageBox.h> | #include <MyGUI_ImageBox.h> | ||||||
| #include <MyGUI_ListBox.h> | #include <MyGUI_ListBox.h> | ||||||
| #include <MyGUI_Gui.h> | #include <MyGUI_Gui.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include "../mwbase/environment.hpp" | #include "../mwbase/environment.hpp" | ||||||
| #include "../mwbase/world.hpp" | #include "../mwbase/world.hpp" | ||||||
|  | @ -135,7 +136,7 @@ namespace MWGui | ||||||
|         WindowModal::onOpen (); |         WindowModal::onOpen (); | ||||||
|         updateClasses(); |         updateClasses(); | ||||||
|         updateStats(); |         updateStats(); | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mClassList); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mClassList); | ||||||
| 
 | 
 | ||||||
|         // Show the current class by default
 |         // Show the current class by default
 | ||||||
|         MWWorld::Ptr player = MWMechanics::getPlayer(); |         MWWorld::Ptr player = MWMechanics::getPlayer(); | ||||||
|  | @ -436,7 +437,7 @@ namespace MWGui | ||||||
|         getWidget(mEditName, "EditName"); |         getWidget(mEditName, "EditName"); | ||||||
| 
 | 
 | ||||||
|         // Make sure the edit box has focus
 |         // Make sure the edit box has focus
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mEditName); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mEditName); | ||||||
| 
 | 
 | ||||||
|         MyGUI::Button* descriptionButton; |         MyGUI::Button* descriptionButton; | ||||||
|         getWidget(descriptionButton, "DescriptionButton"); |         getWidget(descriptionButton, "DescriptionButton"); | ||||||
|  | @ -902,7 +903,7 @@ namespace MWGui | ||||||
|         okButton->setCaption(MWBase::Environment::get().getWindowManager()->getGameSettingString("sInputMenu1", "")); |         okButton->setCaption(MWBase::Environment::get().getWindowManager()->getGameSettingString("sInputMenu1", "")); | ||||||
| 
 | 
 | ||||||
|         // Make sure the edit box has focus
 |         // Make sure the edit box has focus
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     DescriptionDialog::~DescriptionDialog() |     DescriptionDialog::~DescriptionDialog() | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <MyGUI_Button.h> | #include <MyGUI_Button.h> | ||||||
| #include <MyGUI_EditBox.h> | #include <MyGUI_EditBox.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include "../mwbase/environment.hpp" | #include "../mwbase/environment.hpp" | ||||||
| #include "../mwbase/windowmanager.hpp" | #include "../mwbase/windowmanager.hpp" | ||||||
|  | @ -33,7 +34,7 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|         mMessage->setSize(mMessage->getWidth(), mMessage->getTextSize().height + 24); |         mMessage->setSize(mMessage->getWidth(), mMessage->getTextSize().height + 24); | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mOkButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mOkButton); | ||||||
| 
 | 
 | ||||||
|         center(); |         center(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -1,6 +1,7 @@ | ||||||
| #include "console.hpp" | #include "console.hpp" | ||||||
| 
 | 
 | ||||||
| #include <MyGUI_EditBox.h> | #include <MyGUI_EditBox.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <boost/filesystem.hpp> | #include <boost/filesystem.hpp> | ||||||
| #include <boost/filesystem/fstream.hpp> | #include <boost/filesystem/fstream.hpp> | ||||||
|  | @ -151,7 +152,7 @@ namespace MWGui | ||||||
|     { |     { | ||||||
|         // Give keyboard focus to the combo box whenever the console is
 |         // Give keyboard focus to the combo box whenever the console is
 | ||||||
|         // turned on
 |         // turned on
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCommandLine); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mCommandLine); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void Console::print(const std::string &msg, const std::string& color) |     void Console::print(const std::string &msg, const std::string& color) | ||||||
|  | @ -447,7 +448,7 @@ namespace MWGui | ||||||
|                 mPtr = object; |                 mPtr = object; | ||||||
|             } |             } | ||||||
|             // User clicked on an object. Restore focus to the console command line.
 |             // User clicked on an object. Restore focus to the console command line.
 | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCommandLine); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mCommandLine); | ||||||
|         } |         } | ||||||
|         else |         else | ||||||
|         { |         { | ||||||
|  |  | ||||||
|  | @ -141,7 +141,7 @@ namespace MWGui | ||||||
|         mItemView->setModel (mSortModel); |         mItemView->setModel (mSortModel); | ||||||
|         mItemView->resetScrollBars(); |         mItemView->resetScrollBars(); | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCloseButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mCloseButton); | ||||||
| 
 | 
 | ||||||
|         setTitle(container.getClass().getName(container)); |         setTitle(container.getClass().getName(container)); | ||||||
|     } |     } | ||||||
|  | @ -175,7 +175,7 @@ namespace MWGui | ||||||
|         if(mDragAndDrop != nullptr && mDragAndDrop->mIsOnDragAndDrop) |         if(mDragAndDrop != nullptr && mDragAndDrop->mIsOnDragAndDrop) | ||||||
|             return; |             return; | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCloseButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mCloseButton); | ||||||
| 
 | 
 | ||||||
|         // transfer everything into the player's inventory
 |         // transfer everything into the player's inventory
 | ||||||
|         ItemModel* playerModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getModel(); |         ItemModel* playerModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getModel(); | ||||||
|  | @ -222,7 +222,7 @@ namespace MWGui | ||||||
|     { |     { | ||||||
|         if(mDragAndDrop == nullptr || !mDragAndDrop->mIsOnDragAndDrop) |         if(mDragAndDrop == nullptr || !mDragAndDrop->mIsOnDragAndDrop) | ||||||
|         { |         { | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCloseButton); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mCloseButton); | ||||||
| 
 | 
 | ||||||
|             onTakeAllButtonClicked(mTakeButton); |             onTakeAllButtonClicked(mTakeButton); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -7,54 +7,6 @@ namespace MWGui | ||||||
| { | { | ||||||
|     namespace Controllers |     namespace Controllers | ||||||
|     { |     { | ||||||
| 
 |  | ||||||
|         ControllerRepeatEvent::ControllerRepeatEvent() : |  | ||||||
|             mInit(0.5f), |  | ||||||
|             mStep(0.1f), |  | ||||||
|             mEnabled(true), |  | ||||||
|             mTimeLeft(0) |  | ||||||
|         { |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         ControllerRepeatEvent::~ControllerRepeatEvent() |  | ||||||
|         { |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         bool ControllerRepeatEvent::addTime(MyGUI::Widget* _widget, float _time) |  | ||||||
|         { |  | ||||||
|             if(mTimeLeft == 0) |  | ||||||
|                 mTimeLeft = mInit; |  | ||||||
| 
 |  | ||||||
|             mTimeLeft -= _time; |  | ||||||
|             while (mTimeLeft <= 0) |  | ||||||
|             { |  | ||||||
|                 mTimeLeft += mStep; |  | ||||||
|                 eventRepeatClick(_widget, this); |  | ||||||
|             } |  | ||||||
|             return true; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void ControllerRepeatEvent::setRepeat(float init, float step) |  | ||||||
|         { |  | ||||||
|             mInit = init; |  | ||||||
|             mStep = step; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void ControllerRepeatEvent::setEnabled(bool enable) |  | ||||||
|         { |  | ||||||
|             mEnabled = enable; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void ControllerRepeatEvent::setProperty(const std::string& _key, const std::string& _value) |  | ||||||
|         { |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void ControllerRepeatEvent::prepareItem(MyGUI::Widget* _widget) |  | ||||||
|         { |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         // -------------------------------------------------------------
 |  | ||||||
| 
 |  | ||||||
|         void ControllerFollowMouse::prepareItem(MyGUI::Widget *_widget) |         void ControllerFollowMouse::prepareItem(MyGUI::Widget *_widget) | ||||||
|         { |         { | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  | @ -13,39 +13,6 @@ namespace MWGui | ||||||
| { | { | ||||||
|     namespace Controllers |     namespace Controllers | ||||||
|     { |     { | ||||||
|         // Should be removed when upgrading to MyGUI 3.2.2 (current git), it has ControllerRepeatClick
 |  | ||||||
|         class ControllerRepeatEvent : |  | ||||||
|             public MyGUI::ControllerItem |  | ||||||
|         { |  | ||||||
|             MYGUI_RTTI_DERIVED( ControllerRepeatEvent ) |  | ||||||
| 
 |  | ||||||
|         public: |  | ||||||
|             ControllerRepeatEvent(); |  | ||||||
|             virtual ~ControllerRepeatEvent(); |  | ||||||
| 
 |  | ||||||
|             void setRepeat(float init, float step); |  | ||||||
|             void setEnabled(bool enable); |  | ||||||
|             virtual void setProperty(const std::string& _key, const std::string& _value); |  | ||||||
| 
 |  | ||||||
|             // Events
 |  | ||||||
|             typedef MyGUI::delegates::CMultiDelegate2<MyGUI::Widget*, MyGUI::ControllerItem*> EventHandle_RepeatClickVoid; |  | ||||||
| 
 |  | ||||||
|             /** Event : Repeat Click.\n
 |  | ||||||
|             signature : void method(MyGUI::Widget* _sender, MyGUI::ControllerItem *_controller)\n |  | ||||||
|             */ |  | ||||||
|             EventHandle_RepeatClickVoid eventRepeatClick; |  | ||||||
| 
 |  | ||||||
|         private: |  | ||||||
|             bool addTime(MyGUI::Widget* _widget, float _time); |  | ||||||
|             void prepareItem(MyGUI::Widget* _widget); |  | ||||||
| 
 |  | ||||||
|         private: |  | ||||||
|             float mInit; |  | ||||||
|             float mStep; |  | ||||||
|             bool mEnabled; |  | ||||||
|             float mTimeLeft; |  | ||||||
|         }; |  | ||||||
| 
 |  | ||||||
|         /// Automatically positions a widget below the mouse cursor.
 |         /// Automatically positions a widget below the mouse cursor.
 | ||||||
|         class ControllerFollowMouse : |         class ControllerFollowMouse : | ||||||
|             public MyGUI::ControllerItem |             public MyGUI::ControllerItem | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| #include <MyGUI_Button.h> | #include <MyGUI_Button.h> | ||||||
| #include <MyGUI_ScrollBar.h> | #include <MyGUI_ScrollBar.h> | ||||||
| #include <MyGUI_RenderManager.h> | #include <MyGUI_RenderManager.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <components/widgets/numericeditbox.hpp> | #include <components/widgets/numericeditbox.hpp> | ||||||
| 
 | 
 | ||||||
|  | @ -47,7 +48,7 @@ namespace MWGui | ||||||
|                 mMainWidget->getHeight()); |                 mMainWidget->getHeight()); | ||||||
| 
 | 
 | ||||||
|         // by default, the text edit field has the focus of the keyboard
 |         // by default, the text edit field has the focus of the keyboard
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mItemEdit); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mItemEdit); | ||||||
| 
 | 
 | ||||||
|         mSlider->setScrollPosition(maxCount-1); |         mSlider->setScrollPosition(maxCount-1); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ | ||||||
| #include <MyGUI_ProgressBar.h> | #include <MyGUI_ProgressBar.h> | ||||||
| #include <MyGUI_ScrollBar.h> | #include <MyGUI_ScrollBar.h> | ||||||
| #include <MyGUI_Button.h> | #include <MyGUI_Button.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <components/debug/debuglog.hpp> | #include <components/debug/debuglog.hpp> | ||||||
| #include <components/widgets/list.hpp> | #include <components/widgets/list.hpp> | ||||||
|  | @ -380,7 +381,7 @@ namespace MWGui | ||||||
|         { |         { | ||||||
|             onTopicActivated(topic); |             onTopicActivated(topic); | ||||||
|             if (mGoodbyeButton->getEnabled()) |             if (mGoodbyeButton->getEnabled()) | ||||||
|                 MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mGoodbyeButton); |                 MyGUI::InputManager::getInstance().setKeyFocusWidget(mGoodbyeButton); | ||||||
|         } |         } | ||||||
|         else if (topic == sPersuasion) |         else if (topic == sPersuasion) | ||||||
|             mPersuasionDialog.setVisible(true); |             mPersuasionDialog.setVisible(true); | ||||||
|  | @ -443,7 +444,7 @@ namespace MWGui | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mGoodbyeButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mGoodbyeButton); | ||||||
| 
 | 
 | ||||||
|         setTitle(mPtr.getClass().getName(mPtr)); |         setTitle(mPtr.getClass().getName(mPtr)); | ||||||
| 
 | 
 | ||||||
|  | @ -622,7 +623,7 @@ namespace MWGui | ||||||
|         bool goodbyeWasEnabled = mGoodbyeButton->getEnabled(); |         bool goodbyeWasEnabled = mGoodbyeButton->getEnabled(); | ||||||
|         mGoodbyeButton->setEnabled(goodbyeEnabled); |         mGoodbyeButton->setEnabled(goodbyeEnabled); | ||||||
|         if (goodbyeEnabled && !goodbyeWasEnabled) |         if (goodbyeEnabled && !goodbyeWasEnabled) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mGoodbyeButton); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mGoodbyeButton); | ||||||
| 
 | 
 | ||||||
|         bool topicsEnabled = !MWBase::Environment::get().getDialogueManager()->isInChoice() && !mGoodbye; |         bool topicsEnabled = !MWBase::Environment::get().getDialogueManager()->isInChoice() && !mGoodbye; | ||||||
|         mTopicsList->setEnabled(topicsEnabled); |         mTopicsList->setEnabled(topicsEnabled); | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ | ||||||
| #include <MyGUI_Button.h> | #include <MyGUI_Button.h> | ||||||
| #include <MyGUI_ScrollView.h> | #include <MyGUI_ScrollView.h> | ||||||
| #include <MyGUI_EditBox.h> | #include <MyGUI_EditBox.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <components/widgets/list.hpp> | #include <components/widgets/list.hpp> | ||||||
| #include <components/settings/settings.hpp> | #include <components/settings/settings.hpp> | ||||||
|  | @ -67,7 +68,7 @@ namespace MWGui | ||||||
|     void EnchantingDialog::onOpen() |     void EnchantingDialog::onOpen() | ||||||
|     { |     { | ||||||
|         center(); |         center(); | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mName); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mName); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void EnchantingDialog::setSoulGem(const MWWorld::Ptr &gem) |     void EnchantingDialog::setSoulGem(const MWWorld::Ptr &gem) | ||||||
|  |  | ||||||
|  | @ -254,7 +254,7 @@ namespace | ||||||
|             } |             } | ||||||
|             updateShowingPages(); |             updateShowingPages(); | ||||||
| 
 | 
 | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(getWidget<MyGUI::Widget>(CloseBTN)); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(getWidget<MyGUI::Widget>(CloseBTN)); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         void onClose() |         void onClose() | ||||||
|  | @ -377,9 +377,9 @@ namespace | ||||||
|             prevPageBtn->setVisible(prevPageVisible); |             prevPageBtn->setVisible(prevPageVisible); | ||||||
| 
 | 
 | ||||||
|             if (focus == nextPageBtn && !nextPageVisible && prevPageVisible) |             if (focus == nextPageBtn && !nextPageVisible && prevPageVisible) | ||||||
|                 MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(prevPageBtn); |                 MyGUI::InputManager::getInstance().setKeyFocusWidget(prevPageBtn); | ||||||
|             else if (focus == prevPageBtn && !prevPageVisible && nextPageVisible) |             else if (focus == prevPageBtn && !prevPageVisible && nextPageVisible) | ||||||
|                 MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(nextPageBtn); |                 MyGUI::InputManager::getInstance().setKeyFocusWidget(nextPageBtn); | ||||||
| 
 | 
 | ||||||
|             setVisible (PageOneNum, relPages > 0); |             setVisible (PageOneNum, relPages > 0); | ||||||
|             setVisible (PageTwoNum, relPages > 1); |             setVisible (PageTwoNum, relPages > 1); | ||||||
|  |  | ||||||
|  | @ -83,7 +83,7 @@ void KeyboardNavigation::restoreFocus(int mode) | ||||||
|     { |     { | ||||||
|         MyGUI::Widget* w = found->second; |         MyGUI::Widget* w = found->second; | ||||||
|         if (w && w->getVisible() && w->getEnabled()) |         if (w && w->getVisible() && w->getEnabled()) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(found->second); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(found->second); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -130,7 +130,7 @@ void KeyboardNavigation::onFrame() | ||||||
|     // workaround incorrect key focus resets (fix in MyGUI TBD)
 |     // workaround incorrect key focus resets (fix in MyGUI TBD)
 | ||||||
|     if (!shouldAcceptKeyFocus(focus) && shouldAcceptKeyFocus(mCurrentFocus) && (!mModalWindow || isRootParent(mCurrentFocus, mModalWindow))) |     if (!shouldAcceptKeyFocus(focus) && shouldAcceptKeyFocus(mCurrentFocus) && (!mModalWindow || isRootParent(mCurrentFocus, mModalWindow))) | ||||||
|     { |     { | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCurrentFocus); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mCurrentFocus); | ||||||
|         focus = mCurrentFocus; |         focus = mCurrentFocus; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -154,12 +154,12 @@ void KeyboardNavigation::setDefaultFocus(MyGUI::Widget *window, MyGUI::Widget *d | ||||||
|     MyGUI::Widget* focus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); |     MyGUI::Widget* focus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); | ||||||
|     if (!focus || !shouldAcceptKeyFocus(focus)) |     if (!focus || !shouldAcceptKeyFocus(focus)) | ||||||
|     { |     { | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(defaultFocus); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(defaultFocus); | ||||||
|     } |     } | ||||||
|     else |     else | ||||||
|     { |     { | ||||||
|         if (!isRootParent(focus, window)) |         if (!isRootParent(focus, window)) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(defaultFocus); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(defaultFocus); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -276,7 +276,7 @@ bool KeyboardNavigation::switchFocus(int direction, bool wrap) | ||||||
|     else if (direction == D_Up && (vertdiff >= 0 || !isVertical)) |     else if (direction == D_Up && (vertdiff >= 0 || !isVertical)) | ||||||
|         return false; |         return false; | ||||||
| 
 | 
 | ||||||
|     MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(keyFocusList[index]); |     MyGUI::InputManager::getInstance().setKeyFocusWidget(keyFocusList[index]); | ||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -291,7 +291,7 @@ bool KeyboardNavigation::selectFirstWidget() | ||||||
| 
 | 
 | ||||||
|     if (!keyFocusList.empty()) |     if (!keyFocusList.empty()) | ||||||
|     { |     { | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(keyFocusList[0]); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(keyFocusList[0]); | ||||||
|         return true; |         return true; | ||||||
|     } |     } | ||||||
|     return false; |     return false; | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| #include <MyGUI_TextBox.h> | #include <MyGUI_TextBox.h> | ||||||
| #include <MyGUI_Gui.h> | #include <MyGUI_Gui.h> | ||||||
| #include <MyGUI_RenderManager.h> | #include <MyGUI_RenderManager.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <components/widgets/imagebutton.hpp> | #include <components/widgets/imagebutton.hpp> | ||||||
| #include <components/settings/settings.hpp> | #include <components/settings/settings.hpp> | ||||||
|  | @ -67,12 +68,12 @@ namespace MWGui | ||||||
|             if (isMainMenu) |             if (isMainMenu) | ||||||
|             { |             { | ||||||
|                 if (mButtons["loadgame"]->getVisible()) |                 if (mButtons["loadgame"]->getVisible()) | ||||||
|                     MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mButtons["loadgame"]); |                     MyGUI::InputManager::getInstance().setKeyFocusWidget(mButtons["loadgame"]); | ||||||
|                 else |                 else | ||||||
|                     MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mButtons["newgame"]); |                     MyGUI::InputManager::getInstance().setKeyFocusWidget(mButtons["newgame"]); | ||||||
|             } |             } | ||||||
|             else |             else | ||||||
|                 MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mButtons["return"]); |                 MyGUI::InputManager::getInstance().setKeyFocusWidget(mButtons["return"]); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         Layout::setVisible (visible); |         Layout::setVisible (visible); | ||||||
|  |  | ||||||
|  | @ -1123,7 +1123,7 @@ namespace MWGui | ||||||
|     { |     { | ||||||
|         WindowModal::onOpen(); |         WindowModal::onOpen(); | ||||||
|         center(); |         center(); | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void EditNoteDialog::onCancelButtonClicked(MyGUI::Widget *sender) |     void EditNoteDialog::onCancelButtonClicked(MyGUI::Widget *sender) | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| #include <MyGUI_ListBox.h> | #include <MyGUI_ListBox.h> | ||||||
| #include <MyGUI_ImageBox.h> | #include <MyGUI_ImageBox.h> | ||||||
| #include <MyGUI_Gui.h> | #include <MyGUI_Gui.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <osg/Texture2D> | #include <osg/Texture2D> | ||||||
| 
 | 
 | ||||||
|  | @ -165,7 +166,7 @@ namespace MWGui | ||||||
|         mHeadRotate->setScrollPosition(initialPos); |         mHeadRotate->setScrollPosition(initialPos); | ||||||
|         onHeadRotate(mHeadRotate, initialPos); |         onHeadRotate(mHeadRotate, initialPos); | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mRaceList); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mRaceList); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void RaceDialog::setRaceId(const std::string &raceId) |     void RaceDialog::setRaceId(const std::string &raceId) | ||||||
|  |  | ||||||
|  | @ -94,7 +94,7 @@ namespace MWGui | ||||||
|         MWBase::Environment::get().getStateManager()->deleteGame (mCurrentCharacter, mCurrentSlot); |         MWBase::Environment::get().getStateManager()->deleteGame (mCurrentCharacter, mCurrentSlot); | ||||||
|         mSaveList->removeItemAt(mSaveList->getIndexSelected()); |         mSaveList->removeItemAt(mSaveList->getIndexSelected()); | ||||||
|         onSlotSelected(mSaveList, mSaveList->getIndexSelected()); |         onSlotSelected(mSaveList, mSaveList->getIndexSelected()); | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mSaveList); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mSaveList); | ||||||
| 
 | 
 | ||||||
|         if (mSaveList->getItemCount() == 0) |         if (mSaveList->getItemCount() == 0) | ||||||
|         { |         { | ||||||
|  | @ -114,7 +114,7 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|     void SaveGameDialog::onDeleteSlotCancel() |     void SaveGameDialog::onDeleteSlotCancel() | ||||||
|     { |     { | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mSaveList); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mSaveList); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void SaveGameDialog::onSaveNameChanged(MyGUI::EditBox *sender) |     void SaveGameDialog::onSaveNameChanged(MyGUI::EditBox *sender) | ||||||
|  | @ -138,9 +138,9 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|         mSaveNameEdit->setCaption (""); |         mSaveNameEdit->setCaption (""); | ||||||
|         if (mSaving) |         if (mSaving) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mSaveNameEdit); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mSaveNameEdit); | ||||||
|         else |         else | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mSaveList); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mSaveList); | ||||||
| 
 | 
 | ||||||
|         center(); |         center(); | ||||||
| 
 | 
 | ||||||
|  | @ -244,14 +244,11 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|     void SaveGameDialog::onConfirmationCancel() |     void SaveGameDialog::onConfirmationCancel() | ||||||
|     { |     { | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mSaveList); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mSaveList); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void SaveGameDialog::accept(bool reallySure) |     void SaveGameDialog::accept(bool reallySure) | ||||||
|     { |     { | ||||||
|         // Remove for MyGUI 3.2.2
 |  | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(nullptr); |  | ||||||
| 
 |  | ||||||
|         if (mSaving) |         if (mSaving) | ||||||
|         { |         { | ||||||
|             // If overwriting an existing slot, ask for confirmation first
 |             // If overwriting an existing slot, ask for confirmation first
 | ||||||
|  | @ -334,7 +331,7 @@ namespace MWGui | ||||||
|     void SaveGameDialog::onCharacterAccept(MyGUI::ComboBox* sender, size_t pos) |     void SaveGameDialog::onCharacterAccept(MyGUI::ComboBox* sender, size_t pos) | ||||||
|     { |     { | ||||||
|         // Give key focus to save list so we can confirm the selection with Enter
 |         // Give key focus to save list so we can confirm the selection with Enter
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mSaveList); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mSaveList); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void SaveGameDialog::fillSaveList() |     void SaveGameDialog::fillSaveList() | ||||||
|  |  | ||||||
|  | @ -1,6 +1,7 @@ | ||||||
| #include "scrollwindow.hpp" | #include "scrollwindow.hpp" | ||||||
| 
 | 
 | ||||||
| #include <MyGUI_ScrollView.h> | #include <MyGUI_ScrollView.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <components/esm/loadbook.hpp> | #include <components/esm/loadbook.hpp> | ||||||
| #include <components/widgets/imagebutton.hpp> | #include <components/widgets/imagebutton.hpp> | ||||||
|  | @ -66,7 +67,7 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|         setTakeButtonShow(showTakeButton); |         setTakeButtonShow(showTakeButton); | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCloseButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mCloseButton); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void ScrollWindow::onKeyButtonPressed(MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character) |     void ScrollWindow::onKeyButtonPressed(MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character) | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
| #include <MyGUI_ScrollView.h> | #include <MyGUI_ScrollView.h> | ||||||
| #include <MyGUI_Gui.h> | #include <MyGUI_Gui.h> | ||||||
| #include <MyGUI_TabControl.h> | #include <MyGUI_TabControl.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <boost/algorithm/string.hpp> | #include <boost/algorithm/string.hpp> | ||||||
| 
 | 
 | ||||||
|  | @ -615,7 +616,7 @@ namespace MWGui | ||||||
|         highlightCurrentResolution(); |         highlightCurrentResolution(); | ||||||
|         updateControlsBox(); |         updateControlsBox(); | ||||||
|         resetScrollbars(); |         resetScrollbars(); | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mOkButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mOkButton); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void SettingsWindow::onWindowResize(MyGUI::Window *_sender) |     void SettingsWindow::onWindowResize(MyGUI::Window *_sender) | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <MyGUI_ImageBox.h> | #include <MyGUI_ImageBox.h> | ||||||
| #include <MyGUI_Gui.h> | #include <MyGUI_Gui.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| #include <components/esm/records.hpp> | #include <components/esm/records.hpp> | ||||||
| #include <components/widgets/list.hpp> | #include <components/widgets/list.hpp> | ||||||
|  | @ -431,7 +432,7 @@ namespace MWGui | ||||||
|     void SpellCreationDialog::onOpen() |     void SpellCreationDialog::onOpen() | ||||||
|     { |     { | ||||||
|         center(); |         center(); | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mNameEdit); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mNameEdit); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void SpellCreationDialog::onReferenceUnavailable () |     void SpellCreationDialog::onReferenceUnavailable () | ||||||
|  |  | ||||||
|  | @ -83,7 +83,7 @@ namespace MWGui | ||||||
|         // Reset the filter focus when opening the window
 |         // Reset the filter focus when opening the window
 | ||||||
|         MyGUI::Widget* focus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); |         MyGUI::Widget* focus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); | ||||||
|         if (focus == mFilterEdit) |         if (focus == mFilterEdit) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(nullptr); |             MyGUI::InputManager::getInstance().resetKeyFocusWidget(); | ||||||
| 
 | 
 | ||||||
|         updateSpells(); |         updateSpells(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <MyGUI_EditBox.h> | #include <MyGUI_EditBox.h> | ||||||
| #include <MyGUI_Button.h> | #include <MyGUI_Button.h> | ||||||
|  | #include <MyGUI_InputManager.h> | ||||||
| 
 | 
 | ||||||
| namespace MWGui | namespace MWGui | ||||||
| { | { | ||||||
|  | @ -23,7 +24,7 @@ namespace MWGui | ||||||
|         okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &TextInputDialog::onOkClicked); |         okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &TextInputDialog::onOkClicked); | ||||||
| 
 | 
 | ||||||
|         // Make sure the edit box has focus
 |         // Make sure the edit box has focus
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void TextInputDialog::setNextButtonShow(bool shown) |     void TextInputDialog::setNextButtonShow(bool shown) | ||||||
|  | @ -46,7 +47,7 @@ namespace MWGui | ||||||
|     { |     { | ||||||
|         WindowModal::onOpen(); |         WindowModal::onOpen(); | ||||||
|         // Make sure the edit box has focus
 |         // Make sure the edit box has focus
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // widget controls
 |     // widget controls
 | ||||||
|  | @ -56,7 +57,7 @@ namespace MWGui | ||||||
|         if (mTextEdit->getCaption() == "") |         if (mTextEdit->getCaption() == "") | ||||||
|         { |         { | ||||||
|             MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}"); |             MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}"); | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget (mTextEdit); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit); | ||||||
|         } |         } | ||||||
|         else |         else | ||||||
|             eventDone(this); |             eventDone(this); | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| #include <MyGUI_Button.h> | #include <MyGUI_Button.h> | ||||||
| #include <MyGUI_InputManager.h> | #include <MyGUI_InputManager.h> | ||||||
| #include <MyGUI_ControllerManager.h> | #include <MyGUI_ControllerManager.h> | ||||||
|  | #include <MyGUI_ControllerRepeatClick.h> | ||||||
| 
 | 
 | ||||||
| #include <components/widgets/numericeditbox.hpp> | #include <components/widgets/numericeditbox.hpp> | ||||||
| 
 | 
 | ||||||
|  | @ -44,9 +45,6 @@ namespace | ||||||
| 
 | 
 | ||||||
| namespace MWGui | namespace MWGui | ||||||
| { | { | ||||||
|     const float TradeWindow::sBalanceChangeInitialPause = 0.5f; |  | ||||||
|     const float TradeWindow::sBalanceChangeInterval = 0.1f; |  | ||||||
| 
 |  | ||||||
|     TradeWindow::TradeWindow() |     TradeWindow::TradeWindow() | ||||||
|         : WindowBase("openmw_trade_window.layout") |         : WindowBase("openmw_trade_window.layout") | ||||||
|         , mSortModel(nullptr) |         , mSortModel(nullptr) | ||||||
|  | @ -138,7 +136,7 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|         onFilterChanged(mFilterAll); |         onFilterChanged(mFilterAll); | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTotalBalance); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mTotalBalance); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void TradeWindow::onFrame(float dt) |     void TradeWindow::onFrame(float dt) | ||||||
|  | @ -382,10 +380,9 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|     void TradeWindow::addRepeatController(MyGUI::Widget *widget) |     void TradeWindow::addRepeatController(MyGUI::Widget *widget) | ||||||
|     { |     { | ||||||
|         MyGUI::ControllerItem* item = MyGUI::ControllerManager::getInstance().createItem(Controllers::ControllerRepeatEvent::getClassTypeName()); |         MyGUI::ControllerItem* item = MyGUI::ControllerManager::getInstance().createItem(MyGUI::ControllerRepeatClick::getClassTypeName()); | ||||||
|         Controllers::ControllerRepeatEvent* controller = item->castType<Controllers::ControllerRepeatEvent>(); |         MyGUI::ControllerRepeatClick* controller = static_cast<MyGUI::ControllerRepeatClick*>(item); | ||||||
|         controller->eventRepeatClick += MyGUI::newDelegate(this, &TradeWindow::onRepeatClick); |         controller->eventRepeatClick += newDelegate(this, &TradeWindow::onRepeatClick); | ||||||
|         controller->setRepeat(sBalanceChangeInitialPause, sBalanceChangeInterval); |  | ||||||
|         MyGUI::ControllerManager::getInstance().addItem(widget, controller); |         MyGUI::ControllerManager::getInstance().addItem(widget, controller); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -93,9 +93,9 @@ namespace MWGui | ||||||
|         } |         } | ||||||
|              |              | ||||||
|         if (mUntilHealedButton->getVisible()) |         if (mUntilHealedButton->getVisible()) | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mUntilHealedButton); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mUntilHealedButton); | ||||||
|         else |         else | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mWaitButton); |             MyGUI::InputManager::getInstance().setKeyFocusWidget(mWaitButton); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     bool WaitDialog::exit() |     bool WaitDialog::exit() | ||||||
|  | @ -222,7 +222,7 @@ namespace MWGui | ||||||
|     { |     { | ||||||
|         mHourText->setCaptionWithReplacing (MyGUI::utility::toString(position+1) + " #{sRestMenu2}"); |         mHourText->setCaptionWithReplacing (MyGUI::utility::toString(position+1) + " #{sRestMenu2}"); | ||||||
|         mManualHours = position+1; |         mManualHours = position+1; | ||||||
|         MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mWaitButton); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mWaitButton); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void WaitDialog::onKeyButtonPressed(MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character) |     void WaitDialog::onKeyButtonPressed(MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character) | ||||||
|  |  | ||||||
|  | @ -530,99 +530,5 @@ namespace MWGui | ||||||
|             assignWidget(mBarWidget, "Bar"); |             assignWidget(mBarWidget, "Bar"); | ||||||
|             assignWidget(mBarTextWidget, "BarText"); |             assignWidget(mBarTextWidget, "BarText"); | ||||||
|         } |         } | ||||||
| 
 |  | ||||||
|         MWScrollBar::MWScrollBar() |  | ||||||
|           : mEnableRepeat(true) |  | ||||||
|           , mRepeatTriggerTime(0.5f) |  | ||||||
|           , mRepeatStepTime(0.1f) |  | ||||||
|           , mIsIncreasing(true) |  | ||||||
|         { |  | ||||||
|             ScrollBar::setRepeatEnabled(false); |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         MWScrollBar::~MWScrollBar() |  | ||||||
|         { |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void MWScrollBar::initialiseOverride() |  | ||||||
|         { |  | ||||||
|             ScrollBar::initialiseOverride(); |  | ||||||
| 
 |  | ||||||
|             if(mWidgetStart) |  | ||||||
|             { |  | ||||||
|                 mWidgetStart->eventMouseButtonPressed += MyGUI::newDelegate(this, &MWScrollBar::onDecreaseButtonPressed); |  | ||||||
|                 mWidgetStart->eventMouseButtonReleased += MyGUI::newDelegate(this, &MWScrollBar::onDecreaseButtonReleased); |  | ||||||
|             } |  | ||||||
|             if(mWidgetEnd) |  | ||||||
|             { |  | ||||||
|                 mWidgetEnd->eventMouseButtonPressed += MyGUI::newDelegate(this, &MWScrollBar::onIncreaseButtonPressed); |  | ||||||
|                 mWidgetEnd->eventMouseButtonReleased += MyGUI::newDelegate(this, &MWScrollBar::onIncreaseButtonReleased); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void MWScrollBar::setRepeat(float trigger, float step) |  | ||||||
|         { |  | ||||||
|             mRepeatTriggerTime = trigger; |  | ||||||
|             mRepeatStepTime = step; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void MWScrollBar::repeatClick(MyGUI::Widget* _widget, MyGUI::ControllerItem* _controller) |  | ||||||
|         { |  | ||||||
|             int stepSize = mScrollPage; |  | ||||||
| 
 |  | ||||||
|             if(mIsIncreasing && mScrollPosition < mScrollRange-1) |  | ||||||
|             { |  | ||||||
|                 if(mScrollPosition + stepSize > mScrollRange-1) |  | ||||||
|                     mScrollPosition = mScrollRange-1; |  | ||||||
|                 else |  | ||||||
|                     mScrollPosition += stepSize; |  | ||||||
| 
 |  | ||||||
|                 eventScrollChangePosition(this, mScrollPosition); |  | ||||||
|                 updateTrack(); |  | ||||||
|             } |  | ||||||
|             else if(!mIsIncreasing && mScrollPosition > 0) |  | ||||||
|             { |  | ||||||
|                 int newPos = mScrollPosition - stepSize; |  | ||||||
|                 if(newPos < 0) |  | ||||||
|                     mScrollPosition = 0; |  | ||||||
|                 else |  | ||||||
|                     mScrollPosition -= stepSize; |  | ||||||
| 
 |  | ||||||
|                 eventScrollChangePosition(this, mScrollPosition); |  | ||||||
|                 updateTrack(); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void MWScrollBar::onDecreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |  | ||||||
|         { |  | ||||||
|             mIsIncreasing = false; |  | ||||||
|             MyGUI::ControllerItem* item = MyGUI::ControllerManager::getInstance().createItem(MWGui::Controllers::ControllerRepeatEvent::getClassTypeName()); |  | ||||||
|             MWGui::Controllers::ControllerRepeatEvent* controller = item->castType<MWGui::Controllers::ControllerRepeatEvent>(); |  | ||||||
|             controller->eventRepeatClick += newDelegate(this, &MWScrollBar::repeatClick); |  | ||||||
|             controller->setEnabled(mEnableRepeat); |  | ||||||
|             controller->setRepeat(mRepeatTriggerTime, mRepeatStepTime); |  | ||||||
|             MyGUI::ControllerManager::getInstance().addItem(this, controller); |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void MWScrollBar::onDecreaseButtonReleased(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |  | ||||||
|         { |  | ||||||
|             MyGUI::ControllerManager::getInstance().removeItem(this); |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void MWScrollBar::onIncreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |  | ||||||
|         { |  | ||||||
|             mIsIncreasing = true; |  | ||||||
|             MyGUI::ControllerItem* item = MyGUI::ControllerManager::getInstance().createItem(MWGui::Controllers::ControllerRepeatEvent::getClassTypeName()); |  | ||||||
|             MWGui::Controllers::ControllerRepeatEvent* controller = item->castType<MWGui::Controllers::ControllerRepeatEvent>(); |  | ||||||
|             controller->eventRepeatClick += newDelegate(this, &MWScrollBar::repeatClick); |  | ||||||
|             controller->setEnabled(mEnableRepeat); |  | ||||||
|             controller->setRepeat(mRepeatTriggerTime, mRepeatStepTime); |  | ||||||
|             MyGUI::ControllerManager::getInstance().addItem(this, controller); |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         void MWScrollBar::onIncreaseButtonReleased(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |  | ||||||
|         { |  | ||||||
|             MyGUI::ControllerManager::getInstance().removeItem(this); |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -303,33 +303,6 @@ namespace MWGui | ||||||
|             MyGUI::TextBox* mBarTextWidget; |             MyGUI::TextBox* mBarTextWidget; | ||||||
|         }; |         }; | ||||||
|         typedef MWDynamicStat* MWDynamicStatPtr; |         typedef MWDynamicStat* MWDynamicStatPtr; | ||||||
| 
 |  | ||||||
|         // Should be removed when upgrading to MyGUI 3.2.2 (current git), it has ScrollBar autorepeat support
 |  | ||||||
|         class MWScrollBar : public MyGUI::ScrollBar |  | ||||||
|         { |  | ||||||
|             MYGUI_RTTI_DERIVED(MWScrollBar) |  | ||||||
| 
 |  | ||||||
|         public: |  | ||||||
|             MWScrollBar(); |  | ||||||
|             virtual ~MWScrollBar(); |  | ||||||
| 
 |  | ||||||
|             void setRepeat(float trigger, float step); |  | ||||||
| 
 |  | ||||||
|         protected: |  | ||||||
|             virtual void initialiseOverride(); |  | ||||||
|             void repeatClick(MyGUI::Widget* _widget, MyGUI::ControllerItem* _controller); |  | ||||||
| 
 |  | ||||||
|             bool mEnableRepeat; |  | ||||||
|             float mRepeatTriggerTime; |  | ||||||
|             float mRepeatStepTime; |  | ||||||
|             bool mIsIncreasing; |  | ||||||
| 
 |  | ||||||
|         private: |  | ||||||
|             void onDecreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id); |  | ||||||
|             void onDecreaseButtonReleased(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id); |  | ||||||
|             void onIncreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id); |  | ||||||
|             void onIncreaseButtonReleased(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id); |  | ||||||
|         }; |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -55,18 +55,6 @@ void WindowBase::setVisible(bool visible) | ||||||
|         onOpen(); |         onOpen(); | ||||||
|     else if (wasVisible) |     else if (wasVisible) | ||||||
|         onClose(); |         onClose(); | ||||||
| 
 |  | ||||||
|     // This is needed as invisible widgets can retain key focus.
 |  | ||||||
|     // Remove for MyGUI 3.2.2
 |  | ||||||
|     if (!visible) |  | ||||||
|     { |  | ||||||
|         MyGUI::Widget* keyFocus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); |  | ||||||
|         while (keyFocus != mMainWidget && keyFocus != nullptr) |  | ||||||
|             keyFocus = keyFocus->getParent(); |  | ||||||
| 
 |  | ||||||
|         if (keyFocus == mMainWidget) |  | ||||||
|             MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(nullptr); |  | ||||||
|     } |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool WindowBase::isVisible() | bool WindowBase::isVisible() | ||||||
|  |  | ||||||
|  | @ -217,7 +217,6 @@ namespace MWGui | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Widgets::MWSpellEffect>("Widget"); |         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Widgets::MWSpellEffect>("Widget"); | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Widgets::MWDynamicStat>("Widget"); |         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Widgets::MWDynamicStat>("Widget"); | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Window>("Widget"); |         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Window>("Widget"); | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Widgets::MWScrollBar>("Widget"); |  | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<VideoWidget>("Widget"); |         MyGUI::FactoryManager::getInstance().registerFactory<VideoWidget>("Widget"); | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<BackgroundImage>("Widget"); |         MyGUI::FactoryManager::getInstance().registerFactory<BackgroundImage>("Widget"); | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<osgMyGUI::AdditiveLayer>("Layer"); |         MyGUI::FactoryManager::getInstance().registerFactory<osgMyGUI::AdditiveLayer>("Layer"); | ||||||
|  | @ -236,7 +235,6 @@ namespace MWGui | ||||||
|         MyGUI::ResourceManager::getInstance().unregisterLoadXmlDelegate("Resource"); |         MyGUI::ResourceManager::getInstance().unregisterLoadXmlDelegate("Resource"); | ||||||
|         MyGUI::ResourceManager::getInstance().registerLoadXmlDelegate("Resource") = newDelegate(this, &WindowManager::loadFontDelegate); |         MyGUI::ResourceManager::getInstance().registerLoadXmlDelegate("Resource") = newDelegate(this, &WindowManager::loadFontDelegate); | ||||||
| 
 | 
 | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Controllers::ControllerRepeatEvent>("Controller"); |  | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Controllers::ControllerFollowMouse>("Controller"); |         MyGUI::FactoryManager::getInstance().registerFactory<MWGui::Controllers::ControllerFollowMouse>("Controller"); | ||||||
| 
 | 
 | ||||||
|         MyGUI::FactoryManager::getInstance().registerFactory<ResourceImageSetPointerFix>("Resource", "ResourceImageSetPointer"); |         MyGUI::FactoryManager::getInstance().registerFactory<ResourceImageSetPointerFix>("Resource", "ResourceImageSetPointer"); | ||||||
|  | @ -700,7 +698,7 @@ namespace MWGui | ||||||
|             setCursorVisible(!gameMode); |             setCursorVisible(!gameMode); | ||||||
| 
 | 
 | ||||||
|         if (gameMode) |         if (gameMode) | ||||||
|             setKeyFocusWidget (nullptr); |             MyGUI::InputManager::getInstance().resetKeyFocusWidget(); | ||||||
| 
 | 
 | ||||||
|         // Icons of forced hidden windows are displayed
 |         // Icons of forced hidden windows are displayed
 | ||||||
|         setMinimapVisibility((mAllowed & GW_Map) && (!mMap->pinned() || (mForceHidden & GW_Map))); |         setMinimapVisibility((mAllowed & GW_Map) && (!mMap->pinned() || (mForceHidden & GW_Map))); | ||||||
|  | @ -1672,16 +1670,6 @@ namespace MWGui | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // Remove this method for MyGUI 3.2.2
 |  | ||||||
|     void WindowManager::setKeyFocusWidget(MyGUI::Widget *widget) |  | ||||||
|     { |  | ||||||
|         if (widget == nullptr) |  | ||||||
|             MyGUI::InputManager::getInstance().resetKeyFocusWidget(); |  | ||||||
|         else |  | ||||||
|             MyGUI::InputManager::getInstance().setKeyFocusWidget(widget); |  | ||||||
|         onKeyFocusChanged(widget); |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     void WindowManager::onKeyFocusChanged(MyGUI::Widget *widget) |     void WindowManager::onKeyFocusChanged(MyGUI::Widget *widget) | ||||||
|     { |     { | ||||||
|         if (widget && widget->castType<MyGUI::EditBox>(false)) |         if (widget && widget->castType<MyGUI::EditBox>(false)) | ||||||
|  | @ -1874,7 +1862,7 @@ namespace MWGui | ||||||
|         sizeVideo(screenSize.width, screenSize.height); |         sizeVideo(screenSize.width, screenSize.height); | ||||||
| 
 | 
 | ||||||
|         MyGUI::Widget* oldKeyFocus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); |         MyGUI::Widget* oldKeyFocus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); | ||||||
|         setKeyFocusWidget(mVideoWidget); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(mVideoWidget); | ||||||
| 
 | 
 | ||||||
|         mVideoBackground->setVisible(true); |         mVideoBackground->setVisible(true); | ||||||
| 
 | 
 | ||||||
|  | @ -1912,7 +1900,7 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
|         MWBase::Environment::get().getSoundManager()->resumeSounds(); |         MWBase::Environment::get().getSoundManager()->resumeSounds(); | ||||||
| 
 | 
 | ||||||
|         setKeyFocusWidget(oldKeyFocus); |         MyGUI::InputManager::getInstance().setKeyFocusWidget(oldKeyFocus); | ||||||
| 
 | 
 | ||||||
|         setCursorVisible(cursorWasVisible); |         setCursorVisible(cursorWasVisible); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -147,9 +147,6 @@ namespace MWGui | ||||||
|     /// (and will continually update the window while doing so)
 |     /// (and will continually update the window while doing so)
 | ||||||
|     virtual void playVideo(const std::string& name, bool allowSkipping); |     virtual void playVideo(const std::string& name, bool allowSkipping); | ||||||
| 
 | 
 | ||||||
|     /// Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this.
 |  | ||||||
|     virtual void setKeyFocusWidget (MyGUI::Widget* widget); |  | ||||||
| 
 |  | ||||||
|     virtual void setNewGame(bool newgame); |     virtual void setNewGame(bool newgame); | ||||||
| 
 | 
 | ||||||
|     virtual void pushGuiMode(GuiMode mode, const MWWorld::Ptr& arg); |     virtual void pushGuiMode(GuiMode mode, const MWWorld::Ptr& arg); | ||||||
|  |  | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
| 
 | 
 | ||||||
|         <!-- Sliders --> |         <!-- Sliders --> | ||||||
|         <!-- Rotation of head --> |         <!-- Rotation of head --> | ||||||
|         <Widget type="MWScrollBar" skin="MW_HScroll" position="8 270 241 14" name="HeadRotate"/> |         <Widget type="ScrollBar" skin="MW_HScroll" position="8 270 241 14" name="HeadRotate"/> | ||||||
| 
 | 
 | ||||||
|         <!-- Gender choice --> |         <!-- Gender choice --> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -11,7 +11,7 @@ | ||||||
|         <Widget type="NumericEditBox" skin="MW_TextEdit" position="535 36 50 24" align="Right Top" name="ItemEdit"> |         <Widget type="NumericEditBox" skin="MW_TextEdit" position="535 36 50 24" align="Right Top" name="ItemEdit"> | ||||||
|             <Property key="TextAlign" value="Center"/> |             <Property key="TextAlign" value="Center"/> | ||||||
|         </Widget> |         </Widget> | ||||||
|         <Widget type="MWScrollBar" skin="MW_HScroll" position="7 67 578 18" align="Left Top HStretch" name="CountSlider"> |         <Widget type="ScrollBar" skin="MW_HScroll" position="7 67 578 18" align="Left Top HStretch" name="CountSlider"> | ||||||
|             <Property key="MoveToClick" value="true"/> |             <Property key="MoveToClick" value="true"/> | ||||||
|             <Property key="Page" value="1"/> |             <Property key="Page" value="1"/> | ||||||
|             <Property key="WheelPage" value="1"/> |             <Property key="WheelPage" value="1"/> | ||||||
|  |  | ||||||
|  | @ -12,6 +12,6 @@ | ||||||
| 
 | 
 | ||||||
|         <Child type="TextBox" skin="MW_TextEditClient" offset="2 2 490 18" align="Stretch" name="Client"/> |         <Child type="TextBox" skin="MW_TextEditClient" offset="2 2 490 18" align="Stretch" name="Client"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="MWScrollBar" skin="MW_VScroll" offset="494 3 14 14" align="Right VStretch" name="VScroll"/> |         <Child type="ScrollBar" skin="MW_VScroll" offset="494 3 14 14" align="Right VStretch" name="VScroll"/> | ||||||
|     </Resource> |     </Resource> | ||||||
| </MyGUI> | </MyGUI> | ||||||
|  |  | ||||||
|  | @ -11,7 +11,7 @@ | ||||||
|             </Widget> |             </Widget> | ||||||
|         </Widget> |         </Widget> | ||||||
| 
 | 
 | ||||||
|         <Widget type="MWScrollBar" skin="MW_VScroll" position="370 13 14 371" align="Right VStretch" name="VScroll"> |         <Widget type="ScrollBar" skin="MW_VScroll" position="370 13 14 371" align="Right VStretch" name="VScroll"> | ||||||
|             <Property key="Visible" value="false"/> |             <Property key="Visible" value="false"/> | ||||||
|         </Widget> |         </Widget> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -37,7 +37,7 @@ | ||||||
| 
 | 
 | ||||||
|         <Child type="TextBox" skin="MW_TextEditClient" offset="2 2 490 18" align="Stretch" name="Client"/> |         <Child type="TextBox" skin="MW_TextEditClient" offset="2 2 490 18" align="Stretch" name="Client"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="MWScrollBar" skin="MW_VScroll" offset="494 3 14 14" align="Right VStretch" name="VScroll"/> |         <Child type="ScrollBar" skin="MW_VScroll" offset="494 3 14 14" align="Right VStretch" name="VScroll"/> | ||||||
| 
 | 
 | ||||||
|     </Resource> |     </Resource> | ||||||
| 
 | 
 | ||||||
|  | @ -54,7 +54,7 @@ | ||||||
| 
 | 
 | ||||||
|         <Child type="TextBox" skin="MW_TextEditClient" offset="2 2 490 18" align="Stretch" name="Client"/> |         <Child type="TextBox" skin="MW_TextEditClient" offset="2 2 490 18" align="Stretch" name="Client"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="MWScrollBar" skin="MW_VScroll" offset="494 3 14 14" align="Right VStretch" name="VScroll"/> |         <Child type="ScrollBar" skin="MW_VScroll" offset="494 3 14 14" align="Right VStretch" name="VScroll"/> | ||||||
| 
 | 
 | ||||||
|     </Resource> |     </Resource> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -37,7 +37,7 @@ | ||||||
|                 <Property key="TextAlign" value="Center"/> |                 <Property key="TextAlign" value="Center"/> | ||||||
|                 <Property key="Caption" value="0"/> |                 <Property key="Caption" value="0"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|             <Widget type="MWScrollBar" skin="MW_HScroll" position="122 20 210 13" name="MagnitudeMinSlider"> |             <Widget type="ScrollBar" skin="MW_HScroll" position="122 20 210 13" name="MagnitudeMinSlider"> | ||||||
|                 <Property key="Range" value="100"/> |                 <Property key="Range" value="100"/> | ||||||
|                 <Property key="Page" value="1"/> |                 <Property key="Page" value="1"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|  | @ -46,7 +46,7 @@ | ||||||
|                 <Property key="TextAlign" value="Center"/> |                 <Property key="TextAlign" value="Center"/> | ||||||
|                 <Property key="Caption" value="0"/> |                 <Property key="Caption" value="0"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|             <Widget type="MWScrollBar" skin="MW_HScroll" position="122 52 210 13" name="MagnitudeMaxSlider"> |             <Widget type="ScrollBar" skin="MW_HScroll" position="122 52 210 13" name="MagnitudeMaxSlider"> | ||||||
|                 <Property key="Range" value="100"/> |                 <Property key="Range" value="100"/> | ||||||
|                 <Property key="Page" value="1"/> |                 <Property key="Page" value="1"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|  | @ -67,7 +67,7 @@ | ||||||
|                 <Property key="TextAlign" value="Center"/> |                 <Property key="TextAlign" value="Center"/> | ||||||
|                 <Property key="Caption" value="0"/> |                 <Property key="Caption" value="0"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|             <Widget type="MWScrollBar" skin="MW_HScroll" position="122 20 210 13" name="DurationSlider"> |             <Widget type="ScrollBar" skin="MW_HScroll" position="122 20 210 13" name="DurationSlider"> | ||||||
|                 <Property key="Range" value="1440"/> |                 <Property key="Range" value="1440"/> | ||||||
|                 <Property key="Page" value="1"/> |                 <Property key="Page" value="1"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|  | @ -87,7 +87,7 @@ | ||||||
|                 <Property key="TextAlign" value="Center"/> |                 <Property key="TextAlign" value="Center"/> | ||||||
|                 <Property key="Caption" value="0"/> |                 <Property key="Caption" value="0"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|             <Widget type="MWScrollBar" skin="MW_HScroll" position="122 20 210 13" name="AreaSlider"> |             <Widget type="ScrollBar" skin="MW_HScroll" position="122 20 210 13" name="AreaSlider"> | ||||||
|                 <Property key="Range" value="51"/> |                 <Property key="Range" value="51"/> | ||||||
|                 <Property key="Page" value="1"/> |                 <Property key="Page" value="1"/> | ||||||
|             </Widget> |             </Widget> | ||||||
|  |  | ||||||
|  | @ -130,7 +130,7 @@ | ||||||
| 
 | 
 | ||||||
|         <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="Stretch"/> |         <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="Stretch"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="MWScrollBar" skin="MW_VScroll" offset="498 4 14 508" align="Right VStretch" name="VScroll"/> |         <Child type="ScrollBar" skin="MW_VScroll" offset="498 4 14 508" align="Right VStretch" name="VScroll"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="Widget" skin="" offset="3 4 493 508" align="Stretch" name="Client"/> |         <Child type="Widget" skin="" offset="3 4 493 508" align="Stretch" name="Client"/> | ||||||
| 
 | 
 | ||||||
|  | @ -142,7 +142,7 @@ | ||||||
|         <Child type="Widget" skin="BlackBG" offset="0 0 516 516" align="Stretch"/> |         <Child type="Widget" skin="BlackBG" offset="0 0 516 516" align="Stretch"/> | ||||||
|         <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="Stretch"/> |         <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="Stretch"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="MWScrollBar" skin="MW_VScroll" offset="498 3 14 509" align="Right VStretch" name="VScroll"/> |         <Child type="ScrollBar" skin="MW_VScroll" offset="498 3 14 509" align="Right VStretch" name="VScroll"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="Widget" skin="" offset="3 3 493 509" align="Stretch" name="Client"/> |         <Child type="Widget" skin="" offset="3 3 493 509" align="Stretch" name="Client"/> | ||||||
|     </Resource> |     </Resource> | ||||||
|  | @ -154,7 +154,7 @@ | ||||||
|         <Child type="Widget" skin="FullBlackBG" offset="0 0 516 516" align="Stretch"/> |         <Child type="Widget" skin="FullBlackBG" offset="0 0 516 516" align="Stretch"/> | ||||||
|         <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="Stretch"/> |         <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="Stretch"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="MWScrollBar" skin="MW_VScroll" offset="498 3 14 509" align="Right VStretch" name="VScroll"/> |         <Child type="ScrollBar" skin="MW_VScroll" offset="498 3 14 509" align="Right VStretch" name="VScroll"/> | ||||||
| 
 | 
 | ||||||
|         <Child type="Widget" skin="" offset="3 3 493 509" align="Stretch" name="Client"/> |         <Child type="Widget" skin="" offset="3 3 493 509" align="Stretch" name="Client"/> | ||||||
|     </Resource> |     </Resource> | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
|         <Child type="Widget" skin="" offset="0 0 516 516" align="Stretch" name="Client"/> |         <Child type="Widget" skin="" offset="0 0 516 516" align="Stretch" name="Client"/> | ||||||
| 
 | 
 | ||||||
|         <!-- invisible scroll bars, needed for setting the view offset --> |         <!-- invisible scroll bars, needed for setting the view offset --> | ||||||
|         <Child type="MWScrollBar" skin="" offset="0 0 0 0" align="Default" name="VScroll"/> |         <Child type="ScrollBar" skin="" offset="0 0 0 0" align="Default" name="VScroll"/> | ||||||
|         <Child type="MWScrollBar" skin="" offset="0 0 0 0" align="Default" name="HScroll"/> |         <Child type="ScrollBar" skin="" offset="0 0 0 0" align="Default" name="HScroll"/> | ||||||
|     </Resource> |     </Resource> | ||||||
| </MyGUI> | </MyGUI> | ||||||
|  |  | ||||||
|  | @ -5,13 +5,13 @@ | ||||||
|     <Resource type="ResourceSkin" name="MW_ScrollView" size="516 516"> |     <Resource type="ResourceSkin" name="MW_ScrollView" size="516 516"> | ||||||
|         <Property key="NeedKey" value="false"/> |         <Property key="NeedKey" value="false"/> | ||||||
|         <Child type="Widget" skin="" offset="0 0 502 516" align="Stretch" name="Client"/> |         <Child type="Widget" skin="" offset="0 0 502 516" align="Stretch" name="Client"/> | ||||||
|         <Child type="MWScrollBar" skin="MW_VScroll" offset="498 3 14 513" align="Right Top VStretch" name="VScroll"/> |         <Child type="ScrollBar" skin="MW_VScroll" offset="498 3 14 513" align="Right Top VStretch" name="VScroll"/> | ||||||
|     </Resource> |     </Resource> | ||||||
| 
 | 
 | ||||||
|     <Resource type="ResourceSkin" name="MW_ScrollViewH" size="516 516"> |     <Resource type="ResourceSkin" name="MW_ScrollViewH" size="516 516"> | ||||||
|         <Property key="NeedKey" value="false"/> |         <Property key="NeedKey" value="false"/> | ||||||
|         <Child type="Widget" skin="" offset="0 0 516 502" align="Stretch" name="Client"/> |         <Child type="Widget" skin="" offset="0 0 516 502" align="Stretch" name="Client"/> | ||||||
|         <Child type="MWScrollBar" skin="MW_HScroll" offset="3 498 513 14" align="Left Bottom HStretch" name="HScroll"/> |         <Child type="ScrollBar" skin="MW_HScroll" offset="3 498 513 14" align="Left Bottom HStretch" name="HScroll"/> | ||||||
|     </Resource> |     </Resource> | ||||||
| 
 | 
 | ||||||
| </MyGUI> | </MyGUI> | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ | ||||||
|                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top"> |                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top"> | ||||||
|                         <Property key="Caption" value="#{sTransparency_Menu}"/> |                         <Property key="Caption" value="#{sTransparency_Menu}"/> | ||||||
|                     </Widget> |                     </Widget> | ||||||
|                     <Widget type="MWScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> |                     <Widget type="ScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> | ||||||
|                         <Property key="Range" value="10000"/> |                         <Property key="Range" value="10000"/> | ||||||
|                         <Property key="Page" value="300"/> |                         <Property key="Page" value="300"/> | ||||||
|                         <UserString key="SettingType" value="Slider"/> |                         <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -31,7 +31,7 @@ | ||||||
|                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top"> |                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top"> | ||||||
|                         <Property key="Caption" value="#{sMenu_Help_Delay}"/> |                         <Property key="Caption" value="#{sMenu_Help_Delay}"/> | ||||||
|                     </Widget> |                     </Widget> | ||||||
|                     <Widget type="MWScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> |                     <Widget type="ScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> | ||||||
|                         <Property key="Range" value="10000"/> |                         <Property key="Range" value="10000"/> | ||||||
|                         <Property key="Page" value="300"/> |                         <Property key="Page" value="300"/> | ||||||
|                         <UserString key="SettingType" value="Slider"/> |                         <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -52,7 +52,7 @@ | ||||||
|                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top" name="DifficultyText"> |                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top" name="DifficultyText"> | ||||||
|                         <Property key="Caption" value="#{sDifficulty}"/> |                         <Property key="Caption" value="#{sDifficulty}"/> | ||||||
|                     </Widget> |                     </Widget> | ||||||
|                     <Widget type="MWScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> |                     <Widget type="ScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> | ||||||
|                         <Property key="Range" value="201"/> |                         <Property key="Range" value="201"/> | ||||||
|                         <Property key="Page" value="1"/> |                         <Property key="Page" value="1"/> | ||||||
|                         <UserString key="SettingType" value="Slider"/> |                         <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -77,7 +77,7 @@ | ||||||
|                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top" name="ActorProcessingText"> |                     <Widget type="TextBox" skin="NormalText" position="0 0 352 16" align="Left Top" name="ActorProcessingText"> | ||||||
|                         <Property key="Caption" value="Actors Processing Range"/> |                         <Property key="Caption" value="Actors Processing Range"/> | ||||||
|                     </Widget> |                     </Widget> | ||||||
|                     <Widget type="MWScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> |                     <Widget type="ScrollBar" skin="MW_HScroll" position="0 20 352 14" align="Left Top HStretch"> | ||||||
|                         <Property key="Range" value="3584"/> |                         <Property key="Range" value="3584"/> | ||||||
|                         <Property key="Page" value="300"/> |                         <Property key="Page" value="300"/> | ||||||
|                         <UserString key="SettingType" value="Slider"/> |                         <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -144,7 +144,7 @@ | ||||||
|                 <Widget type="TextBox" skin="NormalText" position="4 4 352 18" align="Left Top"> |                 <Widget type="TextBox" skin="NormalText" position="4 4 352 18" align="Left Top"> | ||||||
|                     <Property key="Caption" value="#{sMaster}"/> |                     <Property key="Caption" value="#{sMaster}"/> | ||||||
|                 </Widget> |                 </Widget> | ||||||
|                 <Widget type="MWScrollBar" skin="MW_HScroll" position="4 28 352 18" align="HStretch Top"> |                 <Widget type="ScrollBar" skin="MW_HScroll" position="4 28 352 18" align="HStretch Top"> | ||||||
|                     <Property key="Range" value="10000"/> |                     <Property key="Range" value="10000"/> | ||||||
|                     <Property key="Page" value="300"/> |                     <Property key="Page" value="300"/> | ||||||
|                     <UserString key="SettingType" value="Slider"/> |                     <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -155,7 +155,7 @@ | ||||||
|                 <Widget type="TextBox" skin="NormalText" position="4 54 352 18" align="Left Top"> |                 <Widget type="TextBox" skin="NormalText" position="4 54 352 18" align="Left Top"> | ||||||
|                     <Property key="Caption" value="#{sVoice}"/> |                     <Property key="Caption" value="#{sVoice}"/> | ||||||
|                 </Widget> |                 </Widget> | ||||||
|                 <Widget type="MWScrollBar" skin="MW_HScroll" position="4 78 352 18" align="HStretch Top"> |                 <Widget type="ScrollBar" skin="MW_HScroll" position="4 78 352 18" align="HStretch Top"> | ||||||
|                     <Property key="Range" value="10000"/> |                     <Property key="Range" value="10000"/> | ||||||
|                     <Property key="Page" value="300"/> |                     <Property key="Page" value="300"/> | ||||||
|                     <UserString key="SettingType" value="Slider"/> |                     <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -166,7 +166,7 @@ | ||||||
|                 <Widget type="TextBox" skin="NormalText" position="4 104 352 18" align="Left Top"> |                 <Widget type="TextBox" skin="NormalText" position="4 104 352 18" align="Left Top"> | ||||||
|                     <Property key="Caption" value="#{sEffects}"/> |                     <Property key="Caption" value="#{sEffects}"/> | ||||||
|                 </Widget> |                 </Widget> | ||||||
|                 <Widget type="MWScrollBar" skin="MW_HScroll" position="4 128 352 18" align="HStretch Top"> |                 <Widget type="ScrollBar" skin="MW_HScroll" position="4 128 352 18" align="HStretch Top"> | ||||||
|                     <Property key="Range" value="10000"/> |                     <Property key="Range" value="10000"/> | ||||||
|                     <Property key="Page" value="300"/> |                     <Property key="Page" value="300"/> | ||||||
|                     <UserString key="SettingType" value="Slider"/> |                     <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -177,7 +177,7 @@ | ||||||
|                 <Widget type="TextBox" skin="NormalText" position="4 154 352 18" align="Left Top"> |                 <Widget type="TextBox" skin="NormalText" position="4 154 352 18" align="Left Top"> | ||||||
|                     <Property key="Caption" value="#{sFootsteps}"/> |                     <Property key="Caption" value="#{sFootsteps}"/> | ||||||
|                 </Widget> |                 </Widget> | ||||||
|                 <Widget type="MWScrollBar" skin="MW_HScroll" position="4 178 352 18" align="HStretch Top"> |                 <Widget type="ScrollBar" skin="MW_HScroll" position="4 178 352 18" align="HStretch Top"> | ||||||
|                     <Property key="Range" value="10000"/> |                     <Property key="Range" value="10000"/> | ||||||
|                     <Property key="Page" value="300"/> |                     <Property key="Page" value="300"/> | ||||||
|                     <UserString key="SettingType" value="Slider"/> |                     <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -188,7 +188,7 @@ | ||||||
|                 <Widget type="TextBox" skin="NormalText" position="4 204 352 18" align="Left Top"> |                 <Widget type="TextBox" skin="NormalText" position="4 204 352 18" align="Left Top"> | ||||||
|                     <Property key="Caption" value="#{sMusic}"/> |                     <Property key="Caption" value="#{sMusic}"/> | ||||||
|                 </Widget> |                 </Widget> | ||||||
|                 <Widget type="MWScrollBar" skin="MW_HScroll" position="4 228 352 18" align="HStretch Top"> |                 <Widget type="ScrollBar" skin="MW_HScroll" position="4 228 352 18" align="HStretch Top"> | ||||||
|                     <Property key="Range" value="10000"/> |                     <Property key="Range" value="10000"/> | ||||||
|                     <Property key="Page" value="300"/> |                     <Property key="Page" value="300"/> | ||||||
|                     <UserString key="SettingType" value="Slider"/> |                     <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -234,7 +234,7 @@ | ||||||
|                 <Widget type="TextBox" skin="NormalText" position="4 254 336 18" align="Left Bottom"> |                 <Widget type="TextBox" skin="NormalText" position="4 254 336 18" align="Left Bottom"> | ||||||
|                     <Property key="Caption" value="Camera Sensitivity"/> |                     <Property key="Caption" value="Camera Sensitivity"/> | ||||||
|                 </Widget> |                 </Widget> | ||||||
|                 <Widget type="MWScrollBar" skin="MW_HScroll" position="4 278 336 18" align="HStretch Bottom"> |                 <Widget type="ScrollBar" skin="MW_HScroll" position="4 278 336 18" align="HStretch Bottom"> | ||||||
|                     <Property key="Range" value="10000"/> |                     <Property key="Range" value="10000"/> | ||||||
|                     <Property key="Page" value="300"/> |                     <Property key="Page" value="300"/> | ||||||
|                     <UserString key="SettingType" value="Slider"/> |                     <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -308,7 +308,7 @@ | ||||||
| 
 | 
 | ||||||
|                         <Widget type="TextBox" skin="NormalText" position="0 198 329 18" align="Left Top" name="FovText"> |                         <Widget type="TextBox" skin="NormalText" position="0 198 329 18" align="Left Top" name="FovText"> | ||||||
|                         </Widget> |                         </Widget> | ||||||
|                         <Widget type="MWScrollBar" skin="MW_HScroll" position="0 222 329 18" align="HStretch Top"> |                         <Widget type="ScrollBar" skin="MW_HScroll" position="0 222 329 18" align="HStretch Top"> | ||||||
|                             <Property key="Range" value="81"/> |                             <Property key="Range" value="81"/> | ||||||
|                             <Property key="Page" value="1"/> |                             <Property key="Page" value="1"/> | ||||||
|                             <UserString key="SettingType" value="Slider"/> |                             <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -331,7 +331,7 @@ | ||||||
|                         <Widget type="TextBox" skin="NormalText" position="0 268 329 18" align="Left Top" name="GammaText"> |                         <Widget type="TextBox" skin="NormalText" position="0 268 329 18" align="Left Top" name="GammaText"> | ||||||
|                             <Property key="Caption" value="#{sGamma_Correction}"/> |                             <Property key="Caption" value="#{sGamma_Correction}"/> | ||||||
|                         </Widget> |                         </Widget> | ||||||
|                         <Widget type="MWScrollBar" skin="MW_HScroll" position="0 292 329 18" align="HStretch Top" name="GammaSlider"> |                         <Widget type="ScrollBar" skin="MW_HScroll" position="0 292 329 18" align="HStretch Top" name="GammaSlider"> | ||||||
|                             <Property key="Range" value="10000"/> |                             <Property key="Range" value="10000"/> | ||||||
|                             <Property key="Page" value="300"/> |                             <Property key="Page" value="300"/> | ||||||
|                             <UserString key="SettingType" value="Slider"/> |                             <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -363,7 +363,7 @@ | ||||||
|                             <Widget type="TextBox" skin="NormalText" position="0 0 300 24" align="Left Top" name="AnisotropyLabel"> |                             <Widget type="TextBox" skin="NormalText" position="0 0 300 24" align="Left Top" name="AnisotropyLabel"> | ||||||
|                                 <Property key="Caption" value="Anisotropy"/> |                                 <Property key="Caption" value="Anisotropy"/> | ||||||
|                             </Widget> |                             </Widget> | ||||||
|                             <Widget type="MWScrollBar" skin="MW_HScroll" position="0 28 150 18" align="Left Top"> |                             <Widget type="ScrollBar" skin="MW_HScroll" position="0 28 150 18" align="Left Top"> | ||||||
|                                 <Property key="Range" value="17"/> |                                 <Property key="Range" value="17"/> | ||||||
|                                 <Property key="Page" value="1"/> |                                 <Property key="Page" value="1"/> | ||||||
|                                 <UserString key="SettingType" value="Slider"/> |                                 <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -376,7 +376,7 @@ | ||||||
|                         <Widget type="TextBox" skin="NormalText" position="4 130 322 18" align="Left Top" name="RenderDistanceLabel"> |                         <Widget type="TextBox" skin="NormalText" position="4 130 322 18" align="Left Top" name="RenderDistanceLabel"> | ||||||
|                             <Property key="Caption" value="#{sRender_Distance}"/> |                             <Property key="Caption" value="#{sRender_Distance}"/> | ||||||
|                         </Widget> |                         </Widget> | ||||||
|                         <Widget type="MWScrollBar" skin="MW_HScroll" position="4 154 322 18" align="Left Top" name="RenderingDistanceSlider"> |                         <Widget type="ScrollBar" skin="MW_HScroll" position="4 154 322 18" align="Left Top" name="RenderingDistanceSlider"> | ||||||
|                             <Property key="Range" value="4609"/> |                             <Property key="Range" value="4609"/> | ||||||
|                             <Property key="Page" value="128"/> |                             <Property key="Page" value="128"/> | ||||||
|                             <UserString key="SettingType" value="Slider"/> |                             <UserString key="SettingType" value="Slider"/> | ||||||
|  | @ -388,7 +388,7 @@ | ||||||
|                             <UserString key="SettingLabelWidget" value="RenderDistanceLabel"/> |                             <UserString key="SettingLabelWidget" value="RenderDistanceLabel"/> | ||||||
|                             <UserString key="SettingLabelCaption" value="#{sRender_Distance} (%s)"/> |                             <UserString key="SettingLabelCaption" value="#{sRender_Distance} (%s)"/> | ||||||
|                         </Widget> |                         </Widget> | ||||||
|                         <Widget type="MWScrollBar" skin="MW_HScroll" position="4 154 322 18" align="Left Top" name="LargeRenderingDistanceSlider"> |                         <Widget type="ScrollBar" skin="MW_HScroll" position="4 154 322 18" align="Left Top" name="LargeRenderingDistanceSlider"> | ||||||
|                             <Property key="Range" value="79873"/> |                             <Property key="Range" value="79873"/> | ||||||
|                             <Property key="Page" value="2048"/> |                             <Property key="Page" value="2048"/> | ||||||
|                             <UserString key="SettingType" value="Slider"/> |                             <UserString key="SettingType" value="Slider"/> | ||||||
|  |  | ||||||
|  | @ -16,7 +16,7 @@ | ||||||
|         <Widget type="AutoSizedTextBox" skin="SandText" name="HourText"> |         <Widget type="AutoSizedTextBox" skin="SandText" name="HourText"> | ||||||
|         </Widget> |         </Widget> | ||||||
| 
 | 
 | ||||||
|         <Widget type="MWScrollBar" skin="MW_HScroll" name="HourSlider" position="0 0 0 18"> |         <Widget type="ScrollBar" skin="MW_HScroll" name="HourSlider" position="0 0 0 18"> | ||||||
|             <Property key="MoveToClick" value="true"/> |             <Property key="MoveToClick" value="true"/> | ||||||
|             <Property key="Range" value="24"/> |             <Property key="Range" value="24"/> | ||||||
|             <Property key="Page" value="1"/> |             <Property key="Page" value="1"/> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue