Jump to content

Make inventory


dugasz1

Recommended Posts

Hello! I wanna make my own inventory system but i get a little problem. I wanna you can move you items, when your state "down" you pick up the item and draging it and when the state is "up" you put it a slot or drop it. The problem is i want to make it whit

addEventHandler ( "onClientGUIClick", getRootElement(), addLabelOnClick ) 

event but the wiki write this Please note currently only the up state is supported. and my plane is failed. :( I thinking about

addEventHandler ( "onClientClick", getRootElement(), addLabelOnClick ) 

event but whit it i can't call whit "source" the gui (all slot is a guiImage and set a number in it for all slots whit setElementData to i can reference it)

Any idea how i can made it?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...