From 4b9b02783f1bbfc1049e11b606883c5cfa0b215e Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 26 Jun 2023 18:39:40 +1000 Subject: HD Cursor --- source/frontend/StarInterfaceCursor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/frontend/StarInterfaceCursor.cpp') 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().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()) { m_drawable.get().update(dt); -- cgit v1.2.3