protected override void OnEnable() { base.OnEnable(); fireRate = initialFireRate; fireCountdown = 0; target = null; targetEnemy = null; targetStyle = TargetStyle.first; }
public Rmh_Combat() { DefaultUpgradeType = SkillUpgradeType.SkillPoints; TargetStyle = TargetStyle.ManualTarget; ScaleSkillMoveByCast = true; FloatSpeed = 2.0f; FloatDuration = 1.5f; FloatDistBetweenVals = 0.3f; AggroRadius = 25.0f; SmartCastSkills = false; AutomaticallyScaleAOE = false; SkipEvaluatingDmgWithNullAttack = true; EnableTauntSystem = true; NPCsCanFight = true; CanAttackNPcs = true; CanAttackUnkillableNPCs = true; ShadersToLerp = new List <ShaderLerpInfo>(); SkillTypeNames = new List <SkillTypeName>(); var skillEnumValues = Enum.GetValues(typeof(SkillType)) as SkillType[]; for (var i = 0; i < skillEnumValues.Length; i++) { SkillTypeNames.Add(new SkillTypeName() { SkillType = skillEnumValues[i], Name = skillEnumValues[i].ToString().Replace('_', ' ') }); } SkillMeta = new List <SkillMetaDefinition>(); MetaAppliesToHealing = true; SelectedTexture = new ImageContainer(); SelectedCombatTexture = new ImageContainer(); CastAreaTexture = new ImageContainer(); DefaultProjectilePrefabPath = "RPGMakerAssets/DefaultProjectilePrefab"; DefaultMeleePrefabPath = "RPGMakerAssets/DefaultMeleePrefab"; _castAreaColorArray = new [] { Color.blue.r, Color.blue.g, Color.blue.b, Color.blue.a }; SkillBarSlots = 9; AllowItemsOnBar = true; }
/// <summary> /// 改变装饰风格对象 /// </summary> /// <param name="target"></param> public void ChangeTarget(TargetStyle target) { StyleTarget = target; }
public static void SetColorScheme(string colorScheme) { try { ColorScheme = GetColorScheme(colorScheme); } catch (InvalidOperationException) { MessageBox.Show("Color scheme not found.", "", MessageBoxButtons.OK, MessageBoxIcon.Error); Application.Exit(); } try { if (StyleScheme == null) StyleScheme = GetStyleScheme(Properties.Settings.Default.StyleScheme); } catch { MessageBox.Show("Style scheme not found.", "", MessageBoxButtons.OK, MessageBoxIcon.Error); Application.Exit(); } Background = ColorScheme.Background; Carret = ColorScheme.Carret; LineNumber = ColorScheme.LineNumber; ServiceLine = ColorScheme.ServiceLine; Selection = ColorScheme.Selection; Default = new TextStyle(new SolidBrush(ColorScheme.Text), null, FontStyle.Regular); SameWord = new TextStyle(new SolidBrush(ColorScheme.SameWordText), new SolidBrush(ColorScheme.SameWord), StyleScheme.SameWord); Comment = new TextStyle(new SolidBrush(ColorScheme.Comment), null, StyleScheme.Comment); Keyword0 = new TextStyle(new SolidBrush(ColorScheme.Keyword), null, StyleScheme.Keyword); Keyword1 = new TextStyle(new SolidBrush(ColorScheme.Keyword1), null, StyleScheme.Keyword1); Keyword2 = new TextStyle(new SolidBrush(ColorScheme.Keyword2), null, StyleScheme.Keyword2); Keyword3 = new TextStyle(new SolidBrush(ColorScheme.Keyword3), null, StyleScheme.Keyword3); Keyword4 = new TextStyle(new SolidBrush(ColorScheme.Keyword4), null, StyleScheme.Keyword4); Number = new TextStyle(new SolidBrush(ColorScheme.Number), null, StyleScheme.Number); Time = new TextStyle(new SolidBrush(ColorScheme.Time), null, StyleScheme.Time); Special = new TextStyle(new SolidBrush(ColorScheme.Special), null, StyleScheme.Special); Command = new TextStyle(new SolidBrush(ColorScheme.Command), null, StyleScheme.Command); Path = new TextStyle(new SolidBrush(ColorScheme.Path), null, StyleScheme.Path); SearchResult = new TargetStyle(ColorScheme.SearchResultBack, ColorScheme.SearchResultFrame); ReplaceResult = new TargetStyle(ColorScheme.ReplaceResultBack, ColorScheme.ReplaceResultFrame); }