一切都在一条线上

时间:2015-08-19 00:06:36

标签: lua

我的例子如下,我在互联网上发现了我的代码,但是它有点困难,因为它是一行中的一切,有一个程序或网站来解码吗?我的意思是,添加空格和线条以使其更易于阅读?

require("libs.Utils")require("libs.Res") require("libs.SideMessage") local adae = false local ddasf = true local ddasfcfa = false local ggsa = {} local fasca = {} local vvsa = {} local ggaw = {} local fefsg = nil local hhasf = true local gggqas = 4000 local bwe = false local bwefqa = {} print(math.floor(client.screenRatio*100)) --[[Config. --If u have some problem with positioning u can add screen ration(64 line) and create config for yourself.]] if math.floor(client.screenRatio*100) == 177 then testX = 1600 testY = 900 tpanelHeroSize = 55 tpanelHeroDown = 25.714 tpanelHeroSS = 20 txxB = 2.535 txxG = 3.485 elseif math.floor(client.screenRatio*100) == 166 then testX = 1280 testY = 768 tpanelHeroSize = 47.1 tpanelHeroDown = 25.714 tpanelHeroSS = 18 txxB = 2.59 txxG = 3.66 elseif math.floor(client.screenRatio*100) == 160 then testX = 1280 testY = 800 tpanelHeroSize = 48.5 tpanelHeroDown = 25.714 tpanelHeroSS = 20 txxB = 2.579 txxG = 3.74 elseif math.floor(client.screenRatio*100) == 133 then testX = 1024 testY = 768 tpanelHeroSize = 47 tpanelHeroDown = 25.714 tpanelHeroSS = 18 txxB = 2.78 txxG = 4.63 elseif math.floor(client.screenRatio*100) == 125 then testX = 1280 testY = 1024 tpanelHeroSize = 58 tpanelHeroDown = 25.714 tpanelHeroSS = 23 txxB = 2.747 txxG = 4.54 else testX = 1600 testY = 900 tpanelHeroSize = 55 tpanelHeroDown = 25.714

1 个答案:

答案 0 :(得分:2)

我不知道这样的程序是否存在,但您可以将其放入支持Lua语法高亮的文本编辑器中。然后,它主要是打击'进入' Lua触发器的位置(例如localrequire)。 Lua很好,因为它允许你将所有内容放在一行,但我可以理解阅读的难度,这样你就可以理解正在做什么。