Blaawee Posted January 14, 2012 Share 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 Link to comment
Castillo Posted January 14, 2012 Share Posted January 14, 2012 Try this: setElementData(getControl("kill"), "tooltip-text", "انتحآر", false) Link to comment
AeroXbird Posted January 14, 2012 Share 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) Link to comment
Blaawee Posted January 14, 2012 Author Share Posted January 14, 2012 but the element is button Link to comment
Castillo Posted January 14, 2012 Share Posted January 14, 2012 Exactly, is a tooltip for GUI elements. Have you tried my way? Link to comment
Blaawee Posted January 14, 2012 Author Share Posted January 14, 2012 yup , not work i setElementData onClientResourceStart Link to comment
Castillo Posted January 14, 2012 Share Posted January 14, 2012 setElementData(getControl(wndMain, "kill"), "tooltip-text", "انتحآر", false) It may work, not sure. Link to comment
Blaawee Posted January 14, 2012 Author Share Posted January 14, 2012 you the man dude that's work thx allot Link to comment
Blaawee Posted January 14, 2012 Author Share Posted January 14, 2012 solid when i try to setElement to : setElementData(getControl(wndSkin, "set"), "tooltip-text", "اختيآر", false) the tooltip not shown 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