12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- /// #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 GTextField AttrLabel { get; private set; }
- public PartnerSbDetailNestedView SbDetailNested { 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 BagBtn { 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");
- AttrLabel = panel.GetChild("AttrLabel") as GTextField;
- SbDetailNested = adapter.CreateNested<PartnerSbDetailNestedView>(new FguiNested(panel.GetChild("SbDetailNested").asCom), true);
- AddChild(SbDetailNested);
- 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;
- BagBtn = panel.GetChild("BagBtn") 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;
- }
- }
- }
|