1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /// #pkgName FGUI包名
- /// #panelName UIPanel名字
- /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
- /// #PropertyDefineArea 属性定义区域
- /// #PropertyAssignArea 属性赋值区域
- /// #ComponentType 组件类型
- /// #PropertyName 属性名字
- /// 该脚本由模板创建,不可编辑
- /// created by cb 2024
- using FairyGUI;
- using XGame.Framework.FGUI;
- using XGame.Framework.UI;
- namespace FL.FGUI
- {
- /// <summary>
- /// 该脚本由模板创建,不可修改,不可编辑
- /// </summary>
- public partial class MailMailPanelVM : FguiViewModel
- {
- public CommonBackGroundNestedView Background { get; private set; }
- public GList MailList { get; private set; }
- public GTextField MailCountLabel { get; private set; }
- public GTextField EmptyLabel { get; private set; }
- public GButton AllReadBtn { get; private set; }
- public GButton DeleteReadBtn { get; private set; }
- public GButton AllGetBtn { get; private set; }
- public GImage OffImg { get; private set; }
- public GImage OnImg { get; private set; }
- public GTextField TitleLabel { get; private set; }
- public GTextField TimeLabel { get; private set; }
- public GTextField ContentLabel { get; private set; }
- public GList ItemList { get; private set; }
- public GGroup ItemGrp { get; private set; }
- public GButton BackMainBtn { get; private set; }
- public GButton ReadBtn { get; private set; }
- public GButton GetBtn { get; private set; }
- public GButton DeleteBtn { get; private set; }
- public GGroup MailDetailsGrp { get; private set; }
- protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
- {
- Background = adapter.CreateNested<CommonBackGroundNestedView>(new FguiNested(panel.GetChild("Background").asCom), true);
- AddChild(Background);
- MailList = panel.GetChild("MailList") as GList;
- MailList.Init(typeof(MailMailPanelItemView), adapter.CreateListItem);
- MailCountLabel = panel.GetChild("MailCountLabel") as GTextField;
- EmptyLabel = panel.GetChild("EmptyLabel") as GTextField;
- AllReadBtn = panel.GetChild("AllReadBtn") as GButton;
- DeleteReadBtn = panel.GetChild("DeleteReadBtn") as GButton;
- AllGetBtn = panel.GetChild("AllGetBtn") as GButton;
- OffImg = panel.GetChild("OffImg") as GImage;
- OnImg = panel.GetChild("OnImg") as GImage;
- TitleLabel = panel.GetChild("TitleLabel") as GTextField;
- TimeLabel = panel.GetChild("TimeLabel") as GTextField;
- ContentLabel = panel.GetChild("ContentLabel") as GTextField;
- ItemList = panel.GetChild("ItemList") as GList;
- ItemList.Init(typeof(MailMailRwdItemView), adapter.CreateListItem);
- ItemGrp = panel.GetChild("ItemGrp") as GGroup;
- BackMainBtn = panel.GetChild("BackMainBtn") as GButton;
- ReadBtn = panel.GetChild("ReadBtn") as GButton;
- GetBtn = panel.GetChild("GetBtn") as GButton;
- DeleteBtn = panel.GetChild("DeleteBtn") as GButton;
- MailDetailsGrp = panel.GetChild("MailDetailsGrp") as GGroup;
- }
- }
- }
|