From 4727c3e19025f5876493001ee65030f651bfed65 Mon Sep 17 00:00:00 2001 From: qingqing-zhao Date: Wed, 5 Aug 2020 15:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8print?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KSFramework/Product/Lua/UI/Billboard/Billboard.lua | 6 +++--- KSFramework/Product/Lua/UI/Login/Login.lua | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/KSFramework/Product/Lua/UI/Billboard/Billboard.lua b/KSFramework/Product/Lua/UI/Billboard/Billboard.lua index a3034611..7012530d 100644 --- a/KSFramework/Product/Lua/UI/Billboard/Billboard.lua +++ b/KSFramework/Product/Lua/UI/Billboard/Billboard.lua @@ -3,7 +3,7 @@ local UIBillboard = {} extends(UIBillboard, UIBase) function UIBillboard:OnInit(controller) - Log.Info("================================ UIBillboard:OnInit ============================") + print("================================ UIBillboard:OnInit ============================") self.Controller = controller if not self.txtTitle then self.txtTitle = self:GetUIText('txtTitle') @@ -19,7 +19,7 @@ function UIBillboard:OnInit(controller) end function UIBillboard:OnOpen() - Log.Info("================================ UIBillboard:OnOpen ============================") + print("================================ UIBillboard:OnOpen ============================") local rand --rand = Cookie.Get('UIBillboard.RandomNumber') --if not rand then @@ -32,6 +32,6 @@ function UIBillboard:OnOpen() end function UIBillboard:OnClose() - Log.Info("================================ UIBillboard:OnClose ============================") + print("================================ UIBillboard:OnClose ============================") end return UIBillboard diff --git a/KSFramework/Product/Lua/UI/Login/Login.lua b/KSFramework/Product/Lua/UI/Login/Login.lua index 64e6be67..19a0a94b 100644 --- a/KSFramework/Product/Lua/UI/Login/Login.lua +++ b/KSFramework/Product/Lua/UI/Login/Login.lua @@ -16,7 +16,7 @@ local scenes = { "Scene/Scene1001/Scene1001.unity", "Scene/Scene1002/Scene1002.u -- controller also pass to OnInit function function UILogin:OnInit(controller) self.sceneIndex = 1 - Log.Info("================================ UILogin:OnInit ============================") + print("================================ UILogin:OnInit ============================") ---多语言示例,从语言表中读取 -- self.LoginText from LuaOutlet @@ -52,7 +52,7 @@ function UILogin:OnOpen(num1) if AppSettings then using("AppSettings") -- namespace all - Log.Info("================================ Read settings throught Lua ============================") + print("================================ Read settings throught Lua ============================") for config in foreach(GameConfigSettings.GetAll()) do print(string.format("Lua Read Setting, Id: %s, Value: %s", config.Id, config.Value)) end @@ -68,7 +68,7 @@ function UILogin:OnOpen(num1) openCount = openCount + 1 Cookie.Set('UILogin.OpenCount', openCount) self:TestJson() - Log.Info('Test cookie, Reload UI use (Ctrl+Alt+Shift+R)... UI Open Count: ' .. tostring(openCount)) + print('Test cookie, Reload UI use (Ctrl+Alt+Shift+R)... UI Open Count: ' .. tostring(openCount)) end function UILogin:OnClose()