protected void Awake() { orig_Awake(); Instance = this; VersionLabel.Text = VersionLabel.Text + " | " + ETGMod.BaseUIVersion; }
public static void FoyerAwake(Action <MainMenuFoyerController> orig, MainMenuFoyerController self) { orig(self); RGG.RandomizeStats(); Replacement.RunReplace(m_cachedReplacementTiers); PrimeSaw.HasGottenVice = false; CrownChanger.Change(); }
private void MainMenuUpdateHook(Action <MainMenuFoyerController> orig, MainMenuFoyerController self) { orig(self); if (ExpandSettings.EnableLogo && ((dfTextureSprite)self.TitleCard).Texture.name != ModLogo.name) { ((dfTextureSprite)self.TitleCard).Texture = ModLogo; LogoEnabled = true; } }
// Token: 0x0600001D RID: 29 RVA: 0x00003047 File Offset: 0x00001247 public static void FoyerAwake(Action <MainMenuFoyerController> orig, MainMenuFoyerController self) { orig(self); Action onFoyerAwake = DungeonHooks.OnFoyerAwake; if (onFoyerAwake != null) { onFoyerAwake(); } }
public static void InvokeMainMenuLoadedFirstTime(MainMenuFoyerController menu) { _Logger.Debug(nameof(MainMenuLoadedFirstTime)); MainMenuLoadedFirstTime?.Invoke(menu); }
//private static Hook roomEventsHook = new Hook( // typeof(RoomHandler).GetMethod("ProcessRoomEvents", BindingFlags.Instance | BindingFlags.NonPublic), // typeof(DungeonHooks).GetMethod("ProcessRoomEvents") //); //private static Hook flowHook = new Hook( // typeof(DungeonFlow).GetMethod("NewGetNodeChildrenToBuild", BindingFlags.Instance | BindingFlags.Public), // typeof(DungeonHooks).GetMethod("NewGetNodeChildrenToBuild") //); //private static Hook acquirePrototypeRoomHook = new Hook( // typeof(LoopFlowBuilder).GetMethod("AcquirePrototypeRoom", BindingFlags.Instance | BindingFlags.NonPublic), // typeof(DungeonHooks).GetMethod("AcquirePrototypeRoom") //); //private static Hook processSingleNodeInjectionHook = new Hook( // typeof(LoopFlowBuilder).GetMethod("ProcessSingleNodeInjection", BindingFlags.Instance | BindingFlags.NonPublic), // typeof(DungeonHooks).GetMethod("ProcessSingleNodeInjection") //); //private static Hook sanityCheck //Hook = new Hook( // typeof(LoopFlowBuilder).GetMethod("SanityCheckRooms", BindingFlags.Instance | BindingFlags.NonPublic), // typeof(DungeonHooks).GetMethod("SanityCheckRooms") //); //private static Hook roomTableHook = new Hook( // typeof(WeightedRoomCollection).GetMethod("SelectByWeight", BindingFlags.Instance | BindingFlags.Public), // typeof(DungeonHooks).GetMethod("SelectByWeight") //); public static void FoyerAwake(Action <MainMenuFoyerController> orig, MainMenuFoyerController self) { orig(self); OnFoyerAwake?.Invoke(); }