//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, May 29, 2018
|
//--------------------------------------------------------
|
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
|
namespace Snxxz.UI
|
{
|
|
public class RuneInfoWin : Window
|
{
|
public static int runeId = 0;
|
|
[SerializeField] ItemBehaviour m_ItemBehaviour;
|
[SerializeField] Text m_RuneType;
|
[SerializeField] Text m_RuneProperty;
|
[SerializeField] Text m_Description;
|
[SerializeField] Button m_Close;
|
|
#region Built-in
|
protected override void BindController()
|
{
|
}
|
|
protected override void AddListeners()
|
{
|
m_Close.AddListener(CloseClick);
|
}
|
|
protected override void OnPreOpen()
|
{
|
var config = ItemConfig.Get(runeId);
|
m_ItemBehaviour.SetItem(runeId, 0);
|
var runeType = Language.Get(StringUtility.Contact("RuneType_", config.Effect1));
|
m_RuneType.text = runeType;
|
|
var runeConfig = RuneConfig.Get(runeId);
|
var propertyConfig = PlayerPropertyConfig.Get(runeConfig.AttrType[0]);
|
m_RuneProperty.text = propertyConfig.Name;
|
|
m_Description.text = Language.Get("RuneTower12", runeType);
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
#endregion
|
|
}
|
|
}
|
|
|
|
|