mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
17 lines
375 B
Haxe
17 lines
375 B
Haxe
package funkin.util;
|
|
|
|
import haxe.ui.tooltips.ToolTipRegionOptions;
|
|
|
|
class HaxeUIUtil
|
|
{
|
|
public static function buildTooltip(text:String, ?left:Float, ?top:Float, ?width:Float, ?height:Float):ToolTipRegionOptions
|
|
{
|
|
return {
|
|
tipData: {text: text},
|
|
left: left ?? 0.0,
|
|
top: top ?? 0.0,
|
|
width: width ?? 0.0,
|
|
height: height ?? 0.0
|
|
}
|
|
}
|
|
}
|