using Core.Language; using Excel2Json; using Fort23.UTool; namespace Fort23.Mono { [UIBinding(prefab = "ShopBtnWidget")] public partial class ShopBtnWidget : ItemWidgetBasic { public ShopGroupConfig ShopGroupConfig; public SmallPlacesConfig SmallPlacesConfig; private void Init() { } public override void AddEvent() { } public override void DelEvent() { } public override void AddButtonEvent() { base.AddButtonEvent(); } public void CustomInit(ShopGroupConfig shopGroupConfig) { this.ShopGroupConfig = shopGroupConfig; Text_Name.text = LanguageManager.Instance.Text(ShopGroupConfig.shopName); } public void CustomInit(int smallPlacesId) { this.SmallPlacesConfig = ConfigComponent.Instance.Get(smallPlacesId); Text_Name.text = LanguageManager.Instance.Text(SmallPlacesConfig.placeName); } } }