sW & sH

Started by MEGAMIND, Jun 22, 2018, 06:36 PM

Previous topic - Next topic

MEGAMIND

a favour i just need some fixng with my code
sW <- GUI.GetScreenSize().X;
sH <- GUI.GetScreenSize().Y;

downbar<-
{
window = null
}

function Script::ScriptLoad()
 {
downbar.window = GUIWindow(VectorScreen(0,777), VectorScreen(1400, 50), Colour(20, 20, 20, 400), "www.tdcs.tk",GUI_FLAG_TEXT_TAGS);
}
how and where to add sH to a vector and sW

ik sw is width and x-axis of screen , and sh is height y-axis of screen but where do we actually addem

MatheuS

downbar.window = GUIWindow(VectorScreen(sW * 0.1, sH * 0.3), VectorScreen(sW * 0.05, sH * 0.03), Colour(20, 20, 20, 400), "www.tdcs.tk",GUI_FLAG_TEXT_TAGS);
Just an example.
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.