Make dialog draggable in artist debug mode

So artist can view texture change by moving texture console
This commit is contained in:
Benau 2017-01-10 09:22:08 +08:00
parent 8acd2d689a
commit f7d843a7f7

View File

@ -15,10 +15,11 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "guiengine/modaldialog.hpp"
#include "config/user_config.hpp"
#include "graphics/irr_driver.hpp"
#include "guiengine/engine.hpp"
#include "guiengine/layout_manager.hpp"
#include "guiengine/modaldialog.hpp"
#include "guiengine/screen.hpp"
#include "guiengine/widget.hpp"
#include "input/input_manager.hpp"
@ -137,7 +138,8 @@ void ModalDialog::doInit()
true /* modal */);
m_irrlicht_window->setDrawTitlebar(false);
m_irrlicht_window->getCloseButton()->setVisible(false);
m_irrlicht_window->setDraggable(false);
if (!UserConfigParams::m_artist_debug_mode)
m_irrlicht_window->setDraggable(false);
GUIEngine::getSkin()->m_dialog = true;
GUIEngine::getSkin()->m_dialog_size = 0.0f;