protected override void SetQuestData(QuestTable.QuestTableData questData, Transform t)
    {
        SetLabelText(t, UI.LBL_QUEST_NAME, questData.questText);
        UITexture component = FindCtrl(t, UI.TEX_RUSH_IMAGE).GetComponent <UITexture>();

        ResourceLoad.LoadWithSetUITexture(component, RESOURCE_CATEGORY.RUSH_QUEST_ICON, ResourceName.GetRushQuestIconName((int)questData.rushIconId));
    }
Ejemplo n.º 2
0
    public override void Initialize()
    {
        //IL_009d: Unknown result type (might be due to invalid IL or missing references)
        base.Initialize();
        arenaData = info.GetArenaData();
        UITexture component = GetCtrl(UI.TEX_RUSH_IMAGE).GetComponent <UITexture>();

        ResourceLoad.LoadWithSetUITexture(component, RESOURCE_CATEGORY.ARENA_RANK_ICON, ResourceName.GetArenaRankIconName(arenaData.rank));
        if ((base.isComplete || isNotice) && !isCompletedEventDelivery)
        {
            SetActive((Enum)UI.BTN_CREATE, false);
            SetActive((Enum)UI.BTN_CREATE_OFF, false);
        }
        else if (info.GetConditionType(0u) != DELIVERY_CONDITION_TYPE.COMPLETE_DELIVERY_ID)
        {
            this.StartCoroutine(StartPredownload());
        }
    }
Ejemplo n.º 3
0
    public override void Initialize()
    {
        //IL_00b7: Unknown result type (might be due to invalid IL or missing references)
        base.Initialize();
        UITexture component = GetCtrl(UI.TEX_RUSH_IMAGE).GetComponent <UITexture>();

        ResourceLoad.LoadWithSetUITexture(component, RESOURCE_CATEGORY.RUSH_QUEST_ICON, ResourceName.GetRushQuestIconName((int)info.GetQuestData().rushIconId));
        if ((base.isComplete || isNotice) && !isCompletedEventDelivery)
        {
            SetActive((Enum)UI.BTN_JOIN, false);
            SetActive((Enum)UI.BTN_CREATE, false);
            SetActive((Enum)UI.BTN_AUTO_MATCHING, false);
            SetActive((Enum)UI.BTN_JOIN_OFF, false);
            SetActive((Enum)UI.BTN_CREATE_OFF, false);
            SetActive((Enum)UI.BTN_AUTO_MATCHING_OFF, false);
        }
        else
        {
            this.StartCoroutine(StartPredownload());
        }
    }
Ejemplo n.º 4
0
    private void UpdateTopBar()
    {
        int num = QuestUtility.ToSecByMilliSec(arenaData.timeLimit);

        SetLabelText((Enum)UI.LBL_LIMIT_TIME, $"{num / 60}:{num % 60:D2}");
        string empty = string.Empty;

        if (deliveryData != null)
        {
            empty = QuestUtility.GetArenaTitle(arenaData.group, deliveryData.name);
        }
        else
        {
            string str  = StringTable.Format(STRING_CATEGORY.ARENA, 0u, arenaData.group);
            string str2 = StringTable.Format(STRING_CATEGORY.ARENA, 1u, arenaData.rank);
            empty = str + "\u3000" + str2;
        }
        SetLabelText((Enum)UI.LBL_ARENA_NAME, empty);
        UITexture component = GetCtrl(UI.TEX_ICON).GetComponent <UITexture>();

        ResourceLoad.LoadWithSetUITexture(component, RESOURCE_CATEGORY.ARENA_RANK_ICON, ResourceName.GetArenaRankIconName(arenaData.rank));
    }
    public override void Initialize()
    {
        m_rank = MonoBehaviourSingleton <InGameManager> .I.GetCurrentArenaRank();

        m_group = MonoBehaviourSingleton <InGameManager> .I.GetCurrentArenaGroup();

        m_isTimeAttack = MonoBehaviourSingleton <InGameManager> .I.IsArenaTimeAttack();

        base.Initialize();
        UITexture component = GetCtrl(UI.TEX_RANK_PRE).GetComponent <UITexture>();

        ResourceLoad.LoadWithSetUITexture(component, RESOURCE_CATEGORY.ARENA_RANK_ICON, ResourceName.GetArenaRankIconName(m_rank));
        UITexture component2 = GetCtrl(UI.TEX_RANK_NEW).GetComponent <UITexture>();

        ResourceLoad.LoadWithSetUITexture(component2, RESOURCE_CATEGORY.ARENA_RANK_ICON, ResourceName.GetArenaRankIconName(m_rank + 1));
        if (MonoBehaviourSingleton <UIManager> .IsValid() && MonoBehaviourSingleton <UIManager> .I.mainChat != null)
        {
            MonoBehaviourSingleton <UIManager> .I.mainChat.HideOpenButton();

            MonoBehaviourSingleton <UIManager> .I.mainChat.HideAll();
        }
    }
Ejemplo n.º 6
0
    protected override void SetIcon(Transform t, DeliveryTable.DeliveryData info)
    {
        UITexture component = FindCtrl(t, UI.TEX_NPC).GetComponent <UITexture>();

        ResourceLoad.LoadWithSetUITexture(component, RESOURCE_CATEGORY.ARENA_RANK_ICON, ResourceName.GetArenaRankIconName(arenaData.rank));
    }