Exemplo n.º 1
0
        public override void OnEnable()
        {
            base.OnEnable();
            _previousFrameInfo      = new CharacterInfo();
            _currentInfo            = new CharacterInfo();
            _partyBarPoints         = new PointGroup(PointExt.New(393, 47), PointExt.New(599, 52), PointExt.New(605, 45));
            _partyBarPointsOffseted = _partyBarPoints.OffsetCopy(0, 40);
            _previousFrameInfo      = new CharacterInfo();
            _hpBar = new ResourceBar(27, 217, 36, ResourceBar.EResourceType.Hp);
            _hpBar.ColorDiffTolerance = 5;
            _mpBar = new ResourceBar(27, 217, 53, ResourceBar.EResourceType.Mana);
            _mpBar.ColorDiffTolerance = 5;
            _partyBar   = new ResourceBar(406, 598, 49, ResourceBar.EResourceType.PartyMemberHp);
            _monsterBar = new ResourceBar(406, 598, 49, ResourceBar.EResourceType.MonsterHp);
            _monsterBar.NbConsistencyFrame = 1;

            CalculateAttributes();
            _currentInfo.InitialPosition = _currentInfo.Position;
            _previousFrameInfo.CopyFrom(_currentInfo);
        }