11/06/15, 11:43 AM | #1 |
Building "Tooltips" for Gamepad
Hello there, still me with this.. !@?#£ gamepad UI.
So, in keyboard we got this :
Each tooltip got its own methods, properties to help devs to build custom tooltips. In gamepad, we got ... something else. There is not really tooltip, but "Information panels" even if the code, there called tooltips. Data is same, but displayed differently. User move with his joystick between pins and info is displayed. Ex of panels : Core tooltips : Consider almost all core InformationTooltip as not displayed. All thoses little help tooltips are simply.. not displayed fo console users. Some of them are displayed. Map is the best exemple. I found also some info on the C panel, the buffs tooltip is displayed, but that's all. So How to write a "panel" Gamepad Tooltip ? ZO_ScrollTooltip_Gamepad is the base. But it's a bit.. empty in functions. To find list of available tooltips objects, you'll need to find the tooltip object (the CT_TOOLTIP) with the inheritance of ZO_ScrollTooltip_Gamepad and .. virtual is not our friend. there is a lot of potential object and findig them seems obviously hard. I found 2 tooltips. one by /zgoo a lot, and 1 in the code iself. It was : ZO_MapLocationTooltip_Gamepad so.. how to do ? For map pins ok, but what about other stuff ? So, We'll use ZO_GamepadTooltip & ZO_Tooltip ZO_GamepadTooltip got a nice method :GetTooltip() intended to rewrite the object and append or delete info ? maybe, to check. ZO_GamepadTooltip:GetTooltip() seems to accept 1 parameter which is :
Do this and you'll get your object in a variable ? Then, how to modify the tooltip itself ? You'll need to use one of the methods of ZO_Tooltip : http://wiki.esoui.com/API#ingame.5Ctooltip But.. there is no AddLine or LayoutString or LayoutLine.. ?! How to do ? To get our :AddLine(), you'll need To work on the trolly object ZO_MapLocationTooltip_Gamepad or get the name of the ****** object (good luck). Lua Code:
ex : Lua Code:
Or Still untested , Don't succeed to make it work. Get the Style of the Tooltip : For now I didn't found how to get the style of a tooltip. I can guess it, but not get it.. Acquire the tooltip (don't work) Lua Code:
Acquire the section Lua Code:
Add line. Lua Code:
The list of styles is defined in ZO_TOOLTIP_STYLES (/zgoo ZO_TOOLTIP_STYLES) well maybe it's a lot of things untested or not really good to do, but it's a start, if you got any tips, come on. |
|
11/06/15, 12:10 PM | #2 |
A little screenshot and associated code for map tooltips :
Lua Code:
|
|
11/06/15, 01:03 PM | #3 |
In addition to Ayantir:
GAMEPAD_TOOLTIPS seems to be the official global name. :AddLine accepts a dynamic list of styles. A "style" is a table which contains style-values. /zgoo ZO_TOOLTIP_STYLES to see which values are supported. The style-value defined first wins => The priority goes from left to right. Lua Code:
Last edited by votan : 11/06/15 at 01:48 PM. |
|
11/07/15, 09:58 AM | #4 | ||
Wandamey
Guest
Posts: n/a
|
not very clear, but just check a station. That one is almost /zgoo mousable btw. could help understanding others. |
||
Wandamey |
ESOUI » Developer Discussions » Tutorials & Other Helpful Info » Building "Tooltips" for Gamepad |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|