12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /// #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 PartnerDetailsPanelVM : FguiViewModel
- {
- public Controller MaxLvCtrl { get; private set; }
- public Controller MaxStarCtrl { get; private set; }
- public Controller ShowBtnCtrl { get; private set; }
- public GLoader3D PartnerSpine { get; private set; }
- public GLoader PartnerIcon { get; private set; }
- public GButton PreviousBtn { get; private set; }
- public GButton NextBtn { get; private set; }
- public PartnerEpiBaseItemView EpiItem { get; private set; }
- public GButton ChangeBtn { get; private set; }
- public GTextField EpiNameLabel { get; private set; }
- public GGroup TopUI { get; private set; }
- public GTextField NameLabel { get; private set; }
- public GLoader QualityIcon { get; private set; }
- public GLoader SacredVesselsIcon { get; private set; }
- public GLoader AttrTypeIcon { get; private set; }
- public GTextField TypeLabel { get; private set; }
- public GTextField LvLabel { get; private set; }
- public GTextField AtkLabel { get; private set; }
- public GTextField AtkSpeedLabel { get; private set; }
- public GTextField SkillInfoLabel { get; private set; }
- public GTextField SkillEffectLabel { get; private set; }
- public GList StarRatingList { get; private set; }
- public GList StarBuffItemList { get; private set; }
- public GButton TakeDownBtn { get; private set; }
- public GButton GoIntoBattleBtn { get; private set; }
- public GButton UpgradeBtn { get; private set; }
- public GButton RisingStarBtn { get; private set; }
- public CommonComCurrencyNestedView UpgradeCostItem { get; private set; }
- public GProgressBar StarCostBar { get; private set; }
- public GButton BackBtn { get; private set; }
- protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
- {
- MaxLvCtrl = panel.GetController("MaxLvCtrl");
- MaxStarCtrl = panel.GetController("MaxStarCtrl");
- ShowBtnCtrl = panel.GetController("ShowBtnCtrl");
- PartnerSpine = panel.GetChild("PartnerSpine") as GLoader3D;
- PartnerIcon = panel.GetChild("PartnerIcon") as GLoader;
- PreviousBtn = panel.GetChild("PreviousBtn") as GButton;
- NextBtn = panel.GetChild("NextBtn") as GButton;
- EpiItem = adapter.CreateNested<PartnerEpiBaseItemView>(new FguiNested(panel.GetChild("EpiItem").asCom), true);
- AddChild(EpiItem);
- ChangeBtn = panel.GetChild("ChangeBtn") as GButton;
- EpiNameLabel = panel.GetChild("EpiNameLabel") as GTextField;
- TopUI = panel.GetChild("topUI") as GGroup;
- NameLabel = panel.GetChild("NameLabel") as GTextField;
- QualityIcon = panel.GetChild("QualityIcon") as GLoader;
- SacredVesselsIcon = panel.GetChild("SacredVesselsIcon") as GLoader;
- AttrTypeIcon = panel.GetChild("AttrTypeIcon") as GLoader;
- TypeLabel = panel.GetChild("TypeLabel") as GTextField;
- LvLabel = panel.GetChild("LvLabel") as GTextField;
- AtkLabel = panel.GetChild("AtkLabel") as GTextField;
- AtkSpeedLabel = panel.GetChild("AtkSpeedLabel") as GTextField;
- SkillInfoLabel = panel.GetChild("SkillInfoLabel") as GTextField;
- SkillEffectLabel = panel.GetChild("SkillEffectLabel") as GTextField;
- StarRatingList = panel.GetChild("StarRatingList") as GList;
- StarRatingList.Init(typeof(PartnerStarListItemView), adapter.CreateListItem);
- StarBuffItemList = panel.GetChild("StarBuffItemList") as GList;
- StarBuffItemList.Init(typeof(PartnerStarBuffItemView), adapter.CreateListItem);
- TakeDownBtn = panel.GetChild("TakeDownBtn") as GButton;
- GoIntoBattleBtn = panel.GetChild("GoIntoBattleBtn") as GButton;
- UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton;
- RisingStarBtn = panel.GetChild("RisingStarBtn") as GButton;
- UpgradeCostItem = adapter.CreateNested<CommonComCurrencyNestedView>(new FguiNested(panel.GetChild("UpgradeCostItem").asCom), true);
- AddChild(UpgradeCostItem);
- StarCostBar = panel.GetChild("StarCostBar") as GProgressBar;
- BackBtn = panel.GetChild("BackBtn") as GButton;
- }
- }
- }
|