public static void checkINI(int layout) { var path = CaptureLib.GetSettingValue_String("Layout" + layout, "path", setFile.FullName); if (path != "None") { var Img = new J_Image() { Layout = layout, Image = new Render.Sprite(path, new Vector2(0, 0)) { VisibleCondition = c => baseMenu.Item("visible" + layout).GetValue <bool>() } }; Img.Image.Add(); Images.Add(Img); } }
public static void addlayout() { var temp = new LeagueSharp.Common.Menu("Layout" + layoutnum, "Layout" + layoutnum); baseMenu.AddSubMenu(temp); temp.AddItem(new LeagueSharp.Common.MenuItem("visible" + layoutnum, "Visible").SetValue(true)); var fileitem = new LeagueSharp.Common.MenuItem("file" + layoutnum, "File:").SetValue(false); if (setFile.Exists) { var path = CaptureLib.GetSettingValue_String("Layout" + layoutnum, "path", setFile.FullName); fileitem.DisplayName = "File : " + path.Split('\\').Last(); } temp.AddItem(fileitem); var smoothvalue = new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" , "-10", "-9", "-8", "-7", "-6", "-5", "-4", "-3", "-2", "-1" }; var smoothvalue2 = new[] { "0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100" , "-100", "-90", "-80", "-70", "-60", "-50", "-40", "-30", "-20", "-10" }; temp.AddItem(new LeagueSharp.Common.MenuItem("reset" + layoutnum, "Reset").SetValue(false)); temp.AddItem(new LeagueSharp.Common.MenuItem("line" + layoutnum, "Coordinate--------------------------------------------------------")); temp.AddItem(new LeagueSharp.Common.MenuItem("X" + layoutnum, "X").SetValue <Slider>(new Slider(200, 1, 2100))); temp.AddItem(new LeagueSharp.Common.MenuItem("X_smooth" + layoutnum, "SmoothX").SetValue(new StringList(smoothvalue))); temp.AddItem(new LeagueSharp.Common.MenuItem("Y" + layoutnum, "Y").SetValue <Slider>(new Slider(200, 0, 2100))); temp.AddItem(new LeagueSharp.Common.MenuItem("Y_smooth" + layoutnum, "SmoothY").SetValue(new StringList(smoothvalue))); temp.AddItem(new LeagueSharp.Common.MenuItem("line_scale" + layoutnum, "Scale--------------------------------------------------------")); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_X" + layoutnum, "Scale_X").SetValue <Slider>(new Slider(1000, 0, 3000))); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_X_smooth" + layoutnum, "SmoothX").SetValue(new StringList(smoothvalue2))); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_Y" + layoutnum, "Scale_Y").SetValue <Slider>(new Slider(1000, 0, 3000))); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_Y_smooth" + layoutnum, "SmoothY").SetValue(new StringList(smoothvalue2))); menus.Add(temp); layoutnum += 1; }
public static void SetInI(string menu, string path) { CaptureLib.SetSettingValue(menu, "path", path, setFile.FullName); }