Best way to display text within a plugin from an external file?
-
Hey guys,
I would like to set up an external file that contains the "about" information for the plugin and have the plugin display its content.
What format can this file be in?
Is there a way to display RTF or HTML or it has to be a script file with plain text, which then gets loaded into a label?I want to avoid having to create a new label for every line of text I want to present. Is this possible?
-
@gorangrooves Is there a reason you don't want to use the built-in
about
floating tile? -
@d-healey No reason at all. Where does the text get derived from?
-
@gorangrooves I think it's meant to be derived from project properties, but it's a little bugged with some of the info. But you can edit the bugged info in the property editor.
-
@gorangrooves said in Best way to display text within a plugin from an external file?:
Is there a way to display RTF or HTML or it has to be a script file with plain text, which then gets loaded into a label?
I think you could probably borrow some concepts from the Simple Copy Protection script to write/display data from a .js file.
-
@dustbro Yes, that's what I was thinking, but wanted to see if there was a more "proper" way of doing it.
@d-healey Your screenshot reminds of why I decided not to use the "about" panel. Nobody cares what the plugin was built with, at what time etc.
I want to include relevant info such as what the plugin does and where to find more information on how to use it, as well as who designed it, produced it etc. -
Nobody cares what the plugin was built with, at what time etc.
You will when you get a bug/error report :D
-
You can really easily draw text to a panel. Can't you just pull in a file and print whatever text you retrieve to a panel or multiple panels?