Skip to content

Commit

Permalink
Merge pull request #32 from kiccer/test
Browse files Browse the repository at this point in the history
代码优化
  • Loading branch information
kiccer authored Jul 25, 2019
2 parents 27b9ae7 + e33bd59 commit 1d3afaa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Soldier76.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ pubg = {
pubg.xLengthForDebug = pubg.generalSensitivityRatio * 60 -- 调试模式下的水平移动单元长度
-- 渲染节点
pubg.renderDom = {
switchTable = "",
separator = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n", -- 分割线
combo_key = "G-key", -- 组合键
cmd = "cmd", -- 指令
Expand Down Expand Up @@ -780,17 +781,21 @@ end
--[[ autputLog render ]]
function pubg.outputLogRender ()
if userInfo.debug == 0 then return false end
ClearLog()
OutputLogMessage(table.concat({
if not pubg.G1 then
pubg.renderDom.switchTable = pubg.outputLogGunSwitchTable()
end
local resStr = table.concat({
"\n>> [\"", pubg.renderDom.combo_key, "\"] = \"", pubg.renderDom.cmd, "\" <<\n",
pubg.renderDom.separator,
pubg.outputLogGunSwitchTable(),
pubg.renderDom.switchTable,
pubg.renderDom.separator,
pubg.outputLogGunInfo(),
pubg.renderDom.separator,
pubg.renderDom.autoLog,
pubg.renderDom.separator,
}))
})
ClearLog()
OutputLogMessage(resStr)
end

--[[ Output switching table ]]
Expand Down

0 comments on commit 1d3afaa

Please sign in to comment.