12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- /// #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 PlayerPreviewItemNestedVM : FguiViewModel
- {
- public Controller UpperCtrl { get; private set; }
- public Controller LowerCtrl { get; private set; }
- public Controller JobCtrl { get; private set; }
- public GLoader Lv30_icon { get; private set; }
- public GLoader Lv30_1_icon { get; private set; }
- public GLoader Lv30_1_2_icon { get; private set; }
- public GLoader Lv30_2_icon { get; private set; }
- public GLoader Lv30_2_2_icon { get; private set; }
- public GLoader Lv60_1_icon { get; private set; }
- public GLoader Lv60_2_icon { get; private set; }
- public GLoader Lv80_1_icon { get; private set; }
- public GLoader Lv80_2_icon { get; private set; }
- public GLoader Lv100_1_icon { get; private set; }
- public GLoader Lv100_2_icon { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv30 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv60_1 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv60_2 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv80_1 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv80_2 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv100_1 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv100_2 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv120_1 { get; private set; }
- public PlayerJobPreviewItemNestedView JobLv120_2 { get; private set; }
- protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
- {
- UpperCtrl = panel.GetController("UpperCtrl");
- LowerCtrl = panel.GetController("LowerCtrl");
- JobCtrl = panel.GetController("JobCtrl");
- Lv30_icon = panel.GetChild("Lv30_icon") as GLoader;
- Lv30_1_icon = panel.GetChild("Lv30_1_icon") as GLoader;
- Lv30_1_2_icon = panel.GetChild("Lv30_1_2_icon") as GLoader;
- Lv30_2_icon = panel.GetChild("Lv30_2_icon") as GLoader;
- Lv30_2_2_icon = panel.GetChild("Lv30_2_2_icon") as GLoader;
- Lv60_1_icon = panel.GetChild("Lv60_1_icon") as GLoader;
- Lv60_2_icon = panel.GetChild("Lv60_2_icon") as GLoader;
- Lv80_1_icon = panel.GetChild("Lv80_1_icon") as GLoader;
- Lv80_2_icon = panel.GetChild("Lv80_2_icon") as GLoader;
- Lv100_1_icon = panel.GetChild("Lv100_1_icon") as GLoader;
- Lv100_2_icon = panel.GetChild("Lv100_2_icon") as GLoader;
- JobLv30 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv30").asCom), true);
- AddChild(JobLv30);
- JobLv60_1 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv60_1").asCom), true);
- AddChild(JobLv60_1);
- JobLv60_2 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv60_2").asCom), true);
- AddChild(JobLv60_2);
- JobLv80_1 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv80_1").asCom), true);
- AddChild(JobLv80_1);
- JobLv80_2 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv80_2").asCom), true);
- AddChild(JobLv80_2);
- JobLv100_1 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv100_1").asCom), true);
- AddChild(JobLv100_1);
- JobLv100_2 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv100_2").asCom), true);
- AddChild(JobLv100_2);
- JobLv120_1 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv120_1").asCom), true);
- AddChild(JobLv120_1);
- JobLv120_2 = adapter.CreateNested<PlayerJobPreviewItemNestedView>(new FguiNested(panel.GetChild("JobLv120_2").asCom), true);
- AddChild(JobLv120_2);
- }
- }
- }
|