diff --git a/OpenRA.Mods.Common/Widgets/Logic/AssetBrowserLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/AssetBrowserLogic.cs index bf5675b4c4..c49744e480 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/AssetBrowserLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/AssetBrowserLogic.cs @@ -131,6 +131,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic { paletteDropDown.OnMouseDown = _ => ShowPaletteDropdown(paletteDropDown, world); paletteDropDown.GetText = () => currentPalette; + paletteDropDown.IsVisible = () => currentSprites != null || currentVoxel != null; + panel.GetOrNull("PALETTE_DESC").IsVisible = () => currentSprites != null || currentVoxel != null; } var colorManager = modData.DefaultRules.Actors[SystemActors.World].TraitInfo(); @@ -141,6 +143,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic { colorDropdown.IsDisabled = () => !colorPickerPalettes.Contains(currentPalette); colorDropdown.OnMouseDown = _ => ColorPickerLogic.ShowColorDropDown(colorDropdown, colorManager, worldRenderer); + colorDropdown.IsVisible = () => currentSprites != null || currentVoxel != null; panel.Get("COLORBLOCK").GetColor = () => colorManager.Color; }