forked from mirror/openmw-tes3mp
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.
16 lines
535 B
C++
16 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);
|
|
}
|