Ejemplo n.º 1
0
    public void OnQuestSelected(ListView.ListViewItem item)
    {
        SelectedItem = item;
        UIQuestItem questItem = item as UIQuestItem;

        this.questInfo.SetQuestInfo(questItem.quest);
    }
Ejemplo n.º 2
0
    private void OnItemSelected(ListView.ListViewItem item)
    {
        QuestDefine define = ((QuestListItem)item).Define;

        questTitleTxt.text  = define.Name;
        descriptionTxt.text = define.Overview;

        ItemDefine reward = DataManager.Instance.Items[define.RewardItem1];

        if (reward != null)
        {
            itemReword1.sprite = ResManager.Instance.Load <Sprite>(ResManager.ResourceType.Item, reward.Icon);

            reward = DataManager.Instance.Items[define.RewardItem2];
            if (reward != null)
            {
                itemReword2.sprite = ResManager.Instance.Load <Sprite>(ResManager.ResourceType.Item, reward.Icon);

                reward = DataManager.Instance.Items[define.RewardItem3];
                if (reward != null)
                {
                    itemReword3.sprite = ResManager.Instance.Load <Sprite>(ResManager.ResourceType.Item, reward.Icon);
                }
            }
        }

        goldTxt.text = "Gold: " + define.RewardGold.ToString();
        expTxt.text  = "Exp: " + define.RewardExp.ToString();
    }
    private void OnQuestSelected(ListView.ListViewItem item)
    {
        UIQuestItem questItem = item as UIQuestItem;

        this.questInfo.SetQuestInfo(questItem.quest);
        if (item.owner == listMain)
        {
            if (listBranch.SelectedItem != null)
            {
                //listBranch.SelectedItem.GetComponent<Image>().overrideSprite = (listBranch.SelectedItem as UIQuestItem).normalBg;
                listBranch.SelectedItem = null;
            }
        }
        else
        {
            if (listMain.SelectedItem != null)
            {
                //listMain.SelectedItem.GetComponent<Image>().overrideSprite = (listMain.SelectedItem as UIQuestItem).normalBg;
                listMain.SelectedItem = null;
            }
        }
    }
Ejemplo n.º 4
0
 private void OnGuildMemberSelected(ListView.ListViewItem item)
 {
     this.selectedItem = item as UIGuildItem;
     this.uiInfo.Info  = this.selectedItem.Info;
 }
Ejemplo n.º 5
0
 private void OnGuildMemberSelected(ListView.ListViewItem item)
 {
     this.selectedItem = item as UIGuildMemberItem;
 }
Ejemplo n.º 6
0
 private void OnItemSelected(ListView.ListViewItem item)
 {
     this.selectedItem  = item as UIRideItem;
     this.descript.text = this.selectedItem.item.itemDefine.Description;
 }
Ejemplo n.º 7
0
 public void OnFriendSelected(ListView.ListViewItem item)
 {
     this.seletedItem = item as UIFriendItem;
 }
Ejemplo n.º 8
0
 private void OnFriendSelected(ListView.ListViewItem item)
 {
     this.selectedItem = item as UIFrindItem;
 }
Ejemplo n.º 9
0
    private void OnQuestSelected(ListView.ListViewItem item)
    {
        UIQuestItem questItem = item as UIQuestItem;

        this.questInfo.SetQuestInfo(questItem.quest);
    }
Ejemplo n.º 10
0
 private void OnQuestSelected(ListView.ListViewItem item)
 {
     UIQuestItem qustItem = item as UIQuestItem;
 }
Ejemplo n.º 11
0
 private void OnQuestSelected(ListView.ListViewItem item)
 {
     this.selectedItem  = item as UISkillItem;
     this.descript.text = this.selectedItem.item.Description;
 }