Skip to content

Commit a1acb7b

Browse files
add "force tooltips" setting (3/3)
1 parent 68af968 commit a1acb7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lovely/lib_ui.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ target = "engine/node.lua"
7878
pattern = "if self.children.h_popup then"
7979
position = 'at'
8080
match_indent = true
81-
payload = "if self.children.h_popup and not (self.force_popup and self:force_popup()) then"
81+
payload = '''
82+
if self.children.h_popup and not (self.force_popup and self:force_popup() and Cryptid["force_tooltips"]) then
83+
'''
8284

8385
# Let description tooltips work for any object
8486
[[patches]]
@@ -96,4 +98,4 @@ target = "card.lua"
9698
pattern = "if self.highlighted and self.area and self.area.config.type ~= 'shop' then"
9799
position = 'at'
98100
match_indent = true
99-
payload = "if self.highlighted and self.area and self.area.config.type ~= 'shop' and not self.area.config.collection then"
101+
payload = "if self.highlighted and self.area and self.area.config.type ~= 'shop' and not self.area.config.collection then"

0 commit comments

Comments
 (0)