1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-10 23:46:13 +00:00
Funkin/source/funkin/ui/haxeui/components/FunkinMenuBar.hx
2023-09-12 19:43:19 -04:00

33 lines
630 B
Haxe

package funkin.ui.haxeui.components;
import funkin.input.Cursor;
import haxe.ui.events.MouseEvent;
import haxe.ui.containers.menus.MenuBar;
import haxe.ui.core.CompositeBuilder;
/**
* A HaxeUI menu bar which:
* - Changes the current cursor when each button is hovered over.
*/
class FunkinMenuBar extends MenuBar
{
public function new()
{
super();
registerListeners();
}
private function registerListeners():Void {}
private function handleMouseOver(event:MouseEvent)
{
Cursor.cursorMode = Pointer;
}
private function handleMouseOut(event:MouseEvent)
{
Cursor.cursorMode = Default;
}
}