public bool ChangeSeason(RenderMaster.PlayfieldRenderPass enChangeTo, Vector2 v2Source) { if (this.iCoolDown > 0 || this.enCurrentSeason == enChangeTo) { return false; } this.v2Source = v2Source; string sSeason = "summer"; if (enChangeTo == RenderMaster.PlayfieldRenderPass.Season_Fall) { sSeason = "fall"; } else if (enChangeTo == RenderMaster.PlayfieldRenderPass.Season_Winter) { sSeason = "winter"; } Program.game._EffectMaster_AddEffect(new Effect_SeasonChangeParticleCircle(sSeason, v2Source)); this.iCoolDown = 80; this.iCounter = 0; RenderMaster.enPlayfieldPassTwo = this.enCurrentSeason; RenderMaster.enPlayfieldPassOne = enChangeTo; this.enCurrentSeason = enChangeTo; Program.game.xGameSessionData.dSeasons[Program.game.xLevelMaster.xCurrentLevel.enZone] = enChangeTo; if (this.enCurrentSeason == RenderMaster.PlayfieldRenderPass.Season_Winter) { this.DisableWaterSurfaces(); } else { this.EnableWaterSurfaces(); } Program.game.xRenderMaster.xPlayfieldPassTransition = new RenderMaster.SourceCircleTransition(v2Source); if (this.denxCloseGatesDuring.ContainsKey(this.enCurrentSeason)) { foreach (Gate xMos in this.denxCloseGatesDuring[this.enCurrentSeason]) { xMos.Close(); } } if (this.denxOpenGatesDuring.ContainsKey(this.enCurrentSeason)) { foreach (Gate xMos2 in this.denxOpenGatesDuring[this.enCurrentSeason]) { xMos2.Open(); } } Program.game._Trigger_HandleTriggerEvent(FlagCodex.FlagID._MainStory_SeasonChange_SeasonChangedTrigger); if (CAS.NetworkRole == NetworkHelperInterface.NetworkRole.Server) { base.SendNetworkInstruction(0, new float[] { (float)enChangeTo, v2Source.X, v2Source.Y }); } return true; }
public Effect_SnowOverlay(RenderMaster.SubRenderLayer enRenderLayer, Vector2 v2ParallaxFactor) { this.v2ParallaxFactor = v2ParallaxFactor; this.enRenderLayer = enRenderLayer; int x = 0; int y = 0; int xPlus = 40; int yPlus = 40; while (y < 500) { while (x < 700) { x += Program.game.randomInVisual.Next(xPlus) + xPlus; RC_SnowOverlay xNew = new RC_SnowOverlay(v2ParallaxFactor); xNew.v2StartPos = new Vector2((float)x, (float)(y + Program.game.randomInVisual.Next(yPlus) + 20000)); this.lxBeamParts.Add(xNew); Program.GetTheGame().xRenderMaster.RegisterComponent(enRenderLayer, xNew); } x = 0; y += yPlus; } }
public void ChangeOrbColor(RenderMaster.PlayfieldRenderPass enSeason) { bool bChanged = this.enChangeTo != enSeason; RenderMaster.PlayfieldRenderPass enOld = this.enChangeTo; this.enChangeTo = enSeason; if (bChanged) { if (enSeason == RenderMaster.PlayfieldRenderPass.Season_Summer) { this.xRenderComponent.SwitchAnimation(13); float[] array = new float[2]; array[0] = 1f; base.SendNetworkInstruction(array); this.xRenderComponent.dixAnimations[0] = this.xRenderComponent.dixAnimations[10]; this.xRenderComponent.dixAnimations[1] = this.xRenderComponent.dixAnimations[11]; this.xRenderComponent.dixAnimations[2] = this.xRenderComponent.dixAnimations[12]; this.enType = DynamicEnvironmentCodex.ObjectTypes.Puzzlish_SeasonChangeOrb_Summer; return; } if (enSeason == RenderMaster.PlayfieldRenderPass.Season_Fall) { this.xRenderComponent.SwitchAnimation(23); base.SendNetworkInstruction(new float[] { 1f, 1f }); this.xRenderComponent.dixAnimations[0] = this.xRenderComponent.dixAnimations[20]; this.xRenderComponent.dixAnimations[1] = this.xRenderComponent.dixAnimations[21]; this.xRenderComponent.dixAnimations[2] = this.xRenderComponent.dixAnimations[22]; this.enType = DynamicEnvironmentCodex.ObjectTypes.Puzzlish_SeasonChangeOrb_Autumn; return; } if (enSeason == RenderMaster.PlayfieldRenderPass.Season_Winter) { this.xRenderComponent.SwitchAnimation(33); base.SendNetworkInstruction(new float[] { 1f, 2f }); this.xRenderComponent.dixAnimations[0] = this.xRenderComponent.dixAnimations[30]; this.xRenderComponent.dixAnimations[1] = this.xRenderComponent.dixAnimations[31]; this.xRenderComponent.dixAnimations[2] = this.xRenderComponent.dixAnimations[32]; this.enType = DynamicEnvironmentCodex.ObjectTypes.Puzzlish_SeasonChangeOrb_Winter; return; } if (enSeason == RenderMaster.PlayfieldRenderPass.Standard) { if (enOld == RenderMaster.PlayfieldRenderPass.Season_Summer) { this.xRenderComponent.SwitchAnimation(43); } else if (enOld == RenderMaster.PlayfieldRenderPass.Season_Fall) { this.xRenderComponent.SwitchAnimation(44); } else if (enOld == RenderMaster.PlayfieldRenderPass.Season_Winter) { this.xRenderComponent.SwitchAnimation(45); } base.SendNetworkInstruction(new float[] { 1f, 3f }); this.xRenderComponent.dixAnimations[0] = this.xRenderComponent.dixAnimations[40]; this.xRenderComponent.dixAnimations[1] = this.xRenderComponent.dixAnimations[41]; this.xRenderComponent.dixAnimations[2] = this.xRenderComponent.dixAnimations[42]; this.enType = DynamicEnvironmentCodex.ObjectTypes.Puzzlish_SeasonChangeOrb_Dead; } } }
public void AddSurfaceMap(Texture2D tx, Point v2TopLeft, RenderMaster.PlayfieldRenderPass enPass) { if (!this.ddxv2SeasonOverrides.ContainsKey(enPass)) { this.ddxv2SeasonOverrides[enPass] = new Dictionary<Texture2D, Point>(); } this.ddxv2SeasonOverrides[enPass].Add(tx, v2TopLeft); }
public void ReArrange(RenderComponent xNewRC, RenderMaster.SubRenderLayer enLayer) { this.xRenderComponent.Unregister(); Program.game.xRenderMaster.RegisterComponent(enLayer, xNewRC); this.xRenderComponent = xNewRC; }
public void LoadMainMenuAssets(string sPath, RenderMaster.LocalizedTextures xDefault) { sPath += "/"; this.txTestTextensMask = new StaticTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Full Screen", StaticTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f); if ((this.txMainMenu_Button_Back = this.LoadMos(sPath + "MainMenu/back.png")) == null) { this.txMainMenu_Button_Back = xDefault.txMainMenu_Button_Back; } if ((this.txMainMenu_Button_Start = this.LoadMos(sPath + "MainMenu/start.png")) == null) { this.txMainMenu_Button_Start = xDefault.txMainMenu_Button_Start; } if ((this.txMainMenu_Button_Delete = this.LoadMos(sPath + "MainMenu/delete.png")) == null) { this.txMainMenu_Button_Delete = xDefault.txMainMenu_Button_Delete; } if ((this.txMainMenu_Button_StartGame = this.LoadMos(sPath + "MainMenu/startgame.png")) == null) { this.txMainMenu_Button_StartGame = xDefault.txMainMenu_Button_StartGame; } if ((this.txMainMenu_Button_Apply = this.LoadMos(sPath + "MainMenu/apply.png")) == null) { this.txMainMenu_Button_Apply = xDefault.txMainMenu_Button_Apply; } this.lxLoaded.Add(this.txMainMenu_StoryMode = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_StoryMode", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_HighScore = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Highscore", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_UpdateSettingsDoubleSize = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana20), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_UpdateSettings", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_PatchNotesDoubleSize = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana20), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_PatchNotes", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_HighScoreDoubleSize = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana20), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Highscore", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_HighScoreDoubleSize_Goldie = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana20), Program.game.Content.Load<Texture2D>("Fonts/gradients/goldie"), "Menus", "MainMenu_Highscore", LibraryTextAsTexture.TextType.Outlined, new Color(59, 32, 5), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_ArcadeMode = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_ArcadeMode", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Quit = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Quit", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_SinglePlayer = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_SinglePlayer", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Multiplayer", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_DesignHero = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CreateCharacter", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Randomize = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Randomize", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_SwitchGender = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_SwitchGender", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_Randomize = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Randomize", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_Hairstyle = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_Hairstyle", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_HairColor = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_HairColor", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_SkinColor = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_SkinColor", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_Scarf = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_Scarf", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_Sweater = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_Sweater", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_Pants = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_Pants", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_CharacterCreation_EnterName = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_CC_EnterName", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_EnterIP = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_EnterIP", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_EnterPassword = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_EnterPassword", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_HostGame = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_HostGame", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_ItemShare = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_ItemShare", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_JoinGame = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_JoinGame", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_Mentorship = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Mentorship_Title", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_SetPassword = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_SetPassword", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Multiplayer_PreviousServers = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Previous", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options_FullScreen = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options_FullScreen", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options_KeyConfig = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options_KeyConfig", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options_Language = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options_Language", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options_MessageSpeed = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options_MessageSpeed", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options_MusicVolume = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options_MusicVolume", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options_SoundVolume = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options_SoundVolume", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); this.lxLoaded.Add(this.txMainMenu_Options_Zoom = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("gradienttest2"), "Menus", "MainMenu_Options_Zoom", LibraryTextAsTexture.TextType.Outlined, new Color(16, 86, 117), 1f, 1f, -100)); if ((this.txMainMenu_Options_Yes = this.LoadMos(sPath + "MainMenu/Options/yes.png")) == null) { this.txMainMenu_Options_Yes = xDefault.txMainMenu_Options_Yes; } if ((this.txMainMenu_Options_No = this.LoadMos(sPath + "MainMenu/Options/no.png")) == null) { this.txMainMenu_Options_No = xDefault.txMainMenu_Options_No; } if ((this.txMainMenu_Options_WindowFull = this.LoadMos(sPath + "MainMenu/Options/windowfull.png")) == null) { this.txMainMenu_Options_WindowFull = xDefault.txMainMenu_Options_WindowFull; } if ((this.txMainMenu_Options_Slow = this.LoadMos(sPath + "MainMenu/Options/slow.png")) == null) { this.txMainMenu_Options_Slow = xDefault.txMainMenu_Options_Slow; } if ((this.txMainMenu_Options_Normal = this.LoadMos(sPath + "MainMenu/Options/normal.png")) == null) { this.txMainMenu_Options_Normal = xDefault.txMainMenu_Options_Normal; } if ((this.txMainMenu_Options_Instant = this.LoadMos(sPath + "MainMenu/Options/instant.png")) == null) { this.txMainMenu_Options_Instant = xDefault.txMainMenu_Options_Instant; } }
public void LoadInGameAssets(string sPath, RenderMaster.LocalizedTextures xDefault) { sPath += "/"; this.lxLoaded.Add(this.txInGameMenu_Character_PetMenu = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/goldie_bold8"), "Menus", "InGameMenu_PetMenuTitle", LibraryTextAsTexture.TextType.Outlined, new Color(42, 25, 7), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Options_FullScreen = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "MainMenu_Options_FullScreen", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Options_Difficulty = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "MainMenu_Options_Difficulty", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Options_MessageSpeed = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "MainMenu_Options_MessageSpeed", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Options_MusicVolume = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "MainMenu_Options_MusicVolume", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Options_Options = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "MainMenu_Options", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Options_SoundVolume = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "MainMenu_Options_SoundVolume", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Options_Zoom = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "MainMenu_Options_Zoom", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Journal_Cards = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "InGameMenu_Journal_CardsTitle", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Journal_Codex = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "InGameMenu_Journal_CodexTitle", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txInGameMenu_Journal_Quests = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "Menus", "InGameMenu_Journal_QuestsTitle", LibraryTextAsTexture.TextType.Outlined, new Color(61, 46, 22), 1f, 1f, 1)); this.lxLoaded.Add(this.txNotices_NewItemsFromArcadeMode = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/ingamemenu_title"), "NoticesAndTips", "NewItemsFromArcadeMode", LibraryTextAsTexture.TextType.Outlined, Color.Black, 1f, 1f, 0)); this.lxLoaded.Add(this.txNotice_NoShield = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/crimson_bold8"), "NoticesAndTips", "BrokenShield", LibraryTextAsTexture.TextType.Outlined, new Color(26, 0, 7), 1f, 1f, 1)); this.lxLoaded.Add(this.txNotice_EPTooLow = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/crimson_bold8"), "NoticesAndTips", "EPTooLow", LibraryTextAsTexture.TextType.Outlined, new Color(26, 0, 7), 1f, 1f, 1)); this.lxLoaded.Add(this.txNotice_SRankHeal = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/lightgreenie_bold8"), "NoticesAndTips", "SRankHeal", LibraryTextAsTexture.TextType.Outlined, new Color(18, 33, 9), 1f, 1f, 1)); this.lxLoaded.Add(this.txArcadeMode_NewBest = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("Fonts/gradients/goldie"), "Menus", "ArcadeMode_NewBest", LibraryTextAsTexture.TextType.Outlined, Color.Black, 1f, 1f, -100)); this.lxLoaded.Add(this.txArcadeMode_Nurse_Gold = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/goldie_bold8"), "Menus", "InGameMenu_Gold", LibraryTextAsTexture.TextType.Outlined, new Color(72, 29, 5), 1f, 1f, -100)); this.lxLoaded.Add(this.txArcadeMode_Nurse_Title = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("Fonts/gradients/goldie"), "NoticesAndTips", "Shop_GrindeaHealthcare_Title", LibraryTextAsTexture.TextType.Outlined, Color.Black, 1f, 1f, -100)); this.lxLoaded.Add(this.txArcadeMode_BulletinBoard_StatsTitle = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana20), Program.game.Content.Load<Texture2D>("Fonts/gradients/brownie"), "Menus", "InGameMenu_LeftInfo_StatsTitle", LibraryTextAsTexture.TextType.Outlined, new Color(59, 32, 5), 1f, 1f, -100)); this.lxLoaded.Add(this.txArcadeMode_BulletinBoard_TrophyTitle = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Verdana12), Program.game.Content.Load<Texture2D>("Fonts/gradients/brownie"), "Menus", "InGameMenu_Journal_CategoryTrophies", LibraryTextAsTexture.TextType.Outlined, new Color(59, 32, 5), 1f, 1f, -100)); this.lxLoaded.Add(this.txArcadeMode_BulletinBoard_AchievementTitle = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/brownie_bold8"), "Menus", "InGameMenu_Journal_TrophiesAchievement", LibraryTextAsTexture.TextType.Outlined, new Color(50, 20, 3), 1f, 1f, -100)); this.lxLoaded.Add(this.txArcadeMode_BulletinBoard_RewardTitle = new LibraryTextAsTexture(FontManager.GetFont(FontManager.FontType.Bold8Spacing1), Program.game.Content.Load<Texture2D>("Fonts/gradients/brownie_bold8"), "Menus", "InGameMenu_Journal_TrophiesReward", LibraryTextAsTexture.TextType.Outlined, new Color(50, 20, 3), 1f, 1f, -100)); }
public LocalizedTextures(string sPath, RenderMaster.LocalizedTextures xDefault) { this.LoadMainMenuAssets(sPath, xDefault); this.LoadInGameAssets(sPath, xDefault); }
public void RegisterComponent(RenderMaster.SubRenderLayer enSubRenderLayer, RenderComponent toAdd) { if (enSubRenderLayer == RenderMaster.SubRenderLayer.Sorted) { this.RegisterSortedRenderComponent(toAdd); return; } if (enSubRenderLayer == RenderMaster.SubRenderLayer.AboveAll) { this.RegisterAboveAllRenderComponent(toAdd); return; } if (enSubRenderLayer == RenderMaster.SubRenderLayer.AboveSorted) { this.RegisterAboveSorted(toAdd); return; } if (enSubRenderLayer == RenderMaster.SubRenderLayer.Background) { this.RegisterBackground(toAdd); return; } if (enSubRenderLayer == RenderMaster.SubRenderLayer.Parallax) { this.RegisterParallax(toAdd); return; } if (enSubRenderLayer == RenderMaster.SubRenderLayer.ShadowLayer) { this.RegisterShadowLayer(toAdd, 60); return; } if (enSubRenderLayer == RenderMaster.SubRenderLayer.BelowSorted) { this.RegisterBelowSorted(toAdd); return; } if (enSubRenderLayer == RenderMaster.SubRenderLayer.GUI) { this.RegisterGUIRenderComponent(toAdd); } }
public bool CheckForRendercomponent(RenderComponent p_toCheckFor, RenderMaster.SubRenderLayer p_enLayer) { return p_enLayer == RenderMaster.SubRenderLayer.Sorted && this.lxSortedRenderComponents.Contains(p_toCheckFor); }