/// #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
{
///
/// 该脚本由模板创建,不可修改,不可编辑
///
public partial class TreasureChestUpgradePanelVM : FguiViewModel
{
public Controller PageCtrl { get; private set; }
public Controller UpgradeCtrl { get; private set; }
public Controller CdTimeCtrl { get; private set; }
public Controller MaxLvCtrl { get; private set; }
public Controller AssistCtrl { get; private set; }
public CommonBackGroundNestedView Background { get; private set; }
public GLabel PopWin { get; private set; }
public GTextField CurLvLabel { get; private set; }
public GTextField NextLvLabel { get; private set; }
public CommonComCurrencyNestedView GoldResItem { get; private set; }
public CommonComCurrencyNestedView AccelerationResItem { get; private set; }
public GTextField EndTimeLabel { get; private set; }
public GTextField AdNumLabel { get; private set; }
public GTextField CdTimeLabel { get; private set; }
public GButton ReduceTimeBtn { get; private set; }
public GButton AssistBtn { get; private set; }
public GButton AccelerationTimeBtn { get; private set; }
public CommonComCostNestedView CostAccelerationResItem { get; private set; }
public GTextField NeedExpLabel { get; private set; }
public GProgressBar BoxLvExpBar { get; private set; }
public GButton UpgradeBtn { get; private set; }
public GList IncomeList { get; private set; }
public GList ProbabilityList { get; private set; }
public GButton ProbabilityBtn { get; private set; }
public GButton IncomeBtn { get; private set; }
protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
{
PageCtrl = panel.GetController("PageCtrl");
UpgradeCtrl = panel.GetController("UpgradeCtrl");
CdTimeCtrl = panel.GetController("CdTimeCtrl");
MaxLvCtrl = panel.GetController("MaxLvCtrl");
AssistCtrl = panel.GetController("AssistCtrl");
Background = adapter.CreateNested(new FguiNested(panel.GetChild("Background").asCom), true);
AddChild(Background);
PopWin = panel.GetChild("PopWin") as GLabel;
CurLvLabel = panel.GetChild("CurLvLabel") as GTextField;
NextLvLabel = panel.GetChild("NextLvLabel") as GTextField;
GoldResItem = adapter.CreateNested(new FguiNested(panel.GetChild("GoldResItem").asCom), true);
AddChild(GoldResItem);
AccelerationResItem = adapter.CreateNested(new FguiNested(panel.GetChild("AccelerationResItem").asCom), true);
AddChild(AccelerationResItem);
EndTimeLabel = panel.GetChild("EndTimeLabel") as GTextField;
AdNumLabel = panel.GetChild("AdNumLabel") as GTextField;
CdTimeLabel = panel.GetChild("CdTimeLabel") as GTextField;
ReduceTimeBtn = panel.GetChild("ReduceTimeBtn") as GButton;
AssistBtn = panel.GetChild("AssistBtn") as GButton;
AccelerationTimeBtn = panel.GetChild("AccelerationTimeBtn") as GButton;
CostAccelerationResItem = adapter.CreateNested(new FguiNested(panel.GetChild("CostAccelerationResItem").asCom), true);
AddChild(CostAccelerationResItem);
NeedExpLabel = panel.GetChild("NeedExpLabel") as GTextField;
BoxLvExpBar = panel.GetChild("BoxLvExpBar") as GProgressBar;
UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton;
IncomeList = panel.GetChild("IncomeList") as GList;
IncomeList.Init(typeof(TreasureChestIncomeListItemView), adapter.CreateListItem);
ProbabilityList = panel.GetChild("ProbabilityList") as GList;
ProbabilityList.Init(typeof(TreasureChestProbabilityListItemView), adapter.CreateListItem);
ProbabilityBtn = panel.GetChild("ProbabilityBtn") as GButton;
IncomeBtn = panel.GetChild("IncomeBtn") as GButton;
}
}
}