diff --git a/lua_probject/base_project/Game/View/Common/BaseView.lua b/lua_probject/base_project/Game/View/Common/BaseView.lua index 3a84e41c..622dba80 100644 --- a/lua_probject/base_project/Game/View/Common/BaseView.lua +++ b/lua_probject/base_project/Game/View/Common/BaseView.lua @@ -32,9 +32,19 @@ local view_url = { --@param #string url function M:InitView(url) self._root_view = UIPackage.CreateObjectFromURL(self._full and view_url[2] or view_url[1]) + -- 检查根视图是否创建成功 + if not self._root_view then + error("BaseView: Failed to create root view. Check if 'Common' package is loaded.") + return + end local contentPane = self._root_view:GetChild("contentPane") self._view = UIPackage.CreateObjectFromURL(url) - printlog(self._view) + -- 3. 关键修复:检查 _view 是否创建成功 + if not self._view then + error(string.format("BaseView: Failed to create view from URL: %s. Check if the package is loaded and URL is correct.", url)) + return + end + self._close_destroy = true -- self._view.fairyBatching = true self._view:AddRelation(contentPane, RelationType.Size) diff --git a/lua_probject/extend_project/extend/majiang/hechi/EXPlayBackView.lua b/lua_probject/extend_project/extend/majiang/hechi/EXPlayBackView.lua index 13c4fa5e..915b34e1 100644 --- a/lua_probject/extend_project/extend/majiang/hechi/EXPlayBackView.lua +++ b/lua_probject/extend_project/extend/majiang/hechi/EXPlayBackView.lua @@ -275,7 +275,7 @@ function M:CopyLastStep(index) end function M:UpdateLeftCard(num) - self._tex_LeftCard.text = "剩余 "..num.." 张牌" + self._tex_LeftCard.text = num end function M:UpdateCardBox(seat) diff --git a/wb_new_ui/.objs/metas/8wph7p8n/yffn8s.info b/wb_new_ui/.objs/metas/8wph7p8n/yffn8s.info index 3587a727..1d9185c1 100644 --- a/wb_new_ui/.objs/metas/8wph7p8n/yffn8s.info +++ b/wb_new_ui/.objs/metas/8wph7p8n/yffn8s.info @@ -1,7 +1,13 @@ { "objectStatus": { + "n63_i3h6": { + "collapsed": true + }, "n77_n9qr": { "hidden": true + }, + "n51_g618": { + "collapsed": true } } } \ No newline at end of file diff --git a/wb_new_ui/.objs/metas/8wph7p8n/yffnmy.info b/wb_new_ui/.objs/metas/8wph7p8n/yffnmy.info index c18476a9..b82249bf 100644 --- a/wb_new_ui/.objs/metas/8wph7p8n/yffnmy.info +++ b/wb_new_ui/.objs/metas/8wph7p8n/yffnmy.info @@ -1,19 +1,15 @@ { "objectStatus": { - "n121_ckvb": { - "locked": true + "n166_ukp7": { + "hidden": true }, "n87_q50p": { "hidden": true }, - "n86_q50p": { - "locked": true - }, - "n122_ckvb": { - "locked": true + "n186_yffn": { + "hidden": true }, "n131_ckvb": { - "locked": true, "hidden": true }, "n13": { @@ -25,9 +21,6 @@ "n189_qcrm": { "collapsed": true }, - "n166_ukp7": { - "hidden": true - }, "n113_rnez": { "hidden": true }, diff --git a/wb_new_ui/.objs/workspace.json b/wb_new_ui/.objs/workspace.json index 27816b4d..1472e782 100644 --- a/wb_new_ui/.objs/workspace.json +++ b/wb_new_ui/.objs/workspace.json @@ -2,22 +2,47 @@ "libview.firstColumnWidth": 384, "libview.iconScale": 0, "doc.openedDocs": [ - "ui://h30s8vmela4eb", - "ui://7ij0e6i2sv5gk", - "ui://m7iejg46kwi0hkb", - "ui://2d9xdj6z75efcz", - "ui://2d9xdj6z97mlcin", - "ui://qubt49z8mpncc1i", - "ui://d1qrzqprc4r116", - "ui://parowutd99we8", - "ui://parowutd99we7" + "ui://v0j9abjygq7m8f", + "ui://v0j9abjygq7m8k", + "ui://v0j9abjygq7m8i", + "ui://8wph7p8nyffnmy", + "ui://8wph7p8nyffnnx", + "ui://8wph7p8nyffn9p", + "ui://8wph7p8nyffn8s", + "ui://8wph7p8nyffn2g", + "ui://8wph7p8nyffnnp", + "ui://8wph7p8nyffnno", + "ui://27vd145bst2l7ijp", + "ui://8wph7p8nyffn8t", + "ui://8wph7p8nyffn2h", + "ui://8wph7p8nyffn77", + "ui://8wph7p8nyffn78", + "ui://8wph7p8nyffnet", + "ui://8wph7p8nyffneu", + "ui://27vd145bmljn7ijt", + "ui://27vd145byffnj6", + "ui://27vd145byffnj9" ], "test.device": "1080p Phone", "canvasColor": 10066329, "auxline2": true, - "doc.activeDoc": "ui://7ij0e6i2sv5gk", + "doc.activeDoc": "ui://8wph7p8nyffnnx", "libview.twoColumn": false, "libview.expandedNodes": [ + "27vd145b", + "/", + "27vd145b", + "/images/", + "8wph7p8n", + "/", + "8wph7p8n", + "/component/", + "8wph7p8n", + "/component/head/", + "9n9stu2e", + "/", + "7ij0e6i2", + "/", "96mvx2ml", "/" ], diff --git a/wb_new_ui/assets/Common/component/RoomInfoPanel1.xml b/wb_new_ui/assets/Common/component/RoomInfoPanel1.xml index f402a652..5b865043 100644 --- a/wb_new_ui/assets/Common/component/RoomInfoPanel1.xml +++ b/wb_new_ui/assets/Common/component/RoomInfoPanel1.xml @@ -1,11 +1,11 @@ - + - + - + \ No newline at end of file diff --git a/wb_new_ui/assets/Extend_Poker_RunFastNew/RunFast_Main_New_2.xml b/wb_new_ui/assets/Extend_Poker_RunFastNew/RunFast_Main_New_2.xml index 524c8483..3ef7b174 100644 --- a/wb_new_ui/assets/Extend_Poker_RunFastNew/RunFast_Main_New_2.xml +++ b/wb_new_ui/assets/Extend_Poker_RunFastNew/RunFast_Main_New_2.xml @@ -2,7 +2,7 @@ - + @@ -27,16 +27,6 @@ - - - - - - - - - - @@ -47,23 +37,23 @@ - + -