Functions/events to make more responsive UIs #433
Labels
area-Core
This affects CC's core (the Lua runtime, APIs, computer internals).
enhancement
An extension of a feature or a new feature.
feedback wanted
Tell me what you want, what you really really want.
wontfix
A bug which I won't fix or an enhancement which won't be implemented.
Functions and events
mouse_move (mouse_hover)
Basically, detects when the mouse is moved between CC pixels. Of course this would only work on advanced computers. What it returns would probably be similar to mouse_click. If the mouse were to move outside of the screen area, the event wouldn't be called until it goes inside the screen area again.
term.getMousePosition()
This function would return the current mouse position on the screen. If it isn't within the screen's area, it would return nil.
Why this would be useful
Currently, UIs are quite boring in CC. Adding these functions and events would give developers the opportunity to make better looking UIs.
The text was updated successfully, but these errors were encountered: