1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Core.Language;
- using Excel2Json;
- using Fort23.UTool;
- namespace Fort23.Mono
- {
- [UIBinding(prefab = "XianTuSaiXuanWidget")]
- public partial class XianTuSaiXuanWidget : ItemWidgetBasic
- {
- public int type;
- public BigMapConfig _bigMapConfig;
- public PlacesConfig _placesConfig;
- private void Init()
- {
- }
- public override void AddEvent()
- {
- }
- public override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
- base.AddButtonEvent();
- }
- public void CustomInit(int type, int id)
- {
- this.type = type;
- if (type == 1)
- {
- _bigMapConfig = ConfigComponent.Instance.Get<BigMapConfig>(id);
- if (_bigMapConfig.ID == 0)
- {
- Text_Name.text = "全部";
- }
- else
- {
- Text_Name.text = LanguageManager.Instance.Text(_bigMapConfig.mapName);
- }
- }
- else if (type == 2)
- {
- _placesConfig = ConfigComponent.Instance.Get<PlacesConfig>(id);
- if (_placesConfig.ID == 0)
- {
- Text_Name.text = "全部";
- }
- else
- {
- Text_Name.text = LanguageManager.Instance.Text(_placesConfig.placeName);
- }
- }
- }
- }
- }
|