DaiJinJuanWidget.cs 707 B

12345678910111213141516171819202122232425262728293031323334
  1. using Excel2Json;
  2. using Fort23.UTool;
  3. namespace Fort23.Mono
  4. {
  5. [UIBinding(prefab = "DaiJinJuanWidget")]
  6. public partial class DaiJinJuanWidget : UIComponent
  7. {
  8. private void Init()
  9. {
  10. }
  11. public override void AddEvent()
  12. {
  13. }
  14. public override void DelEvent()
  15. {
  16. }
  17. public override void AddButtonEvent()
  18. {
  19. }
  20. public void CustomInit(int itemId)
  21. {
  22. ItemConfig itemConfig = ConfigComponent.Instance.Get<ItemConfig>(itemId);
  23. if (itemConfig.associateID == 9)
  24. {
  25. Text_Count.text = $"x{itemConfig.associateVlaue[1]}";
  26. }
  27. }
  28. }
  29. }