I periodically have this error show up in Studio, can you please fix it (when it appears game UI does not load).
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Template has a deprecated constructor in /var/tournoi/release/tournoi-171014-1817-gs/www/lib/phplib/template.inc on line 65
There is also were annoying dojo warnings on console coming mostly from adaptStatusBar, they fill the console on every mouse move, there are 400 of them just on reload
dojo.js:15 DEPRECATED: dojo.coords() Use dojo.position() or dojo.marginBox().
I overrode it just to get rid of warnings but I really want to gave it fixed in original source (of cause I don't have source so
all locals here are mangled)
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Template has a deprecated constructor in /var/tournoi/release/tournoi-171014-1817-gs/www/lib/phplib/template.inc on line 65
There is also were annoying dojo warnings on console coming mostly from adaptStatusBar, they fill the console on every mouse move, there are 400 of them just on reload
dojo.js:15 DEPRECATED: dojo.coords() Use dojo.position() or dojo.marginBox().
I overrode it just to get rid of warnings but I really want to gave it fixed in original source (of cause I don't have source so
all locals here are mangled)
Code: Select all
/**
* @Override This is here just to override one from bga, and not have annoying warnings on console
*/
adaptStatusBar : function() {
var _bf0 = dojo.position("after-page-title");
var _bf1 = dojo.position("page-title");
var _bf2 = dojo.window.getBox();
var _bf3 = _bf2.h;
var _bf4 = _bf3 / 10;
if (!dojo.hasClass("page-title", "fixed-page-title") && _bf0.y < 0 && _bf1.h < _bf4) {
dojo.addClass("page-title", "fixed-page-title");
} else {
if (dojo.hasClass("page-title", "fixed-page-title") && (_bf0.y >= 0 || _bf1.h >= _bf4)) {
dojo.removeClass("page-title", "fixed-page-title");
dojo.style("page-title", "width", "auto");
dojo.style("after-page-title", "height", "0px");
}
}
if (dojo.hasClass("page-title", "fixed-page-title")) {
dojo.style("page-title", "width", (_bf0.w - 10) + "px");
dojo.style("after-page-title", "height", _bf1.h + "px");
}
},