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 PartnerSbMainPanelVM : FguiViewModel
- {
- public Controller UpPartner { get; private set; }
- public Controller IsEmpty { get; private set; }
- public Controller Page { get; private set; }
- public GTextField AttrLabel { get; private set; }
- public PartnerSbDetailNestedView SbDetailNested { get; private set; }
- public PartnerMwDetailNestedView MwDetailNested { get; private set; }
- public GButton ReplaceBtn { get; private set; }
- public GImage CanUpImg { get; private set; }
- public GButton StrengthBtn { get; private set; }
- public GButton OneUpBtn { get; private set; }
- public GButton RecommendBtn { get; private set; }
- public GButton SbBagBtn { get; private set; }
- public GButton MwBagBtn { get; private set; }
- public GImage DownArr { get; private set; }
- public GButton MaskBtn { get; private set; }
- public GList SbList { get; private set; }
- public GButton ConfirmBtn { get; private set; }
- public GButton CancelBtn { get; private set; }
- public GImage ChangeArr { get; private set; }
- protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
- {
- UpPartner = panel.GetController("UpPartner");
- IsEmpty = panel.GetController("IsEmpty");
- Page = panel.GetController("Page");
- AttrLabel = panel.GetChild("AttrLabel") as GTextField;
- SbDetailNested = adapter.CreateNested<PartnerSbDetailNestedView>(new FguiNested(panel.GetChild("SbDetailNested").asCom), true);
- AddChild(SbDetailNested);
- MwDetailNested = adapter.CreateNested<PartnerMwDetailNestedView>(new FguiNested(panel.GetChild("MwDetailNested").asCom), true);
- AddChild(MwDetailNested);
- ReplaceBtn = panel.GetChild("ReplaceBtn") as GButton;
- CanUpImg = panel.GetChild("CanUpImg") as GImage;
- StrengthBtn = panel.GetChild("StrengthBtn") as GButton;
- OneUpBtn = panel.GetChild("OneUpBtn") as GButton;
- RecommendBtn = panel.GetChild("RecommendBtn") as GButton;
- SbBagBtn = panel.GetChild("SbBagBtn") as GButton;
- MwBagBtn = panel.GetChild("MwBagBtn") as GButton;
- DownArr = panel.GetChild("DownArr") as GImage;
- MaskBtn = panel.GetChild("MaskBtn") as GButton;
- SbList = panel.GetChild("SbList") as GList;
- SbList.Init(typeof(PartnerSbUpListItemView), adapter.CreateListItem);
- ConfirmBtn = panel.GetChild("ConfirmBtn") as GButton;
- CancelBtn = panel.GetChild("CancelBtn") as GButton;
- ChangeArr = panel.GetChild("ChangeArr") as GImage;
- }
- }
- }
|