public static void Init() { thisWindowReference = EditorWindow.GetWindow(typeof(EditorWindowBase)); windowWidth = EditorWindow.focusedWindow.position.width; windowHeight = EditorWindow.focusedWindow.position.height; buttonMenuRect = new Rect(0.01f * windowWidth, 0.01f * windowHeight, windowWidth * 0.98f, windowHeight * 0.10f); leftMenuRect = new Rect(0.01f * windowWidth, 0.12f * windowHeight, windowWidth * 0.14f, windowHeight * 0.87f); windowRect = new Rect(0.16f * windowWidth, 0.12f * windowHeight, windowWidth * 0.83f, windowHeight * 0.85f); leftSubMenuSkin = (GUISkin)Resources.Load("Editor/EditorLeftMenuItemSkin", typeof(GUISkin)); leftSubMenuConcreteItemSkin = (GUISkin)Resources.Load("Editor/EditorLeftMenuItemSkinConcreteOptions", typeof(GUISkin)); redoTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/redo", typeof(Texture2D)); undoTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/undo", typeof(Texture2D)); addTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/addNode", typeof(Texture2D)); deleteImg = (Texture2D)Resources.Load("EAdventureData/img/icons/deleteContent", typeof(Texture2D)); duplicateImg = (Texture2D)Resources.Load("EAdventureData/img/icons/duplicateNode", typeof(Texture2D)); sceneTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/scenes", typeof(Texture2D)); cutsceneTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/cutscenes", typeof(Texture2D)); bookTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/books", typeof(Texture2D)); itemTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/items", typeof(Texture2D)); setItemTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/Atrezzo-List-1", typeof(Texture2D)); playerTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/player", typeof(Texture2D)); characterTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/npcs", typeof(Texture2D)); conversationTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/conversations", typeof(Texture2D)); advancedTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/advanced", typeof(Texture2D)); adaptationTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/adaptationProfiles", typeof(Texture2D)); assessmentTexture = (Texture2D)Resources.Load("EAdventureData/img/icons/assessmentProfiles", typeof(Texture2D)); thisWindowReference.Show(); fileMenu = new FileMenu(); editMenu = new EditMenu(); adventureMenu = new AdventureMenu(); chaptersMenu = new ChaptersMenu(); runMenu = new RunMenu(); configurationMenu = new ConfigurationMenu(); aboutMenu = new AboutMenu(); InitGUI(); }
private static void Loading_OnLoadingComplete(EventArgs args) { if (ObjectManager.Player.BaseSkinName != "Leblanc") { return; } Q = new Spell.Targeted(SpellSlot.Q, 720); W = new Spell.Skillshot(SpellSlot.W, 760, SkillShotType.Circular, int.MaxValue, 1450, 220); E = new Spell.Skillshot(SpellSlot.E, 900, SkillShotType.Linear, 0, 1650, 55); R = new Spell.Targeted(SpellSlot.R, 720); IgniteSlot = ObjectManager.Player.GetSpellSlotFromName("summonerdot"); LeblancMenu = MainMenu.AddMenu("Lebranku", "Lebranku"); ComboMenu = LeblancMenu.AddSubMenu("Combo", "Combo"); ComboMenu.Add("showcomboinfo", new CheckBox("Show Combo Info")); ComboMenu.AddSeparator(); StringList(ComboMenu, "ComboSetOption", "Combo", new[] { "Auto", "Q-R Combo", "W-R Combo", "E-R Combo" }, 1); StringList(ComboMenu, "ComboSetEHitCh", "E Hit", new[] { "Low", "Medium", "High", "Dashing", "Immobile" }, 0); ComboMenu.Add("ComboDblStun", new KeyBind("Double Stun", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0])); HarassMenu = LeblancMenu.AddSubMenu("Harass", "harass"); HarassMenu.Add("harassshowinfo", new CheckBox("Show Harass info")); HarassMenu.AddSeparator(); HarassMenu.Add("useqharass", new CheckBox("Use Q")); HarassMenu.Add("HarassUseTQ", new KeyBind("Use Q (toggle)", false, KeyBind.BindTypes.PressToggle, "J".ToCharArray()[0])); HarassMenu.Add("HarassManaQ", new Slider("Q Min. Mana Percent", 50, 100, 0)); HarassMenu.Add("usewharass", new CheckBox("Use W")); HarassMenu.Add("HarassUseTW", new KeyBind("Use W (toggle)", false, KeyBind.BindTypes.PressToggle, "K".ToCharArray()[0])); HarassMenu.Add("HarassManaW", new Slider("W Min. Mana Percent", 50, 100, 0)); HarassMenu.Add("useeharass", new CheckBox("Use E")); HarassMenu.Add("HarassUseTE", new KeyBind("Use E (toggle)", false, KeyBind.BindTypes.PressToggle, "L".ToCharArray()[0])); HarassMenu.Add("HarassManaE", new Slider("E Min. Mana Percent", 50, 100, 0)); KillStealMenu = LeblancMenu.AddSubMenu("Kill Steal", "killsteal"); KillStealMenu.AddSeparator(); KillStealMenu.Add("KUse_q", new CheckBox("Use Q", false)); KillStealMenu.Add("KUse_w", new CheckBox("Use W", false)); KillStealMenu.Add("KUse_e", new CheckBox("Use E", false)); KillStealMenu.AddSeparator(); KillStealMenu.Add("KUse_q2", new CheckBox("Use RQ", false)); KillStealMenu.Add("KUse_w2", new CheckBox("Use RW", false)); KillStealMenu.Add("KUse_wr", new CheckBox("Use WR", false)); KillStealMenu.Add("KUse_e2", new CheckBox("Use RE", false)); DrawingsMenu = LeblancMenu.AddSubMenu("Drawings", "drawings"); DrawingsMenu.Add("drawq", new CheckBox("Draw Q")); DrawingsMenu.Add("draww", new CheckBox("Draw W")); DrawingsMenu.Add("drawe", new CheckBox("Draw E")); DrawingsMenu.Add("drawdamagebar", new CheckBox("Draw Damage Bar indicator")); DrawingsMenu.Add("activeerange", new CheckBox("Draw Active E range")); DrawingsMenu.Add("wqrange", new CheckBox("W+Q Range")); RunMenu = LeblancMenu.AddSubMenu("Run", "Runmenu"); RunMenu.Add("RunUseW", new CheckBox("Use W")); RunMenu.Add("RunUseR", new CheckBox("Use R")); ExtrasMenu = LeblancMenu.AddSubMenu("Extras", "Extras"); ExtrasMenu.Add("interruptspells", new CheckBox("Interrupt Spells")); Game.OnTick += Game_OnTick; Game.OnUpdate += Game_OnUpdate; Drawing.OnEndScene += OnEndScene.Drawing_OnEndScene; Drawing.OnDraw += Drawing_OnDraw; GameObject.OnCreate += GameObject_OnCreate; GameObject.OnDelete += GameObject_OnDelete; Interrupter.OnInterruptableSpell += Interrupter_OnPosibleToInterrupt; }