If you use a
guiSwatchCtrl for the GUI itself, you don't need to resize anything.
new guiSwatchCtrl( blackOverlayGUI )
{
position = "0 0";
extent = "0 0";
visible = true;
mColor = "0 0 0 255";
};
Together with:
canvas.pushDialog( blackOverlayGUI );
canvas.popDialog( blackOverlayGUI );This would automatically cause your overlay to fill the entire screen.
you can use the gui swatch control and change the color in the box that says colors: 0 0 0 0
Er, no, it'd be 0 0 0 255.
If the translucency is 0, it'd be invisible.
also for the size use the box that says extent. i think the size to cover the screen is 800 600
Depends on the game resolution.