
Only works after the 2nd time PlayGUI is awoken. On the 1st time it does this stuff.
The X position of 319 is fine, it's that 916 that makes no sense.
getRes(); does the same thing.
Putting this in the position field when the swatch control is being made also results in 916.
10ms after PlayGUI is awoken also results in 916.
Moving the resize command above the parent results in 916.
Echoing the math results gives 628, which is what it should be with a height of 768.
I don't understand.
function PlayGui::onWake(%this,%a,%b,%c)
{
parent::onWake(%this,%a,%b,%c);
MiningHUD.schedule(10,resize,(getWord($pref::Video::resolution,0)-386)/2,getWord($pref::Video::resolution,1)-140,386,104);
}