Skip to content

Commit 1d3afaa

Browse files
authored
Merge pull request #32 from kiccer/test
代码优化
2 parents 27b9ae7 + e33bd59 commit 1d3afaa

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Soldier76.lua

+9-4
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ pubg = {
218218
pubg.xLengthForDebug = pubg.generalSensitivityRatio * 60 -- 调试模式下的水平移动单元长度
219219
-- 渲染节点
220220
pubg.renderDom = {
221+
switchTable = "",
221222
separator = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n", -- 分割线
222223
combo_key = "G-key", -- 组合键
223224
cmd = "cmd", -- 指令
@@ -780,17 +781,21 @@ end
780781
--[[ autputLog render ]]
781782
function pubg.outputLogRender ()
782783
if userInfo.debug == 0 then return false end
783-
ClearLog()
784-
OutputLogMessage(table.concat({
784+
if not pubg.G1 then
785+
pubg.renderDom.switchTable = pubg.outputLogGunSwitchTable()
786+
end
787+
local resStr = table.concat({
785788
"\n>> [\"", pubg.renderDom.combo_key, "\"] = \"", pubg.renderDom.cmd, "\" <<\n",
786789
pubg.renderDom.separator,
787-
pubg.outputLogGunSwitchTable(),
790+
pubg.renderDom.switchTable,
788791
pubg.renderDom.separator,
789792
pubg.outputLogGunInfo(),
790793
pubg.renderDom.separator,
791794
pubg.renderDom.autoLog,
792795
pubg.renderDom.separator,
793-
}))
796+
})
797+
ClearLog()
798+
OutputLogMessage(resStr)
794799
end
795800

796801
--[[ Output switching table ]]

0 commit comments

Comments
 (0)