fix/disabled-button-state · PurpleFuchs · 9 Dateien · +38 −17 · 2026-10-29
Zusammenfassung
Card de067a.
GuiConfig.DisabledOpacity = 0.4— one constant replacing the sprinkledsetColor(1,1,1,0.4)wraps- Optional
Disabledflag onDrawCanvasButton,DrawRoundedCanvasButton,DrawGuiButton,DrawWideGuiButton,DrawSmallGuiButton: drawsCanvas['Disabled'] or Canvas['Idle']dimmed, returns inert{Pressed={}, Release={}}— no hover/active/sound/click - Migrated the three manual-alpha sites:
DrawBlueprintEditorcraft,DrawUpgradeDetailscraft,DrawEditRouteStageadd-drone - Disabled (semantic gate) stays separate from OnTop (occlusion); a dedicated Disabled canvas can be added per family later without caller changes
Geänderte Dateien (9)
| Source/GuiConfig.lua | geändert | +1 −0 |
| Source/GuiElements/BlueprintEditor/DrawBlueprintEditor.lua | geändert | +1 −3 |
| Source/GuiElements/Buttons/DrawCanvasButton.lua | geändert | +14 −1 |
| Source/GuiElements/Buttons/DrawGuiButton.lua | geändert | +2 −2 |
| Source/GuiElements/Buttons/DrawRoundedCanvasButton.lua | geändert | +14 −1 |
| Source/GuiElements/Buttons/DrawSmallGuiButton.lua | geändert | +2 −2 |
| Source/GuiElements/Buttons/DrawWideGuiButton.lua | geändert | +2 −2 |
| Source/GuiElements/ConfigWindows/ResearchLab/DrawUpgradeDetails.lua | geändert | +1 −3 |
| Source/GuiElements/Drones/DrawEditRouteStage.lua | geändert | +1 −3 |