Quote:
Originally Posted by ffcmike
It seems as if no matter what server you log on, whether there are any scripted GUI controls or not, after opening the client for the first time GraalControl is unfocussed and you can't move until you click the screen, even happens when I attempt to force focus once everything has initialized.
This wouldn't be a problem for the vast majority of players, but in terms of someone logging on for the first time you never know, might not occur to them.
|
I managed to fix this with a combination of using Chris Vimes solution:
Quote:
Originally Posted by cbk1994
PHP Code:
function onFirstResponderChanges(temp.obj) {
if (temp.obj.dontStealFocus) {
this.lastResponder.makeFirstResponder(true);
} else {
this.lastResponder = temp.obj;
}
}
Then you could just set dontStealFocus on any GUI control and it wouldn't steal focus.
|
plus:
PHP Code:
ChatBar_ToggleTaskBarButton.dontstealfocus = true;
DownloadProgress_CloseButton.dontstealfocus = true;
and then upon all systems initializing, manually setting focus to GraalControl or whatever object should have focus via:
PHP Code:
obj.makeFirstResponder(true);