imjp94 / gd-YAFSM

Yet Another Finite State Machine for godot
MIT License
534 stars 25 forks source link

The problem of the state addition popup menu being created outside the screen in Godot4 YAFSM StateMachine Editor View #57

Open namuda opened 1 year ago

namuda commented 1 year ago

Godot 4.01 gd-YAFSM version 0.6.0 Windows11 dual monitor used:

imjp94.yafsm/scenes/StateMachineEditor.gd file in 314 line context_menu.position = get_viewport().get_mouse_position() -> context_menu.position = get_screen_transform().origin + get_local_mouse_position() 395 line state_node_context_menu.position = get_viewport().get_mouse_position() -> state_node_context_menu.position = get_screen_transform().origin + get_local_mouse_position()

imjp94 commented 1 year ago

PR #54 should fix this bug