What is the right syntax to setting a focus neighbour via code?
I have a Final Fantasy stlye menu (vertical main menu on the left, item grid menu on the right). When I press the ui_right button, the focus transitions from the left menu to the right one, but then it is stuck there unless i press ui-down (which moves the focus out of the right grid menu and down on the left vertical menu). I want the focus to return from the right menu to the top button on the left menu.
Since the buttons in the grid menu are instantiated during runtime, I'd have to set focus neighbours via code, but neither of these variations did work:
get_child(0).focus_neighbour_left = NodePath("../../../LeftMenu/01Item")
get_child(0).focus_neighbour_left = "../../../LeftMenu/01Item"
get_child(0).set_focus_neighbour_left = "../../../LeftMenu/01Item"
They all give me function nonexistent in base button error :P
Any help would be appreciated :)