lisa-wolfgang / Bubble-Wrap

A visual text bubble editor for The Legend of Zelda: Breath of the Wild and Tears of the Kingdom.
https://lisa-wolfgang.github.io/Bubble-Wrap
MIT License
7 stars 2 forks source link

Add different control fields, polish data output #1

Open SDarkMagic opened 1 year ago

SDarkMagic commented 1 year ago

Hi, I found this project recently, and am interested in helping add methods for handling the different control types that are seen in the msbt files, such as variables, color, sound, animation, etc. Additionally, formatting the copied output text as a new entry for an msbt file instead of just a raw text entry might make sense for better organization of data. What would be the best way to go about working on this?

lisa-wolfgang commented 1 year ago

Hi @SDarkMagic, thanks for your interest in contributing!

Bubble Wrap stores text and control node data during runtime as DOM elements inside each bubble. Since Bubble Wrap is a visual editor, you would need to provide an interface to easily modify any control nodes that are added, but without affecting the spacing of the surrounding text. The buttons to add these nodes can go anywhere for now; I'm currently working on a toolbar for these that will go next to the bubble format dropdown. Also, note that color and size support were added in v0.8, and delay support is in progress as per the roadmap.

As for copied output text, I've intentionally left it as a fragment of a MSYT entry because Bubble Wrap doesn't yet support all of the features found in .msbt files, so users may want to work on entries in a piecemeal fashion. Once Bubble Wrap is more feature-complete, support will be added for exporting as the contents of a full MSYT file and directly importing/exporting .msyt files.