ShopBtnWidget.cs 720 B

12345678910111213141516171819202122232425262728293031323334
  1. using Core.Language;
  2. using Excel2Json;
  3. namespace Fort23.Mono
  4. {
  5. [UIBinding(prefab = "ShopBtnWidget")]
  6. public partial class ShopBtnWidget : ItemWidgetBasic
  7. {
  8. public ShopGroupConfig ShopGroupConfig;
  9. private void Init()
  10. {
  11. }
  12. public override void AddEvent()
  13. {
  14. }
  15. public override void DelEvent()
  16. {
  17. }
  18. public override void AddButtonEvent()
  19. {
  20. base.AddButtonEvent();
  21. }
  22. public void CustomInit(ShopGroupConfig shopGroupConfig)
  23. {
  24. this.ShopGroupConfig = shopGroupConfig;
  25. Text_Name.text = LanguageManager.Instance.Text(ShopGroupConfig.shopName);
  26. }
  27. }
  28. }