public RecallTracker() { HackMenu.AddGroupLabel("Volatile Recall Tracker"); HackMenu.Add("trackRecalls", new CheckBox("Track Recalls")); HackMenu.Add("resetPos", new CheckBox("Reset Values")).OnValueChange += RecallTracker_OnReset;; HackMenu.Add("recallx", new Slider("X Position", 645, 0, Drawing.Width)); HackMenu.Add("recally", new Slider("Y Position", 860, 0, Drawing.Height)); HackMenu.Add("recallwidth", new Slider("Bar Width", 465, 0, 1500)); }
public static void Initialize() { HackMenu.AddGroupLabel("Volatile Skinchanger"); HackMenu.AddLabel("PSA: Changing your Model might in rare cases crash the game." + Environment.NewLine + "This does not apply to changing skin."); HackMenu.Add("models", new Slider("Model - ", 0, 0, 0)).OnValueChange += SkinManager_OnModelSliderChange; HackMenu.Add("skins", new Slider("Skin - Classic", 0, 0, 0)).OnValueChange += SkinManager_OnSkinSliderChange; HackMenu.Add("resetModel", new CheckBox("Reset Model", false)).OnValueChange += SkinManager_OnResetModel; HackMenu.Add("resetSkin", new CheckBox("Reset Skin", false)).OnValueChange += SkinManager_OnResetSkin; HackMenu.AddSeparator(); using (var infoStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("VolatileAIO.Organs.Brain.Data.SkinInfo.xml")) if (infoStream != null) { using (var infoReader = new StreamReader(infoStream)) { _infoXml = new XmlDocument(); _infoXml.LoadXml(infoReader.ReadToEnd()); } } if (_infoXml.DocumentElement != null) { _models = _infoXml.DocumentElement.ChildNodes.Cast <XmlElement>() .Select( model => new Model(model.Attributes["name"].Value, model.ChildNodes.Cast <XmlElement>() .Select( skin => new ModelSkin(skin.Attributes["name"].Value, skin.Attributes["index"].Value)) .ToArray())) .ToArray(); } ModelNames = _models.Select(model => model.Name).ToArray(); _originalSkinIndex = Player.SkinId; HackMenu["models"].Cast <Slider>().MaxValue = _models.Length - 1; HackMenu["models"].Cast <Slider>().CurrentValue = Array.IndexOf(ModelNames, Player.ChampionName); }