Jump to content

Make inventory


dugasz1

Recommended Posts

Posted

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?

Sorry for lot of questions and thanks for the answers! :)

Posted

Maybe you can combine it with onClientGUIMouseEnter/Leave.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Whit onClientMouseEnter i know which gui he entered but how can i check his clicked? Can you write me an example?

Sorry for lot of questions and thanks for the answers! :)

Posted

yeah, i think about this but i hope it to i can make it whit down and up click

Sorry for lot of questions and thanks for the answers! :)

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...