View Single Post
  #3  
Old 03-16-2011, 05:58 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
You should use a GuiBitmapControl for this.
PHP Code:
new GuiBitmapCtrl("Inventory_Weapon_Image") { 
  
305
  
54
  
width 32
  
height 32
  
bitmap "block.png"

PHP Code:
function Inventory_WeaponList.onMouseDown() { 
  
temp.selectedtxt Inventory_WeaponList.getSelectedText(); 
  
temp.imagestring = (@temp.selectedtxt).weaponimage;
  
Inventory_Weapon_Image.setbitmap(temp.imagestring); 

PHP Code:
function onCreated() { 
  
this.weaponimage "bomb.png"

__________________
Reply With Quote