Page 1 of 1

[SOLVED] Get tooltip icons

Posted: 20 July 2016, 17:27
by Woodruff
Hi everybody 8-)

Most silly, boring, uninteresting question of all universe... I'd like to get the two icon images used for tooltip (those you get when it is created with this.addTooltip method):
-The question mark which is in front of the help string
-The pointer which is in front of the action string

The reason is that I would include them in some HTML tooltips for consistency. Indeed, these tooltips are just a line of text with just a little image inside, so they look weird without these icons...

Thanks :)

Tcheby

Re: Get tooltip icons

Posted: 21 July 2016, 05:20
by Victoria_La
What is actual question? You cannot use inspector see url?
This is html for the info (I just looked at tooltip html in chrome inspector)
<img class="imgtext" src="http://1.studio.boardgamearena.com:8081 ... p_info.png" alt="info">

Or if you want to code to generate you can look as .js code of the parent in the same inspector

Code: Select all

                    getHtmlFromTooltipinfos: function(help, action) {
                        var html = "";
                        if (help != "") {
                            html = "<img class='imgtext' src='" + g_themeurl + "img/layout/help_info.png' alt='info' /> <span class='tooltiptext'>" + help + "</span>";
                            if (action != "") {
                                html += "<br/>";
                            }
                        }
                        if (action != "") {
                            html += "<img class='imgtext' src='" + g_themeurl + "img/layout/help_click.png' alt='action' /> <span class='tooltiptext'>" + action + "</span>";
                        }
                        return html;
                    },

Re: Get tooltip icons

Posted: 25 July 2016, 11:39
by Woodruff
Hi Victoria_la

The actual question was to get a link on this image so you've answered it. Silly question indeed :)
I used Firebug inspector to find that url but I failed because I didn't manage to get the HTML code while pointing the object to get the tooltip. Did not know I could do it with Chrome inspector that's cool.

Thanks a lot!

Tcheby