I'm just using Python for this.
For example,
Code: Select all
textsize = 25 #There would be a default here and in a screen, the variable is changed by the user which displays changes in the live composite
Code: Select all
def composite_example(st, at):
return LiveComposite(
(0, 0),
(0, 0), Text("Just some text", size=(textsize)),
),.1
Code: Select all
style.user_text.size = textsize
Code: Select all
def composite_example(st, at):
return LiveComposite(
(0, 0),
(0, 0), Text("Just some text", style="user_text"),
),.1
Code: Select all
style.user_text.size = 30
Will I just need to create a function for this instead?