Exemple #1
0
    private void SetModifyCenterPanel(EquipItemTable.EquipItemData data, Transform rootObj)
    {
        bool flag = data.IsWeapon();

        SetActive((Enum)UI.OBJ_ARMOR_ROOT, !flag);
        SetActive((Enum)UI.OBJ_WEAPON_ROOT, flag);
        int num = 0;

        if (flag)
        {
            num = data.GetElemAtkTypePriorityToTable(null);
            string spTypeTextSpriteName = data.spAttackType.GetSpTypeTextSpriteName();
            SetSprite(rootObj, UI.SPR_ORDER_ACTIONTYPE_CENTER, spTypeTextSpriteName);
        }
        else
        {
            num = data.GetElemDefTypePriorityToTable(null);
        }
        switch (num)
        {
        case 6:
            SetActive(rootObj, UI.OBJ_ORDER_ATTRIBUTE_CENTER, false);
            break;

        default:
            SetElementSprite(rootObj, UI.SPR_ORDER_ELEM_CENTER, num);
            SetActive(rootObj, UI.OBJ_ORDER_NORMAL_CENTER, false);
            break;
        }
    }
Exemple #2
0
    private void SetEvolveText(EquipItemTable.EquipItemData data)
    {
        bool flag = data.IsWeapon();
        int  num  = 0;

        num        = ((!flag) ? data.GetElemDefTypePriorityToTable(null) : data.GetElemAtkTypePriorityToTable(null));
        modifyText = StringTable.Get(STRING_CATEGORY.EVOLVE, (uint)num);
    }
Exemple #3
0
    private void SetModifySidePanel(EquipItemTable.EquipItemData data, bool isRight, Transform rootObj)
    {
        bool flag = data.IsWeapon();

        SetActive((Enum)UI.OBJ_ARMOR_ROOT, !flag);
        SetActive((Enum)UI.OBJ_WEAPON_ROOT, flag);
        int num = 0;

        if (flag)
        {
            num = data.GetElemAtkTypePriorityToTable(null);
            string spTypeTextSpriteName = data.spAttackType.GetSpTypeTextSpriteName();
            bool   flag2 = data.spAttackType == SP_ATTACK_TYPE.NONE;
            if (isRight)
            {
                SetSprite(rootObj, UI.SPR_ORDER_ACTIONTYPE_RIGHT, spTypeTextSpriteName);
            }
            else
            {
                SetSprite(rootObj, UI.SPR_ORDER_ACTIONTYPE_LEFT, spTypeTextSpriteName);
            }
        }
        else
        {
            num = data.GetElemDefTypePriorityToTable(null);
        }
        switch (num)
        {
        case 6:
            if (isRight)
            {
                SetActive(rootObj, UI.OBJ_ORDER_ATTRIBUTE_R, false);
            }
            else
            {
                SetActive(rootObj, UI.OBJ_ORDER_ATTRIBUTE_L, false);
            }
            break;

        default:
            if (isRight)
            {
                SetElementSprite(rootObj, UI.SPR_ORDER_ELEM_R, num);
                SetActive(rootObj, UI.OBJ_ORDER_NORMAL_R, false);
            }
            else
            {
                SetElementSprite(rootObj, UI.SPR_ORDER_ELEM_L, num);
                SetActive(rootObj, UI.OBJ_ORDER_NORMAL_L, false);
            }
            break;
        }
    }