41 lines
1.3 KiB
TOML
41 lines
1.3 KiB
TOML
[manifest]
|
|
version = "1.0.0"
|
|
dump_lua = true
|
|
priority = -10
|
|
|
|
# Add enhancements to poker hand screen
|
|
# create_UIBox_hand_tip
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "functions/UI_definitions.lua"
|
|
pattern = '''local card = Card(0,0, 0.5*G.CARD_W, 0.5*G.CARD_H, G.P_CARDS[v[1]], G.P_CENTERS.c_base)'''
|
|
position = "at"
|
|
payload = '''
|
|
local card = Card(0,0, 0.5*G.CARD_W, 0.5*G.CARD_H, G.P_CARDS[v[1]], G.P_CENTERS[v.enhancement or 'c_base'])
|
|
if v.edition then card:set_edition(v.edition, true, true) end
|
|
if v.seal then card:set_seal(v.seal, true, true) end
|
|
'''
|
|
match_indent = true
|
|
|
|
# Add text styling to poker hand screen
|
|
# create_popup_UIBox_tooltip
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "functions/UI_definitions.lua"
|
|
pattern = '''local r = {n=G.UIT.R, config={align = "cm", padding = 0.03}, nodes={
|
|
{n=G.UIT.T, config={text = text[i],colour = G.C.UI.TEXT_DARK, scale = 0.4}}}}'''
|
|
position = "at"
|
|
payload = '''
|
|
local r = {n=G.UIT.R, config={align = "cm", padding = 0.03}, nodes=SMODS.localize_box(loc_parse_string(text[i]), {scale = 1.25})}
|
|
'''
|
|
match_indent = true
|
|
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "functions/UI_definitions.lua"
|
|
pattern = '''return (G.GAME.hands[handname].visible) and'''
|
|
position = "at"
|
|
payload = '''
|
|
return SMODS.is_poker_hand_visible(handname) and
|
|
'''
|
|
match_indent = true |