View Single Post
  #1  
Old 03-16-2011, 05:34 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Show the weapon´s image?

Hey there.
I´m trying to make an own Inventory, and got sticked at one part. How could I let a GUI show the image of the selected weapon?
This are parts I got:
The GUI part of the Inventory_Weapon_Image:
PHP Code:
new GuiShowImgCtrl("Inventory_Weapon_Image") {
  
305;
  
54;
  
width 32;
  
height 32;
  
image "block.png";

When I press one Item at the lister:
PHP Code:
function Inventory_WeaponList.onMouseDown() {
  
temp.selected Inventory_WeaponList.getSelectedText();
  
Inventory_Weapon_Image.image findweapon(temp.selected).this.image;

And something added in the weapon:
PHP Code:
function onCreated() {
  
this.image "bomb.png";

The result is that I just get a big 0...
Reply With Quote