Skip to content

Commit 8670a93

Browse files
committed
Most actions done
1 parent 56f28eb commit 8670a93

File tree

1 file changed

+77
-5
lines changed

1 file changed

+77
-5
lines changed

mostrami/resources/ecs/steps.txt

Lines changed: 77 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
select ContentSelect
2525
input TitleInput
2626
input LabelInput
27+
input DurationInput
28+
input TargetInput
29+
input URLInput
2730
img PlusIcon
2831
img DeleteIcon
2932
variable Steps
@@ -256,7 +259,7 @@ EditStep:
256259
set the style of LabelInput to `width:100%`
257260
set the content of LabelInput to property `label` of Item
258261

259-
! Add the buttons belo the table
262+
! Add the buttons below the table
260263
create TR in Table
261264
create TD in TR
262265
create TD in TR
@@ -295,22 +298,22 @@ EditSetContent:
295298
create TD in TR
296299
set the content of TD to `Blocks:`
297300
create TD in TR
298-
put property `blocks` of Item into Blocks
299301
create BlockTable in TD
300302
set the style of BlockTable to `width:100%;border:1px solid gray`
301303
create BlockRow in BlockTable
302304
set the style of BlockRow to `display:flex`
303305
create Header in BlockRow
304306
set the style of Header to `flex:1`
305-
set the content of Header to `Block names`
307+
set the content of Header to `Blocks`
306308
create Header in BlockRow
307309
set the style of Header to `flex:1`
308-
set the content of Header to `Content names`
310+
set the content of Header to `Content`
309311
create BlockData in BlockRow
310312
set the style of BlockData to `width:2em;text-align:center`
311313
create PlusIcon in BlockData
312314
set the style of PlusIcon to `width:1em;margin-top:0.1em`
313315
set attribute `src` of PlusIcon to `resources/icon/plus.png`
316+
put property `blocks` of Item into Blocks
314317
put the json count of Blocks into N
315318
set the elements of BlockSelect to N
316319
set the elements of ContentSelect to N
@@ -341,14 +344,18 @@ EditSetContent:
341344

342345
EditShow:
343346
EditHide:
347+
gosub to EditBlockList
344348
return
345349

346350
EditPause:
347351
EditHold:
352+
gosub to EditDuration
348353
return
349354

350355
EditFadeUp:
351356
EditFadeDown:
357+
gosub to EditBlockList
358+
gosub to EditDuration
352359
return
353360

354361
EditCrossfade:
@@ -358,10 +365,75 @@ EditTransition:
358365
return
359366

360367
EditGoto:
368+
create TR in Table
369+
create TD in TR
370+
set the style of TD to `width:6em`
371+
set the content of TD to `Target:`
372+
create TD in TR
373+
create TargetInput in TD
374+
set the style of TargetInput to `width:100%`
375+
set the content of TargetInput to property `target` of Item
361376
return
362377

363378
EditLoad:
379+
create TR in Table
380+
create TD in TR
381+
set the style of TD to `width:6em`
382+
set the content of TD to `URL:`
383+
create TD in TR
384+
create URLInput in TD
385+
set the style of URLInput to `width:100%`
386+
set the content of URLInput to property `url` of Item
364387
return
365388

366389
EditBlockList:
367-
return
390+
create TR in Table
391+
create TD in TR
392+
set the content of TD to `Blocks:`
393+
create TD in TR
394+
create BlockTable in TD
395+
set the style of BlockTable to `width:100%;border:1px solid gray`
396+
create BlockRow in BlockTable
397+
set the style of BlockRow to `display:flex`
398+
create Header in BlockRow
399+
set the style of Header to `flex:1`
400+
set the content of Header to `Blocks`
401+
create BlockData in BlockRow
402+
set the style of BlockData to `width:2em;text-align:center`
403+
create PlusIcon in BlockData
404+
set the style of PlusIcon to `width:1em;margin-top:0.1em`
405+
set attribute `src` of PlusIcon to `resources/icon/plus.png`
406+
put property `blocks` of Item into Blocks
407+
put the json count of Blocks into N
408+
set the elements of BlockSelect to N
409+
set the elements of DeleteIcon to N
410+
put 0 into B
411+
while B is less than N
412+
begin
413+
put element B of Blocks into Block
414+
create BlockRow in BlockTable
415+
set the style of BlockRow to `display:flex`
416+
index BlockSelect to B
417+
create BlockSelect in BlockRow
418+
set the style of BlockSelect to `flex:1`
419+
set BlockSelect from BlockNames as Block
420+
create BlockData in BlockRow
421+
set the style of BlockData to `width:2em;text-align:center`
422+
index DeleteIcon to B
423+
create DeleteIcon in BlockData
424+
set the style of DeleteIcon to `width:1em;margin-top:0.1em`
425+
set attribute `src` of DeleteIcon to `resources/icon/stop.png`
426+
add 1 to B
427+
end
428+
return
429+
430+
EditDuration:
431+
create TR in Table
432+
create TD in TR
433+
set the style of TD to `width:6em`
434+
set the content of TD to `Duration:`
435+
create TD in TR
436+
create DurationInput in TD
437+
set the style of DurationInput to `width:100%`
438+
set the content of DurationInput to property `duration` of Item
439+
return

0 commit comments

Comments
 (0)