It looks like you're new here. If you want to get involved, click one of these buttons!
local mybtn02 = ButtonTextUDDP.new({ imgup="gfx/ui/btn_03.png", text="B\nU\nT\nT\nO\nN", font=g_font1, fontsize=32, textcolorup=mytextcolorup, textcolordown=mytextcolordown, imagepaddingx=64, imagepaddingy=32 }) |
Comments
https://wiki.giderosmobile.com/index.php/UI_Buttons#Button_with_Text.2C_Pixel.2C_Images_UDD.2C_9_Patch.2C_Tooltip
PS: one problem though, if you move the mouse too quickly the tooltip will remain on screen, the same on mobiles!
PS2: I have removed the TOUCH event listeners as they seem not necessary
Any improvements would be much appreciated
Is using mouse hover in an app a frame killer?
For example I have this code to check if a button is hovered with the mouse:
Viva gideros!
EDIT: it is valid code only if you use it correctly:
I am becoming good at it
Likes: MoKaLux
When mouse is moved translate its coords to grid coords, then pick all objects in that grid rect and check for "hitTestPoint". This method is used in bump.
Actually, you can use bump itself to speed things up
Likes: MoKaLux
I like it because once I know what buttons I need I can program them in gideros and then modify the UI as I wish for both size and position.
I use it a lot in gideros (box2d, r3d, cbump, now GUI) thanks to antix for showing me how to use it.
I think I will use it using imgui as well.
Likes: antix