manve1 Posted October 21, 2012 Share Posted October 21, 2012 I need help on how to get the player skin when he clicks on gridList to take the job+skin, so that when he presses on button called "yesOut" he would get his skin back Link to comment
TAPL Posted October 21, 2012 Share Posted October 21, 2012 I need help on how to get the player skin when he clicks on gridList to take the job+skin Event: onClientGUIClick -- when he open the gridList getElementModel -- get his current skin setElementData -- save the skin id as element data so that when he presses on button called "yesOut" he would get his skin back Event: onClientGUIClick -- when he click on button "yesOut" getElementData -- get the skin id from the element data that you have save it when the gridList opened setElementModel -- set the skin back Link to comment
manve1 Posted October 21, 2012 Author Share Posted October 21, 2012 sorry tapl, but i don't get what you mean i don't get the save part actually Link to comment
TAPL Posted October 21, 2012 Share Posted October 21, 2012 sorry tapl, but i don't get what you meani don't get the save part actually Aren't you mean that you have a grid list where it has skin ids and when you click on it, it will set the skin to show you, but if you decided to cancel and close the window, you want the old skin back? Link to comment
manve1 Posted October 21, 2012 Author Share Posted October 21, 2012 EDIT: I mean like you go in marker, if u are in a group called "Cleaner" then a GUI pops up, if u double click the skin selection for the Duty, it will give u the skin and when u go into off duty marker and u select to go off duty, u get old skin back Link to comment
manve1 Posted October 21, 2012 Author Share Posted October 21, 2012 No one can help me? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now