显示3d模型

This commit is contained in:
bob
2025-06-23 18:08:03 +08:00
parent 2024bfb990
commit 197897a323
21 changed files with 427 additions and 19 deletions

View File

@@ -11,6 +11,8 @@ namespace NBF
public partial class HomePanel
{
public GObject this[string aKey] => ContentPane.GetChild(aKey);
[AutoFind(Name = "Back")]
public GLabel Back;
[AutoFind(Name = "Pages")]
public GComponent Pages;
[AutoFind(Name = "Menu")]

View File

@@ -13,6 +13,7 @@ namespace NBF
public HomeButtonGroups OpGroup;
public BottomMenu BottomMenu;
public ModelTexture Model;
public override void ConstructFromXML(XML xml)
{
@@ -20,6 +21,7 @@ namespace NBF
OpGroup = (HomeButtonGroups)GetChild("OpGroup");
BottomMenu = (BottomMenu)GetChild("BottomMenu");
Model = (ModelTexture)GetChild("Model");
OnInited();
UILanguage.TrySetComponentLanguage(this);
}

View File

@@ -31,6 +31,10 @@ namespace NBF
{
InputManager.OnUICanceled += OnUICanceled;
UseBottomMenu();
Model.LoadModel(string.Empty);
// Model.SetBackground(Panel.Back.GetChild("back"));//, Panel.Back.GetChild("icon")
}
@@ -73,7 +77,7 @@ namespace NBF
private void UseBottomMenu()
{
BottomMenu.Use(Panel);
BottomMenu.AddRightButton(InputDef.UI.Enter);
BottomMenu.AddRightButton(InputDef.UI.Back);
}