Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssGUI Tooltips (tooltips)

Category:script
Author(s):Aibo
Downloads:2234
Rate:You need to be logged in to vote
Rating:3.7 (39 Votes)
Description:
simple dx tooltips resource for GUI elements:

it reads gui element data ("tooltip-text") on hover, and displays the tooltip. for example:
setElementData(button, "tooltip-text", "Your tooltip text goes here", false)
that's all, tooltip will be displayed on hover.

to change colors you can set (hex color) element data "tooltip-color" for text and "tooltip-background" for background. example:

setElementData(button, "tooltip-text", "Your tooltip text goes here", false)
setElementData(button, "tooltip-color", "#FFFFFF", false)
setElementData(button, "tooltip-background", "#666666", false)

this tooltip will be with white text on dark gray background.

font option requires a font name and size in 1 string, example:
setElementData(button, "tooltip-font", "bankgothic 0.5", false)

also some trick you can use:
if you can set tooltip parameters (without the actual tooltip-text) on some parent gui element - it will affect all the children's tooltips. for example:

setElementData(someWindow, "tooltip-background", "#33AA33", false)
will set green background for all tooltips in someWindow. and of course you can override it by specifying colors for particular tooltip.
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.3 2011-10-28 05:42:09 * fixed 0 height gui-tab bug (tooltips with gui-tab parents were getting wrong y-offset) Download
1.0.1 2011-10-19 19:25:03 * added switching to bottom display if there's no place for tooltip at the top * add "tooltip-font" option (see description) Download
1.0.0 2011-10-18 19:04:37 First public release Download