public void UseCurrentMount() { string newNifP = nIFModelDropdown.getSelected().text; string newNif = newNifP; if (newNifP.Contains(":")) { newNif = newNifP.Split(':')[1]; } Model animNifModel = nifDictionary[newNif]; string anim = this.animationDropdown.options[this.animationDropdown.value].text; if (animNifModel.mount) { Dictionary <string, string> settings = DotNet.Config.AppSettings.Retrieve("telarafly.cfg"); settings["MOUNT_KEY"] = "" + animNifModel.key; settings["MOUNT_ANIM"] = anim; settings["MOUNT_ANIM_SPEED"] = "" + animSpeed; DotNet.Config.AppSettings.saveFrom(settings, "telarafly.cfg"); } }
public void doLoadMap() { Assets.GameWorld.Clear(); WorldSpawn spawn = (WorldSpawn)dropdown.getSelected().userObject; //((DOption)dropdown.options[dropdown.value]).userObject; string worldName = spawn.worldName; string worldCDR = worldName + "_map.cdr"; Assets.GameWorld.worldName = worldName; Assets.WorldStuff.CDRParse.getMinMax(worldCDR, ref Assets.GameWorld.maxX, ref Assets.GameWorld.maxY); Assets.GameWorld.initialSpawn = spawn; foreach (WorldSpawn s in worlds) { if (s.worldName.Equals(spawn.worldName)) { Assets.GameWorld.AddSpawns(s); } } doMapChange = true; }