Position placed text entries for forms and RPG sheets #267
-
Hello folks! I am planning on having it used in my app, in a way to fulfill RPG character sheets, for example the image below. So two quick questions arise, would it be possible to change the Text Input editor to an approach where the text appears where you click? Rather than having it written at the center of the screen and everything blurring dark? And second, would it be possible to be able to kind of CTRL+C / CTRL+V quickly or some sort of ALT+DRAG quick copy so we can fill in forms faster? I know it is a stretch for the tool since these aren't images but hey this works. If you have any pointers in how to go about to achieve it, ideas welcome! Best, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
You could do an overlay UI with gestures detectors and with that add the Text with the add layer |
Beta Was this translation helpful? Give feedback.
-
Hi @hm21 - Correct, I am storing the JSON and history to keep the form dynamic, using the output image only for preview and thumbnail. It is working fine. I don't expect to do any mapping of text to field, is just a visual representation and a convenient way of filling in sheets, no logic behind them, at least not now (perhaps in the future I could give them IDs or whatever). One challenge that remains, is that I would like the custom widget to spawn a "placeholder text" under the mouse/finger position perhaps, to tap on its final position, rather than placing it and then having to adjust, but this is a minor thing. For Copy/Paste then this would be similar too, I'd love to have a copy/"paste many" function so paste but keep pasting, so a column of 10 rows can be quickly setup. Finally: The editing text would also be great to edit in place, rather than in the middle of the screen. |
Beta Was this translation helpful? Give feedback.
I understand that calculations with the
InteractiveViewer
can be very difficult, which was the reason I created a custom solution for the crop-rotate editor to avoid those difficulties. However, after I thought a bit about your problem, I think a possible solution might be to add your click listener directly inside theInteractiveViewer
. This way, you can retrieve the correctly transformed coordinates immediately.To implement this, you would only need to adjust the placement of the listener so that it is inside
bodyItemsRecorded
instead ofbodyItems
, as shown in the example below.