Example #1
0
 protected void Awake()
 {
     FadingComponent   = ScreenFadeGameObject.GetComponent <HonoFading>();
     _characterHud     = new CharacterDetailHUD(CharacterDetailPanel, false);
     _parameterHud     = new ParameterDetailHUD(ParameterDetailPanel);
     _equipmentHud     = new EquipmentDetailHud(EquipmentDetailPanel);
     _tranceGameObject = ETCInfo.GetChild(0);
     _tranceSlider     = ETCInfo.GetChild(0).GetChild(2).GetComponent <UISlider>();
     _expLabel         = ETCInfo.GetChild(1).GetChild(2).GetComponent <UILabel>();
     _nextLvLabel      = ETCInfo.GetChild(2).GetChild(3).GetComponent <UILabel>();
     _attackLabel      = CommandDetailPanel.GetChild(0).GetComponent <UILabel>();
     _ability1Label    = CommandDetailPanel.GetChild(1).GetComponent <UILabel>();
     _ability2Label    = CommandDetailPanel.GetChild(2).GetComponent <UILabel>();
     _itemLabel        = CommandDetailPanel.GetChild(3).GetComponent <UILabel>();
     for (int index = 0; index < AbilityPanelList.Count; ++index)
     {
         for (int childIndex = 0; childIndex < 8; ++childIndex)
         {
             //int num = index * 8 + childIndex;
             _abilityHudList.Add(new AbilityItemHUD(AbilityPanelList[index].GetChild(0).GetChild(childIndex)));
         }
         _abilityCaptionList.Add(AbilityPanelList[index].GetChild(1).GetChild(3));
     }
     _abilityPanelTransition = TransitionGroup.GetChild(0).GetComponent <HonoTweenPosition>();
     _avatarTransition       = CharacterDetailPanel.GetChild(0).GetChild(6).GetChild(0).GetComponent <HonoAvatarTweenPosition>();
 }
Example #2
0
    protected void Awake()
    {
        FadingComponent   = ScreenFadeGameObject.GetComponent <HonoFading>();
        _characterHud     = new CharacterDetailHUD(CharacterDetailPanel, false);
        _parameterHud     = new ParameterDetailHUD(ParameterDetailPanel);
        _equipmentHud     = new EquipmentDetailHud(EquipmentDetailPanel);
        _tranceGameObject = ETCInfo.GetChild(0);
        _tranceSlider     = ETCInfo.GetChild(0).GetChild(2).GetComponent <UISlider>();
        _expLabel         = ETCInfo.GetChild(1).GetChild(2).GetComponent <UILabel>();
        _nextLvLabel      = ETCInfo.GetChild(2).GetChild(3).GetComponent <UILabel>();
        _attackLabel      = CommandDetailPanel.GetChild(0).GetComponent <UILabel>();
        _ability1Label    = CommandDetailPanel.GetChild(1).GetComponent <UILabel>();
        _ability2Label    = CommandDetailPanel.GetChild(2).GetComponent <UILabel>();
        _itemLabel        = CommandDetailPanel.GetChild(3).GetComponent <UILabel>();
        for (Int32 index = 0; index < AbilityPanelList.Count; ++index)
        {
            for (Int32 childIndex = 0; childIndex < 8; ++childIndex)
            {
                //int num = index * 8 + childIndex;
                _abilityHudList.Add(new AbilityItemHUD(AbilityPanelList[index].GetChild(0).GetChild(childIndex)));
            }
            _abilityCaptionList.Add(AbilityPanelList[index].GetChild(1).GetChild(3));
        }
        _abilityPanelTransition = TransitionGroup.GetChild(0).GetComponent <HonoTweenPosition>();
        _avatarTransition       = CharacterDetailPanel.GetChild(0).GetChild(6).GetChild(0).GetComponent <HonoAvatarTweenPosition>();

        this._characterHud.MagicStoneLabel.SetAnchor((Transform)null);
        this._characterHud.MagicStoneLabel.width  = 60;
        this._characterHud.MagicStoneLabel.height = 52;
        this._parameterHud.SpeedLabel.SetAnchor((Transform)null);
        this._parameterHud.StrengthLabel.SetAnchor((Transform)null);
        this._parameterHud.MagicLabel.SetAnchor((Transform)null);
        this._parameterHud.SpiritLabel.SetAnchor((Transform)null);
        this._parameterHud.AttackLabel.SetAnchor((Transform)null);
        this._parameterHud.DefendLabel.SetAnchor((Transform)null);
        this._parameterHud.EvadeLabel.SetAnchor((Transform)null);
        this._parameterHud.MagicDefLabel.SetAnchor((Transform)null);
        this._parameterHud.MagicEvaLabel.SetAnchor((Transform)null);

        // Update 27.02.2017
        this._parameterHud.SpeedLabel.width     = 90;
        this._parameterHud.StrengthLabel.width  = 90;
        this._parameterHud.MagicLabel.width     = 90;
        this._parameterHud.SpiritLabel.width    = 90;
        this._parameterHud.AttackLabel.width    = 90;
        this._parameterHud.DefendLabel.width    = 90;
        this._parameterHud.EvadeLabel.width     = 90;
        this._parameterHud.MagicDefLabel.width  = 90;
        this._parameterHud.MagicEvaLabel.width  = 90;
        this._parameterHud.SpeedLabel.height    = 40;
        this._parameterHud.StrengthLabel.height = 40;
        this._parameterHud.MagicLabel.height    = 40;
        this._parameterHud.SpiritLabel.height   = 40;
        this._parameterHud.AttackLabel.height   = 40;
        this._parameterHud.DefendLabel.height   = 40;
        this._parameterHud.EvadeLabel.height    = 40;
        this._parameterHud.MagicDefLabel.height = 40;
        this._parameterHud.MagicEvaLabel.height = 40;
    }