This commit is contained in:
Rowland 2026-01-21 10:04:26 +08:00
parent 497ecc8608
commit 52b07aa64f

View File

@ -1008,7 +1008,7 @@ class MyWorld(CoreWorld):
# 右键菜单
if rm.show_context_menu and rm.context_menu_file:
imgui.set_next_window_position(rm.context_menu_position[0], rm.context_menu_position[1])
imgui.set_next_window_pos(imgui.ImVec2(rm.context_menu_position[0], rm.context_menu_position[1]))
with imgui_ctx.begin_popup("context_menu", imgui.WindowFlags_.no_title_bar |
imgui.WindowFlags_.no_resize | imgui.WindowFlags_.always_auto_resize) as popup:
if popup: