What I want:
That's two different methods in one file. One must be deleted or uncommented.
How to get rid of the Tooltip-class dependency and how do I customize this in an easy way?
Or for method 2:
How can I update the tooltip position while hovering?
- Tooltip must follow the mousecursor all the time and should never move off-screen near the sides/top/bottom
- Text should be inside a frame for readability (high contrast with dark background frame)
- Style easy customizable (textsize, bold, textcolor, background-color)
- I'd highly prefer a method without a custom displayable and screen-based instead
- I'd prefer a method that uses GetTooltip()
- Avoid dependency on the legacy "Tooltip"-class if a custom displayable is needed (which I guess is the case since screen code does not have an event for "while hovering" to update the mouse x/y)
That's two different methods in one file. One must be deleted or uncommented.
You don't have permission to view the spoiler content.
Log in or register now.
- A modified custom displayable based on
You must be registered to see the links
(I have no idea what the author of the original source did with the padding code, it caused exceptions for me and I removed it)
pro:
pro:
So the question is either for method 1:pro:
- works the way I want
- hard to customize (I took me forever to find out how to add a background-rectangle)
- hard to use and high chance to f*ck things
- based on legacy Tooltip-class
pro:
- easy to customize
- easy to use
- does not work how I want, I'm not aware of a way to update the tooltip position while hovering, the tooltip only appears at the position where the mouse entered the tooltip-object
How to get rid of the Tooltip-class dependency and how do I customize this in an easy way?
Or for method 2:
How can I update the tooltip position while hovering?