UIBackground UserInterface.MakeBackground(Grid grid) { UIBackground darkBackground = new DarkBackground(); darkBackground.CreateBackground(grid); return(darkBackground); }
public static void Draw(SpriteBatch spriteBatch) { WhiteFlash.Draw(spriteBatch); RewindEffect.Draw(spriteBatch); ColoredCorners.Draw(spriteBatch); if (TMBAW_Game.CurrentGameMode == GameMode.Play && !StoryTracker.InCutscene) { Heart.Draw(spriteBatch); Coin.Draw(spriteBatch); } DarkBackground.Draw(spriteBatch); BlackFade.Draw(spriteBatch); BlackBars.Draw(spriteBatch); }
protected override void DarkMaskSetDepth(int depth) { if (DarkBackground != null) { UIPanel component = DarkBackground.GetComponent <UIPanel>(); if (component != null) { component.depth = depth; } else { Logger.LogFatal(this, "darkBackground must have UIPanel component"); } } }
public static void DisplayHelp <T>(HelpFormat helpFormat, IOutputWriter writer = null, IColors colors = null) where T : new() { if (writer == null) { writer = new ConsoleWriter(); } if (colors == null) { colors = new DarkBackground(); } Colorizer.SetupWriter(writer); Parser.ColorScheme.Set(colors); Parser.DisplayHelp <T>(helpFormat); }
public static T Parse <T>(string argString, IOutputWriter writer = null, IColors colors = null, ParserOptions parserOptions = null) where T : new() { if (writer == null) { writer = new ConsoleWriter(); } if (colors == null) { colors = new DarkBackground(); } Colorizer.SetupWriter(writer); Parser.ColorScheme.Set(colors); return(Parser.Parse <T>(argString, parserOptions)); }
void ReleaseDesignerOutlets() { if (GeenSites != null) { GeenSites.Dispose(); GeenSites = null; } if (ActivityIndicator != null) { ActivityIndicator.Dispose(); ActivityIndicator = null; } if (BottomMenu != null) { BottomMenu.Dispose(); BottomMenu = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (DarkBackground != null) { DarkBackground.Dispose(); DarkBackground = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } if (RegistrationExplanation != null) { RegistrationExplanation.Dispose(); RegistrationExplanation = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (ToevoegenButton != null) { ToevoegenButton.Dispose(); ToevoegenButton = null; } if (TopMenu != null) { TopMenu.Dispose(); TopMenu = null; } }