PHP Code:
function onPlayerChats(){
if(player.chat == ":gui"){
this.on = !this.on;
if(this.on){
new GuiBitmapButtonCtrl("Button_Test"){
Button_Test.visible = true;
resize(200, 20, 600, 800);
normalbitmap = "c_inventorytest6-13-2013.png";
mouseoverbitmap = "c_inventorytest6-13-2013.png";
pressedbitmap = "c_inventorytest6-13-2013.png";
bitmaprectangle = {100,100,90,92}; //hasn't clipped the image at all -
text = "Press me!"; //for me. am i doing something -
//wrong?
}
}else{
player.chat = "Button off!";
Button_Test.visible = false;
Button_Test.destroy();
}
}
}
this is what i have right now; i tried using the whole inventory image, thinking i could resize it and just use a portion of it as a button. except i still have yet been able to resize it. the image seems to either stretch the colors, or squish them together o.o. i'll keep trying but i'm not really sure how to fix that. any ideas? thanks for all the help and tips everyone.