Skip to content

Commit 0dea7b1

Browse files
committed
Moved right click battle menu to mouse cursor.
1 parent 27b9bb7 commit 0dea7b1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

LuaMenu/widgets/chobby/components/battle/battle_list_window.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ end
428428

429429
function BattleListWindow:MakeJoinWatchOptionPopup(parentButton, battleID, battle, items, mx, my, mouseButton)
430430
local optionMenu = ComboBox:New {
431-
x = 0,
432-
bottom = 0,
431+
x = mx,
432+
y = my - 20,
433433
width = 150,
434-
height = 60,
434+
height = 20,
435435
padding = {0, 0, 0, 0},
436436
caption = "",
437437
ignoreItemCaption = true,
@@ -460,6 +460,7 @@ function BattleListWindow:MakeJoinWatchOptionPopup(parentButton, battleID, battl
460460
end
461461
},
462462
}
463+
optionMenu:SetPos(mx, my - 20)
463464
optionMenu:MouseDown(mx, my, mouseButton)
464465
screen0:FocusControl(optionMenu)
465466
end

0 commit comments

Comments
 (0)