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") {
x = 305;
y = 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...