system/ui: disabled button styles (#35236)

This commit is contained in:
Cameron Clough
2025-05-15 16:42:32 +01:00
committed by GitHub
parent 0fec3656a1
commit 6c03e9472d
+3
View File
@@ -49,6 +49,9 @@ def gui_button(
) -> int:
result = 0
if button_style in (ButtonStyle.PRIMARY, ButtonStyle.DANGER) and not is_enabled:
button_style = ButtonStyle.NORMAL
# Set background color based on button type
bg_color = BUTTON_BACKGROUND_COLORS[button_style]
if is_enabled and rl.check_collision_point_rec(rl.get_mouse_position(), rect):