Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May be decouple common part to separate project? #28

Open
zerkalica opened this issue Jan 12, 2017 · 1 comment
Open

May be decouple common part to separate project? #28

zerkalica opened this issue Jan 12, 2017 · 1 comment

Comments

@zerkalica
Copy link

zerkalica commented Jan 12, 2017

Hi. I am newbie in lua. And i want to create some lua scipt for mpv and looking for ui toolkit.

For example in node.js we have blessed and react-blessed for building curses-like app

You components looks like react, but not decoupled from low-level curses-like functionality. May be extract common part from mpv-progress bar and create mpv ui toolkit on top of something kind of blessed but for lua?

@torque
Copy link
Owner

torque commented Jan 14, 2017

Frankly, while I have been pushing the components of this script in that direction and I think it's a decent idea, there are two major reasons that I don't see this happening in the near future:

  • I don't have the time and energy to develop and maintain such a library.
  • At a technical level, the mpv script UI stuff has no way to control layout or get text metrics, so there is no way to avoid line collision or control wrapping, which precludes the existence of a useful generic UI library. This is not an insurmountable hurdle, but it does require solutions implemented and integrated upstream (either in mpv or libass).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants