forked from blazingulag/Unjankify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlovely.toml
More file actions
35 lines (32 loc) · 994 Bytes
/
lovely.toml
File metadata and controls
35 lines (32 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[manifest]
version = "1.0.0"
dump_lua = true
priority = 12
#add more coloumns for ranks to deck view
[[patches]]
[patches.pattern]
target = '=[SMODS _ "src/overrides.lua"]'
pattern = '''local object = {n = G.UIT.ROOT, config = {align = "cm", colour = G.C.CLEAR}, nodes = {'''
position = "before"
payload = '''
if rank_cols then
local max_shown = math.max(13,math.ceil(#rank_cols/3))
local rank_col_1 = {}
local rank_col_2 = {}
local rank_col_3 = {}
local a = #rank_cols + 1
for i=1, #rank_cols do
if i > max_shown*2 then
rank_col_3[a-i] = rank_cols[a-i]
elseif i > max_shown then
rank_col_2[a-i] = rank_cols[a-i]
else
rank_col_1[a-i] = rank_cols[a-i]
end
end
rank_cols = {{n = G.UIT.C, config = {align = "cm"}, nodes = rank_col_1},
{n = G.UIT.C, config = {align = "cm"}, nodes = rank_col_2},
{n = G.UIT.C, config = {align = "cm"}, nodes = rank_col_3}}
end
'''
match_indent = true