 |
|
BaselScript |
Beschreibung
Dialog
Dialog Struktur:
dialog name
tile=xxx [name=xxx] text=xxx [control=xxx] [hint = xxx]
…
end dialog
Tile: title / input / text / button
tile=title Dialog Titel
tile=title text=const/#field [color= xxx ] [style= xxx] [size= xxx]
tile=input Eingabefeld
tile=input name=#name control = xxx hint = xxx
#name = In diesem Feld wird der eingegebene Wert gespeichert.
control = number/date/string - Eingabeformat-Kontrolle
hint - Tooltip auf dem Eingabefeld
tile=text Textfragment
tile=text text=const/#field [color= xxx ] [style= xxx] [size= xxx]
tile=button Taste
tile=button name=#name text = text section= name
text = xxxx - Tastentext
section= name - Sektion name ausführen, wenn die Taste gedrückt wird
Beispiel
scene = 1 name="dialog" bgcolor =gray
section init
call dialog= dia
end section
dialog dia
tile=title text="Please enter your name and password"
tile = text name="t1" text="name" color=#777777 style=italic size=25
tile = input name = #name
tile = text name="t2" text="password" color=#777777 style=italic size=25
tile = input name = #pass
tile = button text = save section = save
tile = button text = x section = back and dialog
end dialog
section save
message #name " "+ #pass
end section
section back
call script=basic
end section
end scene 1
Man kann den Hintergrund der Schaltflächen transparent machen. Dazu müssen Sie vor dem Aufruf "call dialog =..." #_buttons_transparent = 1 setzen
Sie können diesen Wert auch in globalen Variablen festlegen.