diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:16:40 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:16:40 +1000 |
commit | 008bd6d3df469f69eaf667bc3ae357a03894bddb (patch) | |
tree | 0aa0548dae863c727cd32fc2b0d562783c7edb4e /source/windowing/StarItemSlotWidget.cpp | |
parent | 2bd399fd00d87683e37b41bfc1a25772c6cde71f (diff) |
more!! more!!!!
Diffstat (limited to 'source/windowing/StarItemSlotWidget.cpp')
-rw-r--r-- | source/windowing/StarItemSlotWidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/windowing/StarItemSlotWidget.cpp b/source/windowing/StarItemSlotWidget.cpp index b317c8a..a828838 100644 --- a/source/windowing/StarItemSlotWidget.cpp +++ b/source/windowing/StarItemSlotWidget.cpp @@ -153,8 +153,7 @@ void ItemSlotWidget::renderImpl() { if (m_showLinkIndicator) { // TODO: Hardcoded - context()->drawInterfaceQuad("/interface/inventory/itemlinkindicator.png", - Vec2F(screenPosition() - Vec2I(1, 1))); + context()->drawInterfaceQuad(String("/interface/inventory/itemlinkindicator.png"), Vec2F(screenPosition() - Vec2I(1, 1))); } for (auto i : iconDrawables) @@ -179,7 +178,7 @@ void ItemSlotWidget::renderImpl() { } int frame = (int)roundf(m_progress * 18); // TODO: Hardcoded lol - context()->drawInterfaceQuad(strf("/interface/cooldown.png:%d", frame), Vec2F(screenPosition())); + context()->drawInterfaceQuad(String(strf("/interface/cooldown.png:%d", frame)), Vec2F(screenPosition())); if (m_item->count() > 1 && m_showCount) { // we don't need to tell people that there's only 1 of something context()->setFont(m_font); @@ -192,7 +191,7 @@ void ItemSlotWidget::renderImpl() { } else if (m_drawBackingImageWhenEmpty && m_backingImage != "") { context()->drawInterfaceQuad(m_backingImage, Vec2F(screenPosition())); int frame = (int)roundf(m_progress * 18); // TODO: Hardcoded lol - context()->drawInterfaceQuad(strf("/interface/cooldown.png:%d", frame), Vec2F(screenPosition())); + context()->drawInterfaceQuad(String(strf("/interface/cooldown.png:%d", frame)), Vec2F(screenPosition())); } if (m_highlightEnabled) { |