Files
JJBB/Assets/Project/Script/GUI/Marry/WeddingCarMenuItem.cs

27 lines
693 B
C#
Raw Permalink Normal View History

2024-08-23 15:49:34 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using GCGame.Table;
public class WeddingCarMenuItem : UIItemSelect {
public Image _BG;
public Text _Desc;
public int _CurType = -1;
public override void Show(Hashtable hash)
{
base.Show(hash);
var tabId = (int)hash["InitObj"];
_CurType = tabId;
var weddingCarTab = TableManager.GetWeddingCarConfigByID(tabId, 0);
if (weddingCarTab == null)
return;
_InitInfo = tabId;
LoadAssetBundle.Instance.SetImageSprite(_BG, weddingCarTab.IconName);
_Desc.text = weddingCarTab.WeddingTypeName;
}
}