I'd doing some modding stuff with Fallout 2 using sFall API. I'd like to create a new window on the game main screen using create_win function when the user is hovering over the target object (enemy) so I've added a call to the create_win function inside HOOK_TARGETOBJECT hook handler like that:
The problem is that this doesn't work - the window won't show up. When i call the create_win_flag in the main script procedure start everything is OK - the window is being drawn.
Code:
procedure my_hover begin
create_win_flag("ArmorInfoWnd", 0, 0, 320, 200, WIN_FLAG_DONTMOVE);
...
end