private void configWindow_Loaded(object sender, RoutedEventArgs e) { checkIgnoreHead.IsChecked = (bIgnoreHead) ? true : false; checkIgnoreShoulders.IsChecked = (bIgnoreShoulders) ? true : false; checkIgnoreTorso.IsChecked = (bIgnoreTorso) ? true : false; checkIgnoreHands.IsChecked = (bIgnoreHands) ? true : false; checkIgnoreWrists.IsChecked = (bIgnoreWrists) ? true : false; checkIgnoreWaist.IsChecked = (bIgnoreWaist) ? true : false; checkIgnoreLegs.IsChecked = (bIgnoreLegs) ? true : false; checkIgnoreFeet.IsChecked = (bIgnoreFeet) ? true : false; checkIgnoreNeck.IsChecked = (bIgnoreNeck) ? true : false; checkIgnoreFingerL.IsChecked = (bIgnoreFingerL) ? true : false; checkIgnoreFingerR.IsChecked = (bIgnoreFingerR) ? true : false; checkIgnoreHand.IsChecked = (bIgnoreHand) ? true : false; checkIgnoreOffhand.IsChecked = (bIgnoreOffhand) ? true : false; checkIdentifyItems.IsChecked = (bIdentifyItems) ? true : false; checkBuyPots.IsChecked = (bBuyPots) ? true : false; checkDisable60.IsChecked = (bDisable60) ? true : false; checkCheckStash.IsChecked = (bCheckStash) ? true : false; ehpFactor.Text = EHPFactor.ToString(); damageFactor.Text = DamageFactor.ToString(); sldPotion1.Value = iQtyPotion1; sldPotion2.Value = iQtyPotion2; sldPotion3.Value = iQtyPotion3; sldPotion4.Value = iQtyPotion4; sldPotion5.Value = iQtyPotion5; sldPotion6.Value = iQtyPotion6; sldPotion7.Value = iQtyPotion7; sldPotion8.Value = iQtyPotion8; sldPotion9.Value = iQtyPotion9; sldPotion10.Value = iQtyPotion10; }
private void SaveConfiguration() { if (bSavingConfig) { return; } bSavingConfig = true; FileStream configStream = File.Open(sConfigFile, FileMode.Create, FileAccess.Write, FileShare.Read); using (StreamWriter configWriter = new StreamWriter(configStream)) { configWriter.WriteLine("bIgnoreHead=" + (bIgnoreHead.ToString()).ToLower()); configWriter.WriteLine("bIgnoreShoulders=" + (bIgnoreShoulders.ToString()).ToLower()); configWriter.WriteLine("bIgnoreTorso=" + (bIgnoreTorso.ToString()).ToLower()); configWriter.WriteLine("bIgnoreHands=" + (bIgnoreHands.ToString()).ToLower()); configWriter.WriteLine("bIgnoreWrists=" + (bIgnoreWrists.ToString()).ToLower()); configWriter.WriteLine("bIgnoreWaist=" + (bIgnoreWaist.ToString()).ToLower()); configWriter.WriteLine("bIgnoreLegs=" + (bIgnoreLegs.ToString()).ToLower()); configWriter.WriteLine("bIgnoreFeet=" + (bIgnoreFeet.ToString()).ToLower()); configWriter.WriteLine("bIgnoreNeck=" + (bIgnoreNeck.ToString()).ToLower()); configWriter.WriteLine("bIgnoreFingerL=" + (bIgnoreFingerL.ToString()).ToLower()); configWriter.WriteLine("bIgnoreFingerR=" + (bIgnoreFingerR.ToString()).ToLower()); configWriter.WriteLine("bIgnoreHand=" + (bIgnoreHand.ToString()).ToLower()); configWriter.WriteLine("bIgnoreOffhand=" + (bIgnoreOffhand.ToString()).ToLower()); configWriter.WriteLine("bIdentifyItems=" + (bIdentifyItems.ToString()).ToLower()); configWriter.WriteLine("bBuyPots=" + (bBuyPots.ToString()).ToLower()); configWriter.WriteLine("bDisable60=" + (bDisable60.ToString()).ToLower()); configWriter.WriteLine("bCheckStash=" + (bCheckStash.ToString()).ToLower()); configWriter.WriteLine("damageFactor=" + DamageFactor.ToString()); configWriter.WriteLine("ehpFactor=" + EHPFactor.ToString()); configWriter.WriteLine("iQtyPotion1=" + iQtyPotion1.ToString()); configWriter.WriteLine("iQtyPotion2=" + iQtyPotion2.ToString()); configWriter.WriteLine("iQtyPotion3=" + iQtyPotion3.ToString()); configWriter.WriteLine("iQtyPotion4=" + iQtyPotion4.ToString()); configWriter.WriteLine("iQtyPotion5=" + iQtyPotion5.ToString()); configWriter.WriteLine("iQtyPotion6=" + iQtyPotion6.ToString()); configWriter.WriteLine("iQtyPotion7=" + iQtyPotion7.ToString()); configWriter.WriteLine("iQtyPotion8=" + iQtyPotion8.ToString()); configWriter.WriteLine("iQtyPotion9=" + iQtyPotion9.ToString()); configWriter.WriteLine("iQtyPotion10=" + iQtyPotion10.ToString()); } configStream.Close(); bSavingConfig = false; }
public ActorProperties(ActorProperties other) { Accuracy = other.Accuracy; Activation = other.Activation; ActiveSound = other.ActiveSound.Copy(); Alpha = other.Alpha; AmmoBackpackAmount = other.AmmoBackpackAmount; AmmoBackpackMaxAmount = other.AmmoBackpackMaxAmount; AmmoDropAmount = other.AmmoDropAmount; ArmorMaxAbsorb = other.ArmorMaxAbsorb; ArmorMaxBonus = other.ArmorMaxBonus; ArmorMaxBonusMax = other.ArmorMaxBonusMax; ArmorMaxSaveAmount = other.ArmorMaxSaveAmount; ArmorMaxFullAbsorb = other.ArmorMaxFullAbsorb; ArmorSaveAmount = other.ArmorSaveAmount; ArmorSavePercent = other.ArmorSavePercent; Args = new SpecialArgs(other.Args); AttackSound = other.AttackSound.Copy(); BloodColor = other.BloodColor; BloodType = new List <UpperString>(other.BloodType); BounceCount = other.BounceCount; BounceFactor = other.BounceFactor; BounceSound = other.BounceSound.Copy(); BounceType = other.BounceType; BurnHeight = other.BurnHeight; CameraHeight = other.CameraHeight; ConversationID = other.ConversationID; CrushPainSound = other.CrushPainSound.Copy(); Damage = other.Damage; DamageFactor = new DamageFactor(other.DamageFactor); DamageType = other.DamageType.Copy(); DeathHeight = other.DeathHeight; DeathSound = other.DeathSound.Copy(); DeathType = other.DeathType.Copy(); Decal = other.Decal.Copy(); DefThreshold = other.DefThreshold; DesignatedTeam = other.DesignatedTeam; DistanceCheck = other.DistanceCheck.Copy(); DropItem = other.DropItem.Select(val => new DropItem(val)).ToList(); ExplosionDamage = other.ExplosionDamage; ExplosionRadius = other.ExplosionRadius; FakeInventoryRespawns = other.FakeInventoryRespawns; FastSpeed = other.FastSpeed; FloatBobPhase = other.FloatBobPhase; FloatBobStrength = other.FloatBobStrength; FloatSpeed = other.FloatSpeed; Friction = other.Friction; FriendlySeeBlocks = other.FriendlySeeBlocks; Game = new List <UpperString>(Game); GibHealth = other.GibHealth; Gravity = other.Gravity; Health = other.Health; HealthLowMessage = new HealthLowMessage(other.HealthLowMessage); HealthPickupAutoUse = other.HealthPickupAutoUse; Height = other.Height; HitObituary = other.HitObituary.Copy(); HowlSound = other.HowlSound.Copy(); InventoryAltHUDIcon = other.InventoryAltHUDIcon.Copy(); InventoryAmount = other.InventoryAmount; InventoryDefMaxAmount = other.InventoryDefMaxAmount; InventoryForbiddenTo = new List <UpperString>(other.InventoryForbiddenTo); InventoryGiveQuest = other.InventoryGiveQuest; InventoryIcon = other.InventoryIcon.Copy(); InventoryInterHubAmount = other.InventoryInterHubAmount; InventoryMaxAmount = other.InventoryMaxAmount; InventoryPickupFlash = other.InventoryPickupFlash.Copy(); InventoryPickupMessage = other.InventoryPickupMessage.Copy(); InventoryPickupSound = other.InventoryPickupSound.Copy(); InventoryRespawnTics = other.InventoryRespawnTics; InventoryRestrictedTo = new List <UpperString>(other.InventoryRestrictedTo); InventoryUseSound = other.InventoryUseSound.Copy(); Mass = other.Mass; MaxStepHeight = other.MaxStepHeight; MaxDropOffHeight = other.MaxDropOffHeight; MaxTargetRange = other.MaxTargetRange; MeleeDamage = other.MeleeDamage; MeleeRange = other.MeleeRange; MeleeSound = other.MeleeSound.Copy(); MeleeThreshold = other.MeleeThreshold; MinMissileChance = other.MinMissileChance; MissileHeight = other.MissileHeight; MissileType = other.MissileType.Copy(); MorphProjectileDuration = other.MorphProjectileDuration; MorphProjectileMonsterClass = other.MorphProjectileMonsterClass.Copy(); MorphProjectileMorphFlash = other.MorphProjectileMorphFlash.Copy(); MorphProjectileMorphStyle = other.MorphProjectileMorphStyle; MorphProjectilePlayerClass = other.MorphProjectilePlayerClass.Copy(); MorphProjectileUnMorphFlash = other.MorphProjectileUnMorphFlash.Copy(); Obituary = other.Obituary.Copy(); PainChance = new PainChance(other.PainChance); PainSound = other.PainSound.Copy(); PainThreshold = other.PainThreshold; PainType = other.PainType.Copy(); PlayerAirCapacity = other.PlayerAirCapacity; PlayerAttackZOffset = other.PlayerAttackZOffset; PlayerColorRange = other.PlayerColorRange; PlayerCrouchSprite = other.PlayerCrouchSprite.Copy(); PlayerDamageScreenColor = new DamageScreenColor(other.PlayerDamageScreenColor); PlayerDisplayName = other.PlayerDisplayName.Copy(); PlayerFace = other.PlayerFace.Copy(); PlayerFallingScreamSpeed = other.PlayerFallingScreamSpeed; PlayerFlechetteType = other.PlayerFlechetteType.Copy(); PlayerForwardMove = other.PlayerForwardMove; PlayerGruntSpeed = other.PlayerGruntSpeed; PlayerHealRadiusType = other.PlayerHealRadiusType.Copy(); PlayerHexenArmor = other.PlayerHexenArmor; PlayerJumpZ = other.PlayerJumpZ; PlayerMaxHealth = other.PlayerMaxHealth; PlayerMorphWeapon = other.PlayerMorphWeapon.Copy(); PlayerMugShotMaxHealth = other.PlayerMugShotMaxHealth; PlayerPortrait = other.PlayerPortrait.Copy(); PlayerRunHealth = other.PlayerRunHealth; PlayerScoreIcon = other.PlayerScoreIcon.Copy(); PlayerSideMove = other.PlayerSideMove; PlayerSoundClass = other.PlayerSoundClass.Copy(); PlayerSpawnClass = other.PlayerSpawnClass.Copy(); PlayerStartItem = new Dictionary <UpperString, int>(other.PlayerStartItem); PlayerTeleportFreezeTime = other.PlayerTeleportFreezeTime; PlayerUseRange = other.PlayerUseRange; PlayerWeaponSlot = CopyWeaponSlot(other.PlayerWeaponSlot); PlayerViewBob = other.PlayerViewBob; PlayerViewHeight = other.PlayerViewHeight; PoisonDamage = other.PoisonDamage; PoisonDamageType = other.PoisonDamageType.Copy(); PowerupColor = other.PowerupColor; PowerupColormap = other.PowerupColormap; PowerupDuration = other.PowerupDuration; PowerupMode = other.PowerupMode; PowerupStrength = other.PowerupStrength; PowerupType = other.PowerupType.Copy(); PowerSpeedNoTrail = other.PowerSpeedNoTrail; ProjectileKickBack = other.ProjectileKickBack; ProjectilePassHeight = other.ProjectilePassHeight; PushFactor = other.PushFactor; PuzzleItemNumber = other.PuzzleItemNumber; PuzzleItemFailMessage = other.PuzzleItemFailMessage.Copy(); Radius = other.Radius; RadiusDamageFactor = other.RadiusDamageFactor; ReactionTime = other.ReactionTime; RenderRadius = other.RenderRadius; RenderStyle = other.RenderStyle; RipLevelMax = other.RipLevelMax; RipLevelMin = other.RipLevelMin; RipperLevel = other.RipperLevel; Scale = other.Scale; SeeSound = other.SeeSound.Copy(); SelfDamageFactor = other.SelfDamageFactor; SpawnID = other.SpawnID; SpawnInfo = other.SpawnInfo.Map(si => new SpawnInfo(si)); Species = other.Species.Copy(); Speed = other.Speed; SpriteAngle = other.SpriteAngle; SpriteRotation = other.SpriteRotation; Stamina = other.Stamina; StealthAlpha = other.StealthAlpha; StencilColor = other.StencilColor; Tag = other.Tag.Copy(); DecorateTranslation = new DecorateTranslation(DecorateTranslation); Threshold = other.Threshold; TeleFogDestType = other.TeleFogDestType; TeleFogSourceType = other.TeleFogSourceType; VisibleAngles = other.VisibleAngles; VisiblePitch = other.VisiblePitch; VisibleToPlayerClass = new List <UpperString>(other.VisibleToPlayerClass); VisibleToTeam = other.VisibleToTeam; VSpeed = other.VSpeed; WallBounceFactor = other.WallBounceFactor; WallBounceSound = other.WallBounceSound.Copy(); WeaponAmmoGive = other.WeaponAmmoGive; WeaponAmmoGive1 = other.WeaponAmmoGive1; WeaponAmmoGive2 = other.WeaponAmmoGive2; WeaponAmmoType = other.WeaponAmmoType.Copy(); WeaponAmmoType1 = other.WeaponAmmoType1.Copy(); WeaponAmmoType2 = other.WeaponAmmoType2.Copy(); WeaponAmmoUse = other.WeaponAmmoUse; WeaponAmmoUse1 = other.WeaponAmmoUse1; WeaponAmmoUse2 = other.WeaponAmmoUse2; WeaponBobRangeX = other.WeaponBobRangeX; WeaponBobRangeY = other.WeaponBobRangeY; WeaponBobSpeed = other.WeaponBobSpeed; WeaponBobStyle = other.WeaponBobStyle; WeaponDefaultKickBack = other.WeaponDefaultKickBack; WeaponKickBack = other.WeaponKickBack; WeaponLookScale = other.WeaponLookScale; WeaponMinSelectionAmmo1 = other.WeaponMinSelectionAmmo1; WeaponMinSelectionAmmo2 = other.WeaponMinSelectionAmmo2; WeaponReadySound = other.WeaponReadySound.Copy(); WeaponSelectionOrder = other.WeaponSelectionOrder; WeaponSisterWeapon = other.WeaponSisterWeapon.Copy(); WeaponSlotNumber = other.WeaponSlotNumber; WeaponSlotPriority = other.WeaponSlotPriority; WeaponUpSound = other.WeaponUpSound.Copy(); WeaponYAdjust = other.WeaponYAdjust; WeaponPieceNumber = other.WeaponPieceNumber; WeaponPieceWeapon = other.WeaponPieceWeapon.Copy(); WeaveIndexXY = other.WeaveIndexXY; WeaveIndexZ = other.WeaveIndexZ; WoundHealth = other.WoundHealth; XScale = other.XScale; YScale = other.YScale; }