Skip to content

Commit

Permalink
fix run info icon opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Jan 21, 2025
1 parent f7b4739 commit e68b89d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions run-info/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.0.1
- Fix opacity not being applied to icon

## 2.0.0
- Add setting to toggle the mod
- Add setting to enable decimal percentages
Expand Down
2 changes: 2 additions & 0 deletions run-info/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class RunInfoWidget : public CCNodeRGBA {
sprite->setScale(m_status_label->getScaledContentSize().height / sprite->getContentSize().height);
})
.end();
// make cocos cascade the opacity lol
this->setOpacity(this->getOpacity());
}

void update_position(PlayLayer* layer, bool left) {
Expand Down
2 changes: 1 addition & 1 deletion run-info/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"android": "2.2074",
"mac": "2.2074"
},
"version": "2.0.0",
"version": "2.0.1",
"id": "mat.run-info",
"name": "Run Info",
"developer": "mat",
Expand Down

0 comments on commit e68b89d

Please sign in to comment.