gump element tooltips
Posted: Thu Aug 10, 2017 8:56 pm
So I have a small question and possible feature request if it is not yet available. I am in the process of creating a gump and want to utilize the tooltip functionality but with that in mind, I have some custom strings I want to display in the tooltip depending on the gump element being moused over.
For example, I want to use 1114057 which should allow me to add a custom string to be displayed but I can not figure out how to do this when it comes to the gump menu. I tried setting up an array and pushing the information into the GFTooltip function but was presented with tooltip displaying "Error (MegaCliloc) StringID Not Found : 0" so obviously that does not work.
So my question is, is there a way to add a custom string to a gump element's tooltip and if not would it be possible to add such functionality?
Update: Turley answered my question.
"tooltip 1114057 @my custom text@"
This seems to only work on clients above 6.x, as tested by Yukiko, I've updated the Gump pkg to allow for a custom string. Note, you have to use a cliloc that actually allows for it, as in it accepts arguments such as the aforementioned number.
For example, I want to use 1114057 which should allow me to add a custom string to be displayed but I can not figure out how to do this when it comes to the gump menu. I tried setting up an array and pushing the information into the GFTooltip function but was presented with tooltip displaying "Error (MegaCliloc) StringID Not Found : 0" so obviously that does not work.
So my question is, is there a way to add a custom string to a gump element's tooltip and if not would it be possible to add such functionality?
Update: Turley answered my question.
"tooltip 1114057 @my custom text@"
This seems to only work on clients above 6.x, as tested by Yukiko, I've updated the Gump pkg to allow for a custom string. Note, you have to use a cliloc that actually allows for it, as in it accepts arguments such as the aforementioned number.