mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
1718d735b5
This patch implements a custom widget that can switch its texture on-the-fly, making it obsolete having to use an atlas to get a hover animation. This also removes the predefined size restriction and should now work with all button texture sizes.
17 lines
535 B
C++
17 lines
535 B
C++
#include "cursorreplace.hpp"
|
|
|
|
#include <boost/filesystem.hpp>
|
|
#include <openengine/ogre/imagerotate.hpp>
|
|
|
|
#include <OgreResourceGroupManager.h>
|
|
#include <OgreRoot.h>
|
|
|
|
using namespace MWGui;
|
|
|
|
CursorReplace::CursorReplace()
|
|
{
|
|
OEngine::Render::ImageRotate::rotate("textures\\tx_cursormove.dds", "mwpointer_vresize.png", 90);
|
|
OEngine::Render::ImageRotate::rotate("textures\\tx_cursormove.dds", "mwpointer_dresize1.png", -45);
|
|
OEngine::Render::ImageRotate::rotate("textures\\tx_cursormove.dds", "mwpointer_dresize2.png", 45);
|
|
}
|