0

I have a widget where I make my dialogue boxes. I want to have args[0-3] represent differences in CSS Styles, like Border Color and background colour.

I have something among the lines of this:

<<Widget Dialog>>
<<nobr>>
<<if $args.length == 4>>
<<set _col = $args[0], _bgcol = $args[1], _name = $args[2], _text to  args[4]>>
<</nobr>>
@@#notmcdialog;border-color:_bgcol;background-color:_col;
_text@@
<</widget>>

I have tried many things like putting _col into a <<print>> macro also have been attempting <<=>> <<->> but nothing seems to work unless I just put the value in myself by hand

working example: @@#notmcdialog;border-color:#f5deb3;background-color:#f5deb3;text@@

isn't working:

@@#notmcdialog;border-color:_col;background-color:_col;text@@,

@@#notmcdialog;border-color:<<=_col>>;background-color:<<=_col>>;text@@,

@@#notmcdialog;border-color:<<-_col>>;background-color:<<-_col>>;text@@

for the following image, I have changed the Body's colour so you can see that Dialog's text :

enter image description here

This is what it looks like when I manually set the colour instead of using _col in the Twine Widget

enter image description here

Oktu
  • 1
  • 1

0 Answers0