GUI scripting

Dw chicken, only the coolkids thank you.

Ok. Make sure you hit the format/style button next time also so people can read it a bit easier.

Oi, Jatz I finished the jester head just waiting for Ben to commit it.

Yeww

chicken just so you know use the break command to end the timeout loop

just putting it out there and plz dont regard me as a faggot or something for correcting im just trying to help :frowning:

I like the new tricxta :slight_smile:

GAHH the timeout wont fkin DIEEEEE

Can someone just fix my button on this one lol?

The confirm button xP plz just fix that

This would be very kind considering I’ve been trying to make a GUI since literally 5:00 P.M.
Can I just get a fix of this???

//Made by Tricxta
if (leftmousebutton || timeout){
  timereverywhere;
  showimg 500,kondies_sign.gif,screenwidth/2-(imgwidth(kondies_sign.gif)/2),screenheight/2-(imgheight(kondies_sign.gif)/2);
  changeimgvis 500,4;
  showimg 501,kondies_signcancel.gif,screenwidth/2-140,screenheight/2+25;
  changeimgvis 501,5;
  showimg 502,kondies_signconfirm.gif,screenwidth/2+80,screenheight/2+25;
  changeimgvis 502,5;
  if (leftmousebutton){
    if (mousescreenx in |screenwidth/2-140,screenwidth/2-74| && mousescreeny in |screenheight/2+25,screenheight/2+58|)close();
    else if (mousescreenx in |screenwidth/2+80,screenwidth/2+146| && mousescreeny in |screenheight/2+25,screenheight/2+58|)buy();
  }
  timeout=0.05;
}


function close(){
  hideimgs 500,502;
  break;
}
function buy(){
  hideimgs 500,502;
  toweapons shittytest;
  break;
}

fixed but kondie, please take note of your faults.
in the line
else if (mousescreenx in |screenwidth/2+80,screenwidth/2+146| && mousescreeny in |screenheight/2+25,screenheight/2+58|)buy();

your definitions were way off and i dont know how you got them. Note:this problem had nothing to do with the timeout
To find out the clickable area just take the values of where you placed them then find out the width and height of the image and then add them, I said this in a previous post and im saying it again because I think your just not trying now, please note you wont get direct help every time on the forums, people will give you commands you must use or tell you to go read newfeatures **** or commands.rtf

timeout = 0; Should end the timeout. I use break to bail out of a for loop or while loop. For instance if you’re checking some fuckers string list and they don’t have something you break out of the loop as there’s no point continuing the loop as they already don’t have the necessary shit.

hmmm nice approach :smiley: Ill stick to my way though lol :munch:

Thanks guys.