I'm making a notes skin and by looking at other skins the most common choice for that is the InputText plugin.
This works pretty well expect it doesn't save or display multiple lines. Looks like the reason for that is variables do not accept multilines.
If I type:
Code: Select all
-Test1
-Test2
It saves the text as a variable in the skins .ini as such:
Code: Select all
Input=-Test1
-Test2
Is there a solution or workaround for that?
This is the full code:
Code: Select all
[Variables]
@include=#@#styles.inc
Input=
[MeasureInput]
Measure=Plugin
Plugin=InputText
X=10
Y=10
W=290
H=290
DefaultValue="#Input#"
FontFace=#Font#
FontColor=#Lavender#
FontWeight=600
FontSize=12
StringAlign=Left
SolidColor=#Surface0#
Command1=[!WriteKeyValue "Variables" "Input" "$UserInput$"][!Refresh]
ClipString=1
DynamicVariables=1
AntiAlias=1
[Input]
Meter=String
X=10
Y=10
W=290
H=290
Text=#Input#
FontFace=#Font#
FontColor=#Lavender#
FontWeight=600
FontSize=12
StringAlign=Left
LeftMouseUpAction=[!CommandMeasure "MeasureInput" "ExecuteBatch 1"]
ClipString=1
DynamicVariables=1
AntiAlias=1