Skip to content

Commit

Permalink
fix: tile info fragment's button icon not changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharlottes committed Dec 6, 2023
1 parent 1c4df58 commit 79140ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/informatis/ui/fragments/TileInfoFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public TileInfoFragment() {
button.clicked(() -> {
waveShown = !waveShown;

TextureRegionDrawable icon = waveShown ? Icon.upOpen : Icon.downOpen;
button.getStyle().imageUp = icon;
button.resizeImage(icon.imageSize());
button.setChecked(waveShown);
});
collapseButton.add(button);
}).left().top()
Expand Down

0 comments on commit 79140ea

Please sign in to comment.