diff --git a/sqr/User/Stage/LodingStage.nut b/sqr/User/Stage/LodingStage.nut index 0676cf5..1ba3ff7 100644 --- a/sqr/User/Stage/LodingStage.nut +++ b/sqr/User/Stage/LodingStage.nut @@ -27,7 +27,7 @@ function InitGame() { //初始化控制器 _GameController_(); //初始化顶部工具条UI - // Sq_CreateWindow(_Top_tool, "窗口顶部工具条", 208, 0, 650, 20, 0); + Sq_CreateWindow(_Top_tool, "窗口顶部工具条", 208, 0, 650, 20, 0); //预加载 Animation("ui/charactercreate/dust.ani"); diff --git a/sqr/User/UI/Window/5_Inventory.nut b/sqr/User/UI/Window/5_Inventory.nut deleted file mode 100644 index e011820..0000000 --- a/sqr/User/UI/Window/5_Inventory.nut +++ /dev/null @@ -1,54 +0,0 @@ -/* -文件名:5_Inventory.nut -路径:User/UI/Window/5_Inventory.nut -创建日期:2025-01-02 12:37 -文件用途: 背包窗口 -*/ - -class _Inventory extends Yosin_Window { - - item = null; - dressUpTitleBtn = null; - petTitleBtn = null; - stoneTitleBtn = null; - - constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) { - base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH); - - local title = Yosin_TopTitle(gWidth, gHeight, "装备栏(I)"); - AddUIChild(title); - - local item2 = Yosin_EmeStretch(0, 0, 80, 25, "sprite/interface/lenheartwindowcommon.img", 160); - item2.SetPos(100, 100); - Addchild(item2); - - //注册控件 - RegisterWidget(); - } - - function RegisterWidget() { - - //, "装扮", "宠物", "护石" - local titlesBtn = Yosin_RowMoreTitleBtn(10, 25, ["物品栏"]); - AddUIChild(titlesBtn); - - titlesBtn.LBDownOnClick = function(btns, index) { - - }; - - - local item = Yosin_SplicingButton(10, 50, 80, 25, "sprite/interface/lenheartwindowcommon.img", 160, true, false); - AddUIChild(item); - - - - - } - - //逻辑入口 - function Proc(Dt) { - SyncPos(X, Y); - base.Proc(Dt); - } - -} \ No newline at end of file diff --git a/sqr/User/UI/Window/5_Inventory/5_Inventory.nut b/sqr/User/UI/Window/5_Inventory/5_Inventory.nut index cab4ce7..c316016 100644 --- a/sqr/User/UI/Window/5_Inventory/5_Inventory.nut +++ b/sqr/User/UI/Window/5_Inventory/5_Inventory.nut @@ -188,12 +188,12 @@ class _Inventory extends Yosin_Window { // 切换页面 function ChangPage() { - equipmentPage.SetVisible(false); + EquipmentPage.SetVisible(false); DressUpPage.SetVisible(false); if (PageIndex == 0) { - equipmentPage.SetVisible(true); + EquipmentPage.SetVisible(true); permutationBtn.SetPosition(permutationBtn.X, itemSetBtnY); setBtn.SetPosition(setBtn.X, itemSetBtnY); saerchBtn.SetPosition(saerchBtn.X, itemSetBtnY); diff --git a/sqr/User/UI/Window/5_Inventory/Inventory_DressUpPage.nut b/sqr/User/UI/Window/5_Inventory/Inventory_DressUpPage.nut index 757faf1..b6f2d39 100644 --- a/sqr/User/UI/Window/5_Inventory/Inventory_DressUpPage.nut +++ b/sqr/User/UI/Window/5_Inventory/Inventory_DressUpPage.nut @@ -21,6 +21,16 @@ class Inventory_DressUpPage extends Yosin_CommonUi { CharactersDressUp.SetPosition(0, 0); Addchild(CharactersDressUp); + // 镶嵌徽章 + local InsetBadge = Yosin_BaseButton(150, 137, 97, 22, "sprite/interface/newstyle/windows/inventory/inventory.img", 90); + AddUIChild(InsetBadge); + + + //分页按钮 + local titlesBtn = Yosin_RowMoreTitleBtn(2, 180, 250, ["装扮", "徽章"], "sprite/interface/lenheartwindowcommon.img", 160); + AddUIChild(titlesBtn); + + } // 添加按钮 @@ -74,7 +84,6 @@ class Inventory_CharactersDressUp extends CL_CanvasObject { local CharacterLight = CL_SpriteFrameObject("sprite/interface/newstyle/windows/inventory/inventory.img", 178); DrawSpriteFrame(CharacterLight, -10, 4); - } @@ -82,14 +91,14 @@ class Inventory_CharactersDressUp extends CL_CanvasObject { -if (!getroottable().rawin("chongzaiflag")) { - getroottable()["chongzaiflag"] <- true; -} else { - //遍历窗口队列 如果可见则调用Show - for (local i = 0; i< _SYS_WINDOW_LIST_.len(); i++) { - local Window = _SYS_WINDOW_LIST_[i]; - Window.Visible = false; - Window.RemoveSelf(); - } - TestStage(); -} \ No newline at end of file +// if (!getroottable().rawin("chongzaiflag")) { +// getroottable()["chongzaiflag"] <- true; +// } else { +// //遍历窗口队列 如果可见则调用Show +// for (local i = 0; i< _SYS_WINDOW_LIST_.len(); i++) { +// local Window = _SYS_WINDOW_LIST_[i]; +// Window.Visible = false; +// Window.RemoveSelf(); +// } +// TestStage(); +// } \ No newline at end of file