Jump to content
  • Create New...
  • 0

Set tooltip for some "slots"



Dear community,


I actually have these "slots" (not real slots there will be some images) which I want to show a tooltip if you move your mouse over:



These "slots" are defined in my python script (uiscript) as children of "TEST_Board":

						{ "name":"Test1", "type":"image", "x":34, "y":73, "image":DEFAULT_SLOT, },
						{ "name":"Test2", "type":"image", "x":74, "y":73, "image":DEFAULT_SLOT, },
						{ "name":"Test3", "type":"image", "x":114, "y":73, "image":DEFAULT_SLOT, },

How can I put an tooltip for them?



Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

If you're using ImageBox class then I think you should use this function:


For example:

self.xxx = self.GetChild("xxx")
self.xxx.OnMouseOverIn = self.your_tooltip_func_here

I didn't test it so I don't if it'll works by that way.


Good Luck

  • Love 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Read our Rules
  • Activity

    1. 0

      Need help with a small function

    2. 0

      How to Delay quest

    3. 0

      After choosing a character, it throws it at the login screen.

    4. 0

      Bonus Board Official like

    5. 0

      [ERROR] unfinished string , ranking quest .

    6. 0

      experience 0

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.