12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /// #pkgName FGUI包名
- /// #panelName UIPanel名字
- /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
- /// 该脚本由模板创建
- /// created by cb 2024
- using FairyGUI;
- using FL.Data;
- using XGame.Framework.UI;
- namespace FL.FGUI
- {
- /// <summary>
- /// UI逻辑处理类
- /// </summary>
- /// <typeparam name=""></typeparam>
- public partial class PartnerSbRecommendPanelCtrl : UIController<PartnerSbRecommendPanelVM>
- {
- protected override void OnEnable(object intent)
- {
- AddUIListenres();
- VM.Tabs.selectedIndex = 0;
- ShowUI();
- }
- protected override void OnDisable()
- {
- RemoveUIListenres();
- }
- #region UI事件
- private void AddUIListenres()
- {
- VM.Tab1Btn.onClick.Add(OnClickTab1Btn);
- VM.Tab2Btn.onClick.Add(OnClickTab2Btn);
- VM.Tab3Btn.onClick.Add(OnClickTab3Btn);
- }
- private void RemoveUIListenres()
- {
- VM.Tab1Btn.onClick.Remove(OnClickTab1Btn);
- VM.Tab2Btn.onClick.Remove(OnClickTab2Btn);
- VM.Tab3Btn.onClick.Remove(OnClickTab3Btn);
- }
- private void OnClickTab1Btn(EventContext context)
- {
- }
- private void OnClickTab2Btn(EventContext context)
- {
- }
- private void OnClickTab3Btn(EventContext context)
- {
- }
- #endregion
- private bool _init = false;
- private void InitView()
- {
- if(_init) return;
- _init = true;
- VM.List.ListType = EGListType.Virtual;
- }
- private void ShowUI()
- {
-
- }
- }
- }
|