Blaawee Posted January 14, 2012 Posted January 14, 2012 hello again , i'm trying to use tooltips with the freeroam gamemode and i don't know how to use it i tried to use with setElementData , but the freeroam syntax is diffrent so i tried like this : {'btn', id='kill', onclick=killLocalPlayer}, setElementData("kill", "tooltip-text", "انتحآر", false) but not working is there any way to do it
Castillo Posted January 14, 2012 Posted January 14, 2012 Try this: setElementData(getControl("kill"), "tooltip-text", "انتحآر", false)
AeroXbird Posted January 14, 2012 Posted January 14, 2012 hello again , i'm trying to use tooltips with the freeroam gamemode and i don't know how to use it i tried to use with setElementData , but the freeroam syntax is diffrent so i tried like this : {'btn', id='kill', onclick=killLocalPlayer}, setElementData("kill", "tooltip-text", "انتحآر", false) but not working is there any way to do it To use setElementData you need to define the element you want to set it to on the FIRST argument, so that would be for clientside: setElementData(getLocalPlayer(), "tooltip-text", "انتحآر", false)
Castillo Posted January 14, 2012 Posted January 14, 2012 Exactly, is a tooltip for GUI elements. Have you tried my way?
Blaawee Posted January 14, 2012 Author Posted January 14, 2012 yup , not work i setElementData onClientResourceStart
Castillo Posted January 14, 2012 Posted January 14, 2012 setElementData(getControl(wndMain, "kill"), "tooltip-text", "انتحآر", false) It may work, not sure.
Blaawee Posted January 14, 2012 Author Posted January 14, 2012 you the man dude that's work thx allot
Blaawee Posted January 14, 2012 Author Posted January 14, 2012 solid when i try to setElement to : setElementData(getControl(wndSkin, "set"), "tooltip-text", "اختيآر", false) the tooltip not shown
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