diff options
Diffstat (limited to 'source/frontend/StarInterfaceCursor.cpp')
-rw-r--r-- | source/frontend/StarInterfaceCursor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/frontend/StarInterfaceCursor.cpp b/source/frontend/StarInterfaceCursor.cpp index 8844da2..9fa01f7 100644 --- a/source/frontend/StarInterfaceCursor.cpp +++ b/source/frontend/StarInterfaceCursor.cpp @@ -36,6 +36,8 @@ void InterfaceCursor::setCursor(String const& configFile) { m_drawable = Animation(config.get("animation"), "/interface"); m_size = Vec2I(m_drawable.get<Animation>().drawable(1.0f).boundBox(false).size()); } + + m_scale = config.getUInt("scale", 0); } Drawable InterfaceCursor::drawable() const { @@ -53,6 +55,10 @@ Vec2I InterfaceCursor::offset() const { return m_offset; } +unsigned int InterfaceCursor::scale(unsigned int interfaceScale) const { + return m_scale ? m_scale : interfaceScale; +} + void InterfaceCursor::update(float dt) { if (m_drawable.is<Animation>()) { m_drawable.get<Animation>().update(dt); |