diff options
Diffstat (limited to 'decker')
-rw-r--r-- | decker/game.deck | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/decker/game.deck b/decker/game.deck index 41edc41..e393924 100644 --- a/decker/game.deck +++ b/decker/game.deck @@ -1,6 +1,6 @@ {deck} version:1 -card:4 +card:1 size:[512,342] name:"game.deck" @@ -9,19 +9,40 @@ image:"%%IMG0AgABVgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA {widgets} name:{"type":"field","size":[100,20],"pos":[128,32],"value":"Carl"} label-name:{"type":"field","size":[100,20],"pos":[16,32],"locked":1,"font":"menu","show":"transparent","value":"Name"} -health:{"type":"field","size":[100,20],"pos":[128,60],"locked":1,"value":"333"} +health:{"type":"field","size":[100,20],"pos":[128,60],"locked":1,"value":"437"} label-health:{"type":"field","size":[100,20],"pos":[16,60],"locked":1,"font":"menu","show":"transparent","value":"Health"} -attack:{"type":"field","size":[100,20],"pos":[128,89],"locked":1,"value":"229"} +attack:{"type":"field","size":[100,20],"pos":[128,89],"locked":1,"value":"47"} label-attack:{"type":"field","size":[100,20],"pos":[16,89],"locked":1,"font":"menu","show":"transparent","value":"Attack"} -defense:{"type":"field","size":[100,20],"pos":[128,117],"locked":1,"value":"773"} +defense:{"type":"field","size":[100,20],"pos":[128,117],"locked":1,"value":"80"} label-defense:{"type":"field","size":[100,20],"pos":[16,117],"locked":1,"font":"menu","show":"transparent","value":"Defense"} generate:{"type":"button","size":[160,32],"pos":[42,148],"script":"player.0","text":"Generate","style":"rect"} {script:player.0} on click do - health.text:random[1000 1] - attack.text:random[1000 1] - defense.text:random[1000 1] + health.text:random[500 1] + attack.text:random[100 1] + defense.text:random[100 1] +end +{end} + +{card:combat} +script:"combat.0" +{widgets} +player:{"type":"grid","size":[292,140],"pos":[93,60],"script":"combat.1","widths":[32,32],"format":"sis","value":{"name":["Alice","Bob","Charlie"],"age":[23,25,17],"hobby":["running","cooking","birdwatching"]}} + +{script:combat.0} +on view do + combat.widgets.player.value:insert name age hobby with + "Alice" 23 "running" + "Bob" 25 "cooking" + "Charlie" 17 "birdwatching" + end +end +{end} + +{script:combat.1} +on click row do + end {end} |