Skip to content

Commit 3f8937a

Browse files
committed
Make tooltips in Manage Installed Mods instantly appear
1 parent 744db2c commit 3f8937a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ and only contains the latest changes.
33
Its purpose is to be shown in Olympus when updating.
44

55
#changelog#
6-
Display tooltips on highlighted mods in Manage Installed Mods
6+
Tooltips in the Manage Installed Mods screen now appear without delay

src/scenes/modlist.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ local function updateLabelTextForMod(mod)
290290
local label, tooltip = getLabelTextFor(mod.info)
291291
mod.row:findChild("title"):with({
292292
tooltipText = tooltip,
293+
tooltipWaitDuration = 0,
293294
interactive = tooltip and 1 or 0
294295
}):setText(label)
295296
end
@@ -919,6 +920,7 @@ function scene.item(info)
919920
local item = uie.paneled.row({
920921
uie.label(label):with({
921922
tooltipText = tooltip,
923+
tooltipWaitDuration = 0,
922924
interactive = tooltip and 1 or 0
923925
}):as("title"),
924926

src/tooltip.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function tooltipHandler.tooltipWindowUpdate(orig, self, dt)
6666

6767
if hovered then
6868
local tooltipText = rawget(hovered, "tooltipText")
69+
tooltipWaitDuration = rawget(hovered, "tooltipWaitDuration") or 0.5
6970

7071
if tooltipText then
7172
tooltipWindow.children[1]:setText(tooltipText)

0 commit comments

Comments
 (0)