Skip to content

Commit

Permalink
Disable background hover on ui skill sprites in turn_based
Browse files Browse the repository at this point in the history
  • Loading branch information
scallyw4g committed Aug 10, 2024
1 parent f0584df commit 9c48ff9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/turn_based/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,10 @@ BONSAI_API_MAIN_THREAD_CALLBACK()

v2 SpriteSize = V2(96);

PushButtonStart(Ui, ButtonId);
ui_style SpriteStyle = {};
SpriteStyle.HoverColor = UI_HOVER_HIGHLIGHT_DISABLED;

PushButtonStart(Ui, ButtonId, &SpriteStyle);
s32 SpriteIndex = Global_SpriteIndexFromActionIndex[ActionIndex];
Assert(SpriteIndex > 0);
PushTexturedQuad(Ui, &Resources->Ui.SpriteTextureArray, 0, SpriteSize, zDepth_TitleBar, BackgroundTint, UiElementLayoutFlag_NoAdvance);
Expand Down
2 changes: 1 addition & 1 deletion external/bonsai_stdlib
Submodule bonsai_stdlib updated 2 files
+10 −10 src/ui/ui.cpp
+4 −13 src/ui/ui.h
2 changes: 1 addition & 1 deletion generated/d_union_ui_render_command.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// external/bonsai_stdlib/src/ui/ui.h:761:0
// external/bonsai_stdlib/src/ui/ui.h:763:0

enum ui_render_command_type
{
Expand Down

0 comments on commit 9c48ff9

Please sign in to comment.