-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlovely.toml
More file actions
37 lines (34 loc) · 1.06 KB
/
lovely.toml
File metadata and controls
37 lines (34 loc) · 1.06 KB
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
35
36
37
[manifest]
version = "1.0.0"
dump_lua = true
priority = 0
[[patches]]
[patches.pattern]
target = "cardarea.lua"
pattern = "function CardArea:draw()"
position = "before"
payload = '''
local fool_card = {name = 'None'}'''
match_indent = true
[[patches]]
[patches.pattern]
target = "cardarea.lua"
pattern = "function CardArea:draw()"
position = "after"
payload = '''
if self == G.consumeables then
local fool_c = G.GAME.last_tarot_planet and G.P_CENTERS[G.GAME.last_tarot_planet] or nil
fool_card.name = fool_c and localize { type = 'name_text', key = fool_c.key, set = fool_c.set } or
localize('k_none')
end'''
match_indent = true
[[patches]]
[patches.pattern]
target = "cardarea.lua"
pattern = "{n=G.UIT.T, config={ref_table = self.config, ref_value = 'card_count', scale = 0.3, colour = G.C.WHITE}},"
position = "before"
payload = '''
self == G.consumeables and {n=G.UIT.T, config={ref_table = fool_card, ref_value = 'name', scale = 0.3, colour = G.C.WHITE}} or nil,
self == G.consumeables and {n=G.UIT.B, config={w = 0.1,h=0.1}} or nil,
'''
match_indent = true