BigMapWidget.cs 589 B

123456789101112131415161718192021222324252627282930313233343536
  1. using Core.Language;
  2. using Excel2Json;
  3. using Fort23.UTool;
  4. namespace Fort23.Mono
  5. {
  6. [UIBinding(prefab = "BigMapWidget" )]
  7. public partial class BigMapWidget : ItemWidgetBasic
  8. {
  9. public BigMapConfig bigMap;
  10. private void Init()
  11. {
  12. }
  13. public override void AddEvent()
  14. {
  15. }
  16. public override void DelEvent()
  17. {
  18. }
  19. public override void AddButtonEvent()
  20. {
  21. base.AddButtonEvent();
  22. }
  23. public void CustomInit(int bigMapId)
  24. {
  25. bigMap = ConfigComponent.Instance.Get<BigMapConfig>(bigMapId);
  26. Text_Name.text = LanguageManager.Instance.Text(bigMap.mapName);
  27. }
  28. }
  29. }