Closed elnabo closed 7 years ago
Can you add the flixel lib and just copy OpenFL's PR over, importing flash.Lib
so it compiles?
Ok it's on the todo list. Didn't see haxeui-flixel as it's not yet in the backend list.
Are you ok on how I do it for target that do not support it such as html5 ?
I think it has to be defined in every backend. If that target doesn't support changing the title, it should just be blank. So yeah your HTML5 example is fine if it's not possible to change there.
Ok, i've finished adding compatibility to all backends.
So one thing, in the haxeui-html5 could possibly set the page title? That might be neat.
Another thing, i wonder if this should be an initialisation option rather than a properly on screen?
Another thing, i wonder if this should be an initialisation option rather than a properly on screen?
It's useful to be able to change it, for instance web browser show the current tab title as window title, most editing app show the open file's name.
So one thing, in the haxeui-html5 could possibly set the page title? That might be neat.
It could be possible to set the page title via js. However, I think you can put multiple application on the same page, so the page title doesn't really correspond to the application title. So, I'm unsure what best in this case.
@ibilon - fair point, might want it to be dynamic.
@elnabo - in that case, having multiple apps on the same page, would you not just opt to not use title?
So, changing haxeui-html5 & haxeui-pixijs to use the page title as the application title.
It might make sense... i mean, if its possible, makes sense to implement in as many backends as possible.
I've updated html5 & pixijs to use base js to change the title.
And the others to display a warning when title cannot be changed.
Ok, all looks great... so one i accept all the PRs, this can be closed, right?
Yeah, it is what I had in mind.
Single remark here, but not sure if its relevant: https://github.com/haxeui/haxeui-nme/pull/16
Great... thanks @elnabo - all merged.... thanks again!
PR Status