Jump to content
  • 0

Set tooltip for some "slots"


Yiv

Question

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:

9974ab128c.png

 

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?

 

Regards

Link to comment

2 answers to this question

Recommended Posts

  • 0

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

OnMouseOverIn

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

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. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

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.