public MainWindow() { _Model = new M_Main(); InitializeComponent(); DataContext = _Model; }
public VM_Main() { _main = new M_Main(); OnLoading(RequestUrl, CookieHelper.GetCookie()); // _comicCollect = new ObservableCollection<VM_Comic>(); _main.ProgressData.ProgressIndeterminate = true; _main.ProgressData.ProgressStatus = Brushes.Green; _main.ProgressData.ProgressValue = 0; _main.ProgressData.ProgressVisibility = Visibility.Collapsed; }
public static void Load() { Chat.Print("<font color = '#cfa9a'>Welcome to </font><font color = '#ffffff'>[ Nebula ] " + Player.Instance.ChampionName + "</font><font color = '#cfa9a'>. Addon is ready.</font>"); Menu = MainMenu.AddMenu("[ Nebula ] Soraka", "By.Natrium"); Menu.Add("Language.Select", new ComboBox("Language / 언어", 0, "English", "한국어")); Menu.AddVisualFrame(new VsFrame("Img_Lux", System.Drawing.Color.Purple)); Controller language; switch (Menu["Language.Select"].Cast <ComboBox>().CurrentValue) { case 0: language = new Eng(); break; case 1: language = new Kor(); break; default: language = new Eng(); break; } Menu.AddLabel(language.Dictionary[EnumContext.SelectLanguage]); Menu.AddSeparator(10); Menu.AddLabel(language.Dictionary[EnumContext.Text_1]); Menu.AddLabel(language.Dictionary[EnumContext.Text_2]); M_Main = Menu.AddSubMenu(language.Dictionary[EnumContext.Main]); M_Main.AddGroupLabel(language.Dictionary[EnumContext.Combo]); M_Main.Add("Combo_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Main.Add("Combo_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Main.AddSeparator(20); M_Main.AddGroupLabel(language.Dictionary[EnumContext.Harass]); M_Main.Add("Harass_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Main.Add("Harass_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 30)); M_Main.AddSeparator(10); M_Main.Add("Harass_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Main.Add("Harass_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 80)); M_Main.AddSeparator(20); M_Main.AddGroupLabel(language.Dictionary[EnumContext.Flee]); M_Main.Add("Flee_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Main.Add("Flee_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Clear = Menu.AddSubMenu(language.Dictionary[EnumContext.Clear]); M_Clear.AddGroupLabel(language.Dictionary[EnumContext.LaneClear]); M_Clear.Add("Lane_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Clear.Add("Lane_Q_Hit", new Slider(language.Dictionary[EnumContext.LaneQHit] + "{0} ]", 2, 0, 5)); M_Clear.Add("Lane_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 45)); M_Clear.AddSeparator(20); M_Clear.AddGroupLabel(language.Dictionary[EnumContext.JungleClear]); M_Clear.Add("Jungle_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Clear.Add("Jungle_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 25)); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Item = Menu.AddSubMenu(language.Dictionary[EnumContext.Item]); M_Item.AddLabel(language.Dictionary[EnumContext.sModeCombo]); M_Item.Add("Item.BK", new CheckBox(language.Dictionary[EnumContext.sBK])); M_Item.Add("Item.BK.Hp", new Slider(language.Dictionary[EnumContext.sBKHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sBKHp2], 95, 0, 100)); M_Item.AddSeparator(10); M_Item.Add("Item.Mikael", new CheckBox(language.Dictionary[EnumContext.sMikael])); M_Item.Add("Item.Mikael_Op", new ComboBox(language.Dictionary[EnumContext.sMikaelOp], 0, language.Dictionary[EnumContext.sMikaelOp1], language.Dictionary[EnumContext.sMikaelOp2])); M_Item.Add("Fear", new CheckBox(language.Dictionary[EnumContext.sFear])); M_Item.Add("Silence", new CheckBox(language.Dictionary[EnumContext.sSilence])); M_Item.Add("Slow", new CheckBox(language.Dictionary[EnumContext.sSlow])); M_Item.Add("Snare", new CheckBox(language.Dictionary[EnumContext.sSnare])); M_Item.Add("Stun", new CheckBox(language.Dictionary[EnumContext.sStun])); M_Item.Add("Taunt", new CheckBox(language.Dictionary[EnumContext.sTaunt])); M_Item.AddLabel(language.Dictionary[EnumContext.sAlways]); M_Item.Add("Item.Solari", new CheckBox(language.Dictionary[EnumContext.sSolari])); M_Item.Add("Item.Solari.MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 50)); M_Item.Add("Item.Solari.AMyHp", new Slider(language.Dictionary[EnumContext.sSolariAMyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sSolariAMyHp2], 25)); M_Item.Add("Item.Solari.TeamHp", new Slider(language.Dictionary[EnumContext.TeamHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.TeamHp2], 65)); M_Item.AddSeparator(10); M_Item.Add("Item.Redemption", new CheckBox(language.Dictionary[EnumContext.sRedemption])); M_Item.Add("Item.Redemption.MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 50, 0, 100)); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Auto = Menu.AddSubMenu(language.Dictionary[EnumContext.Auto]); M_Auto.Add("Auto_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Auto.Add("Auto_Q_Mode", new ComboBox(language.Dictionary[EnumContext.AutoQMode], 0, language.Dictionary[EnumContext.AutoQModeOp1], language.Dictionary[EnumContext.AutoQModeOp2])); M_Auto.Add("Auto_Q_Hit", new Slider(language.Dictionary[EnumContext.AutoQHit], 65)); M_Auto.Add("Auto_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 55)); M_Auto.AddSeparator(10); M_Auto.Add("Auto_W", new CheckBox(language.Dictionary[EnumContext.SpellW])); M_Auto.Add("Auto_W_Semi", new KeyBind(language.Dictionary[EnumContext.AutoWSemi], false, KeyBind.BindTypes.HoldActive, 'W')); M_Auto.Add("Auto_W_Target", new ComboBox(language.Dictionary[EnumContext.AutoWOp], 0, language.Dictionary[EnumContext.AutoWOp1], language.Dictionary[EnumContext.AutoWOp2], language.Dictionary[EnumContext.AutoWOp3])); foreach (var MyTeam in EntityManager.Heroes.Allies.Where(x => !x.IsMe)) { M_Auto.Add("Auto_W_" + MyTeam.ChampionName, new CheckBox(MyTeam.ChampionName)); } M_Auto.Add("Auto_W_MyHp", new Slider(language.Dictionary[EnumContext.AutoWMyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.AutoWMyHp2], 50)); M_Auto.Add("Auto_W_TeamHp", new Slider(language.Dictionary[EnumContext.TeamHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.TeamHp2], 65)); M_Auto.AddSeparator(10); M_Auto.Add("Auto_R", new CheckBox(language.Dictionary[EnumContext.SpellR])); M_Auto.Add("Auto_R_MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 35)); M_Auto.Add("Auto_R_TeamHp", new Slider(language.Dictionary[EnumContext.TeamHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.TeamHp2], 35)); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Misc = Menu.AddSubMenu(language.Dictionary[EnumContext.Msic]); M_Misc.Add("Misc_Ignite", new CheckBox(language.Dictionary[EnumContext.AutoIgnite])); M_Misc.Add("Misc_KillSt", new CheckBox(language.Dictionary[EnumContext.KillSteal])); M_Misc.AddSeparator(20); M_Misc.AddLabel("Gapcloser"); M_Misc.Add("Misc_Gap_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Misc.Add("Misc_Gap_E", new CheckBox(language.Dictionary[EnumContext.SpellE], false)); M_Misc.AddSeparator(20); M_Misc.AddLabel("Interrupt"); M_Misc.Add("Misc_Int_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ], false)); M_Misc.Add("Misc_Int_Q_Lv", new ComboBox(language.Dictionary[EnumContext.InterruptLv], 0, language.Dictionary[EnumContext.InterruptLv1], language.Dictionary[EnumContext.InterruptLv2])); M_Misc.Add("Misc_Int_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Misc.Add("Misc_Int_E_Lv", new ComboBox(language.Dictionary[EnumContext.InterruptLv], 1, language.Dictionary[EnumContext.InterruptLv1], language.Dictionary[EnumContext.InterruptLv2])); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Draw = Menu.AddSubMenu(language.Dictionary[EnumContext.Draw]); M_Draw.Add("Draw_Killable", new CheckBox(language.Dictionary[EnumContext.DrawText])); M_Draw.AddSeparator(10); M_Draw.Add("Draw_Q", new CheckBox(language.Dictionary[EnumContext.DrawQ])); M_Draw.AddSeparator(10); M_Draw.Add("Draw_W", new CheckBox(language.Dictionary[EnumContext.DrawW])); M_Draw.AddSeparator(10); M_Draw.Add("Draw_E", new CheckBox(language.Dictionary[EnumContext.DrawE])); CheckVersion.CheckUpdate(); Gapcloser.OnGapcloser += OnGapcloser; Interrupter.OnInterruptableSpell += OnInterruptableSpell; Obj_AI_Base.OnProcessSpellCast += Mode_Item.OnProcessSpellCast; Obj_AI_Base.OnBasicAttack += Mode_Item.OnBasicAttack; Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; }
public static void Load() { Chat.Print("<font color = '#20b2aa'>Welcome to </font><font color = '#ffffff'>[ Nebula ] " + Player.Instance.ChampionName + "</font><font color = '#20b2aa'>. Addon is ready.</font>"); CheckVersion.CheckUpdate(); Menu = MainMenu.AddMenu("[ Nebula ] Nasus", "By.Natrium"); Menu.Add("Language.Select", new ComboBox("Language / 언어", 0, "English", "한국어")); Menu.AddVisualFrame(new VsFrame("Ward.Preview", System.Drawing.Color.Purple)); Controller language; switch (Menu["Language.Select"].Cast <ComboBox>().CurrentValue) { case 0: language = new Eng(); break; case 1: language = new Kor(); break; default: language = new Eng(); break; } Menu.AddLabel(language.Dictionary[EnumContext.SelectLanguage]); Menu.AddSeparator(10); Menu.AddLabel(language.Dictionary[EnumContext.Text_1]); Menu.AddLabel(language.Dictionary[EnumContext.Text_2]); M_Main = Menu.AddSubMenu(language.Dictionary[EnumContext.Main]); M_Main.AddGroupLabel(language.Dictionary[EnumContext.Combo]); M_Main.Add("Combo_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Main.Add("Combo_W", new CheckBox(language.Dictionary[EnumContext.SpellW])); M_Main.Add("Combo_W_Dis", new Slider(language.Dictionary[EnumContext.ComboWDis1] + "[ {0} ]" + language.Dictionary[EnumContext.ComboWDis2], 350, 0, 600)); M_Main.Add("Combo_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Main.Add("Combo_R", new CheckBox(language.Dictionary[EnumContext.SpellR])); M_Main.Add("Combo_R_Hp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 55)); M_Main.AddSeparator(20); M_Main.AddGroupLabel(language.Dictionary[EnumContext.Harass]); M_Main.Add("Harass_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Main.Add("Harass_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 30)); M_Main.AddSeparator(10); M_Main.Add("Harass_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Main.Add("Harass_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 80)); M_Main.AddSeparator(10); M_Main.Add("Harass_R", new CheckBox(language.Dictionary[EnumContext.SpellR])); M_Main.Add("Harass_R_Hp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 55)); M_Main.Add("Harass_R_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 25)); M_Main.AddSeparator(20); M_Main.AddGroupLabel(language.Dictionary[EnumContext.Flee]); M_Main.Add("Flee_W", new CheckBox(language.Dictionary[EnumContext.SpellW])); M_Main.Add("Flee_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Main.Add("Flee_R", new CheckBox(language.Dictionary[EnumContext.SpellR])); M_Main.Add("Flee_R_Hp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 35)); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Clear = Menu.AddSubMenu(language.Dictionary[EnumContext.Clear]); M_Clear.AddGroupLabel(language.Dictionary[EnumContext.LaneClear]); M_Clear.Add("Lane_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Clear.Add("Lane_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 45)); M_Clear.AddSeparator(10); M_Clear.Add("Lane_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Clear.Add("Lane_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 85)); M_Clear.AddSeparator(20); M_Clear.AddGroupLabel(language.Dictionary[EnumContext.JungleClear]); M_Clear.Add("Jungle_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ])); M_Clear.Add("Jungle_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 25)); M_Clear.Add("Jungle_E", new CheckBox(language.Dictionary[EnumContext.SpellE])); M_Clear.Add("Jungle_E_Hit", new Slider(language.Dictionary[EnumContext.JungleHitNum1] + "[ {0} ]" + language.Dictionary[EnumContext.JungleHitNum2], 2, 0, 5)); M_Clear.Add("Jungle_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 75)); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Item = Menu.AddSubMenu(language.Dictionary[EnumContext.Item]); M_Item.AddLabel(language.Dictionary[EnumContext.sModeCombo]); M_Item.Add("Item.Youmuu", new CheckBox(language.Dictionary[EnumContext.sYoummu])); M_Item.Add("Item.BK", new CheckBox(language.Dictionary[EnumContext.sBK])); M_Item.Add("Item.BK.Hp", new Slider(language.Dictionary[EnumContext.sBKHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sBKHp2], 95, 0, 100)); M_Item.AddSeparator(10); M_Item.Add("QSS", new CheckBox(language.Dictionary[EnumContext.sQSS])); M_Item.Add("Scimitar", new CheckBox(language.Dictionary[EnumContext.sScimiter])); M_Item.Add("CastDelay", new Slider("{0}ms" + language.Dictionary[EnumContext.sDelay], 350, 0, 1200)); M_Item.AddSeparator(10); M_Item.Add("Blind", new CheckBox(language.Dictionary[EnumContext.sBlind])); M_Item.Add("Charm", new CheckBox(language.Dictionary[EnumContext.sCharm])); M_Item.Add("Fear", new CheckBox(language.Dictionary[EnumContext.sFear])); M_Item.Add("Ploymorph", new CheckBox(language.Dictionary[EnumContext.sPloymorph])); M_Item.Add("Poisons", new CheckBox(language.Dictionary[EnumContext.sPoisons])); M_Item.Add("Silence", new CheckBox(language.Dictionary[EnumContext.sSilence])); M_Item.Add("Slow", new CheckBox(language.Dictionary[EnumContext.sSlow])); M_Item.Add("Stun", new CheckBox(language.Dictionary[EnumContext.sStun])); M_Item.Add("Supression", new CheckBox(language.Dictionary[EnumContext.sSupression])); M_Item.Add("Taunt", new CheckBox(language.Dictionary[EnumContext.sTaunt])); M_Item.Add("Snare", new CheckBox(language.Dictionary[EnumContext.sSnare])); M_Item.AddSeparator(10); M_Item.AddLabel(language.Dictionary[EnumContext.sAlways]); M_Item.Add("Item.Redemption", new CheckBox(language.Dictionary[EnumContext.sRedemption])); M_Item.Add("Item.Redemption.MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 50, 0, 100)); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Misc = Menu.AddSubMenu(language.Dictionary[EnumContext.Msic]); M_Misc.Add("Misc_Ignite", new CheckBox(language.Dictionary[EnumContext.AutoIgnite])); M_Misc.AddSeparator(10); M_Misc.Add("Misc_KillSt", new CheckBox(language.Dictionary[EnumContext.KillSteal])); M_Misc.Add("Misc_KillStE", new ComboBox(language.Dictionary[EnumContext.KillOption], 0, language.Dictionary[EnumContext.KillText1], language.Dictionary[EnumContext.KillText2])); M_Misc.AddSeparator(10); M_Misc.Add("Misc_JungleSt", new CheckBox(language.Dictionary[EnumContext.JungleSteal])); //===================================================================================================================================================================// //===================================================================================================================================================================// M_Draw = Menu.AddSubMenu(language.Dictionary[EnumContext.Draw]); M_Draw.Add("Draw_Killable", new CheckBox(language.Dictionary[EnumContext.DrawText])); M_Draw.AddSeparator(10); M_Draw.Add("Draw_Q", new CheckBox(language.Dictionary[EnumContext.DrawQ])); M_Draw.AddSeparator(10); M_Draw.Add("Draw_W", new CheckBox(language.Dictionary[EnumContext.DrawW])); M_Draw.AddSeparator(10); M_Draw.Add("Draw_E", new CheckBox(language.Dictionary[EnumContext.DrawE])); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; }