Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Support any GUI system to HTML binding #3

Open
blockspacer opened this issue Sep 16, 2019 · 0 comments
Open

Support any GUI system to HTML binding #3

blockspacer opened this issue Sep 16, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@blockspacer
Copy link
Owner

blockspacer commented Sep 16, 2019

Now project can support any GUI via custom cobalt html nodes.

Some ideas:

  • add html/css support to IMGUI
  • add html/css support QT widgets
  • add html/css support to Godot UI widgets
  • e.t.c.

You can create them in two ways:

  • Complex way: see cobalt/render_tree/skottie_node.h
  • Better and easier way: see src/cobalt/src/cobalt/render_tree/custom_node.h and src/extended_html/input_box/input_node.h

Just wrap your GUI element into html node and bind cobalt event to your GUI event.

You may also need to convert your GUI element into pixels, so it will be possible to use it as SKIA texture. For very complex UI you may want to create one big texture instead of a lot of smaller ones (for performance reasons).

Your GUI system will gain not only ease of designing via html/css, but also css animation system, 3D on-hover effects, e.t.c.

Related to #2

@blockspacer blockspacer added enhancement New feature or request help wanted Extra attention is needed labels Sep 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant