Wanted to test if this was possible and early experiments shows it does!
So let's look how we would say, set a text objects color.
{text-main}.fontcolor.r=100;
{text-main}.fontcolor.g=100;
{text-main}.fontcolor.b=100;
structure (of example above).
text = type of object to target
main = name of object that you wish to affect
.param targets a specific parameter e.g. text, font color, width etc
= sets the value!
Once you call the command, the renderer updates the theme accordingly
e.g.
{text-loc}.text=This text has been changed manually.
This will be a huge addition to the engine and will open up the ability to amend / render your own buttons, text, sprites and more to the screen.
For example you will be able to do:
{text-health}.new;
{text-health}.x=100;
{text-health}.y=200;
{text-health}.fontcolor.r=0;
{text-health}.fontcolor.g=128;
{text-health}.fontcolor.b=0;
{text-health}.fontsize=24;
I hope to eventually expose behaviours such as fade in/out, sine etc to allow animated text and more.