Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarInterfaceCursor.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 18:39:40 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 18:39:40 +1000
commit4b9b02783f1bbfc1049e11b606883c5cfa0b215e (patch)
tree83b1df588ba8154d28a99d7c1ac3ffc6bac764bc /source/frontend/StarInterfaceCursor.cpp
parent32411daa670e57150d6a5c54593305ddd09693d1 (diff)
HD Cursor
Diffstat (limited to 'source/frontend/StarInterfaceCursor.cpp')
-rw-r--r--source/frontend/StarInterfaceCursor.cpp6
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);