49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using Games.Item;
|
|
using GCGame.Table;
|
|
using GCGame;
|
|
|
|
public class GuildActiveItem : UIItemBase
|
|
{
|
|
public Image Icon;
|
|
public Text Name;
|
|
public Text Descript;
|
|
public Text ButtonName;
|
|
|
|
public Button forbidden;
|
|
Tab_GuildActivityWelfare tableInfo;
|
|
public override void Show(Hashtable hash)
|
|
{
|
|
|
|
tableInfo = hash["InitObj"] as Tab_GuildActivityWelfare;
|
|
if (tableInfo == null)
|
|
return;
|
|
LoadAssetBundle.Instance.SetImageSprite(Icon, tableInfo.Icon);
|
|
Name.text = tableInfo.Name;
|
|
Descript.text = tableInfo.Describe;
|
|
ButtonName.text = tableInfo.BtnName;
|
|
base.Show();
|
|
}
|
|
|
|
|
|
private void OnEnable()
|
|
{
|
|
if (GameManager.gameManager.m_RunningScene == 658)
|
|
{
|
|
forbidden.gameObject.SetActive(true);
|
|
}
|
|
else
|
|
{
|
|
forbidden.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
|
|
public void Click_forbidden()
|
|
{
|
|
GUIData.AddNotifyData(GCGame.Table.StrDictionary.GetClientDictionaryString("#{79512}"));
|
|
return;
|
|
}
|
|
}
|