Add world desaturation to TD end-game menu.
This commit is contained in:
@@ -30,6 +30,10 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
{
|
{
|
||||||
this.orderManager = orderManager;
|
this.orderManager = orderManager;
|
||||||
|
|
||||||
|
var mpe = world.WorldActor.TraitOrDefault<MenuPaletteEffect>();
|
||||||
|
if (mpe != null)
|
||||||
|
mpe.Fade(mpe.Info.MenuEffect);
|
||||||
|
|
||||||
widget.Get<LabelWidget>("VERSION_LABEL").Text = Game.modData.Manifest.Mod.Version;
|
widget.Get<LabelWidget>("VERSION_LABEL").Text = Game.modData.Manifest.Mod.Version;
|
||||||
|
|
||||||
var showStats = false;
|
var showStats = false;
|
||||||
@@ -92,7 +96,6 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
leaveButton.OnClick = () =>
|
leaveButton.OnClick = () =>
|
||||||
{
|
{
|
||||||
leaveButton.Disabled = true;
|
leaveButton.Disabled = true;
|
||||||
var mpe = world.WorldActor.TraitOrDefault<MenuPaletteEffect>();
|
|
||||||
|
|
||||||
Sound.PlayNotification(world.Map.Rules, null, "Speech", "Leave",
|
Sound.PlayNotification(world.Map.Rules, null, "Speech", "Leave",
|
||||||
world.LocalPlayer == null ? null : world.LocalPlayer.Country.Race);
|
world.LocalPlayer == null ? null : world.LocalPlayer.Country.Race);
|
||||||
|
|||||||
Reference in New Issue
Block a user