Let's see how'd I get the menu to pop up..
Well the menuSystem is more complex than a menu for just a single weapon with afew buttons. Hmm..
NPC Code:
if (mousedown){
if (leftmousebutton&&this.menu_on==false){
draw_menu();
this.menu_on=true;
}elseif(leftmousebutton){
click_check();
}
}
function draw_menu(){
menux = mousescreenx;
menuy = mousescreeny;
showimg 6000,menu_picture,menux,menuy;
showimg 6001,@ButtonText,menux,menuy;
}
function click_check(){
if (mousescreenx in |menux,menux+imglenth| &&
mousescreeny in |menuy,menuy+imgheight|){
// do something =/
}else{
hideimg 6000;
hideimg 6001;
}
}
very simple version of what I did.... I did that just now without testing so =/ don't recomend using or even trying to use.
I aways make 3 dumb mistakes when doing stuff.
AHJ GOnna be LAte laterz