Add shiny gold icon animation

This commit is contained in:
Henrik Rydgård committed 2025-05-25 11:22:04 +02:00
1 parent 6df008c80b
commit a1453c6436
7 files changed
+62 -8

No files matched your search

+3
View File
@@ -1013,10 +1013,13 @@ void RadioButton::Draw(UIContext &dc) {
void ImageView::GetContentDimensions(const UIContext &dc, float &w, float &h) const {
dc.Draw()->GetAtlas()->measureImage(atlasImage_, &w, &h);
w *= scale_;
h *= scale_;
// TODO: involve sizemode
}
void ImageView::Draw(UIContext &dc) {
dc.Begin();
const AtlasImage *img = dc.Draw()->GetAtlas()->getImage(atlasImage_);
if (img) {
// TODO: involve sizemode