Вверх ↑
Этот топик читают: Гость
Ответов: 19
Рейтинг: 21
#1: 2023-08-02 15:20:21 ЛС | профиль | цитата
Интересных тем на форуме все меньше, что бы немного разбавить скуку вот такое баловство вышло.
Схема

Add(MainForm,1214487,455,175)
{
Width=1920
Height=1080
Color=0
Caption="Drop_text"
BorderStyle=0
WindowsState=2
Point(Width)
Point(Height)
Point(onKeyDown)
link(onKeyDown,10262512:doCompare,[(494,202)(494,181)])
}
Add(If_else,10262512,511,175)
{
Op2=Integer(27)
link(onTrue,1214487:doClose,[(550,181)(550,167)(445,167)(445,202)])
}
Add(PaintBox,324295,511,231)
{
Width=1920
Height=1080
Align=5
Color=0
Point(onMouseDown)
Point(doBringToFront)
}
Add(MultiElementEx,800294,511,287)
{
link(Bitmap,324295:Bitmap,[])
}
BEGIN_SDK
Add(EditMultiEx,5032481,21,21)
{
WorkCount=#5:##add|
DataCount=#6:Bitmap|5:Index|
Width=1070
Height=508
VOffset=70
HOffset=350
Point(##add)
link(##add,4336738:doEvent1,[(50,97)(50,265)])
}
Add(LineBreakEx,8554824,392,343)
{
Caption="X"
Type=3
link(_Data,12095085:Result,[])
}
Add(LineBreakEx,6043661,287,343)
{
Caption="Y"
Type=3
link(_Data,6244430:Count,[])
}
Add(LineBreakEx,518403,798,210)
{
Caption="X"
Type=2
}
Add(LineBreakEx,498210,805,224)
{
Caption="Y"
Type=2
}
Add(MultiElementEx,13989938,721,196)
{
}
BEGIN_SDK
Add(EditMultiEx,4840818,14,14)
{
WorkCount=#8:doEvent1|8:doRandom|
VarCount=#5:Color|
DataCount=#5:Index|
Width=172
VOffset=70
HOffset=70
link(doEvent1,11467725:doEvent1,[])
link(Color,4062941:Color,[])
}
Add(RGB,4062941,84,147)
{
B=180
link(G,13774692:Random,[])
}
Add(Hub,11467725,28,84)
{
link(onEvent1,13774692:doRandom,[])
link(onEvent2,4062941:doRGB,[(74,97)(74,153)])
}
Add(Random,13774692,91,84)
{
Min=200
Max=255
}
END_SDK
Add(Hub,1834365,658,245)
{
OutCount=7
link(onEvent1,9092366:doDraw,[(690,251)(690,153)])
link(onEvent2,13989938:doEvent1,[(697,258)(697,202)])
link(onEvent3,5253420:doFont,[])
link(onEvent4,198922:doDraw,[(767,272)(767,258)])
link(onEvent6,4621440:doEvent1,[])
}
Add(CounterEx,6244430,287,280)
{
Min=-32
Max=0
Step=32
Default=-32
Point(onThroughMax)
Point(doMax)
link(onNext,471333:doEvent1,[(347,286)(347,237)])
link(onThroughMax,1309552:doWork2,[])
}
Add(CounterEx,3674003,231,273)
{
Max=10
Point(onThroughMax)
Point(doMax)
link(onThroughMax,6244430:doNext,[])
}
Add(LineBreakEx,844315,721,371)
{
Caption="X"
Type=2
}
Add(Math,4861988,770,343)
{
OpType=1
Op2=512
ResultType=0
link(Op1,14895781:getVar,[])
link(Op2,12095085:Result1,[(783,334)(405,334)])
}
Add(Timer,11055183,119,273)
{
Interval=5
Enable=1
link(onTimer,3677299:doFor,[])
}
Add(For,3677299,175,273)
{
End=12
link(onEvent,3674003:doNext,[])
}
Add(Font,5253420,714,259)
{
Font=[Symbol,20,1,0,2]
link(onFont,198922:doFont,[])
link(Color,13989938:Color,[])
}
Add(Img_Text,198922,784,252)
{
Point(X)
Point(Y)
Point(doFont)
link(Bitmap,14413677:getVar,[])
link(Text,8934349:Var1,[(797,229)(545,229)])
link(X,518403:getVar,[])
link(Y,498210:getVar,[])
}
Add(Img_Rectangle,14469501,707,441)
{
Point2=2097184
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
link(Bitmap,11392491:getVar,[])
link(Point1,3807810:Point,[])
}
Add(PointXY,3807810,721,399)
{
link(X,844315:getVar,[])
link(Y,4861988:Result,[(734,390)(776,390)])
}
Add(LineBreakEx,14895781,770,308)
{
Caption="Y"
Type=2
}
Add(Screen,1601661,119,315)
{
}
Add(Math,6763317,119,378)
{
OpType=7
Op2=32
link(onResult,2145407:doEvent1,[])
link(Op1,1601661:Width,[])
}
Add(Hub,4336738,70,259)
{
OutCount=3
link(onEvent1,6763317:doOperation,[(95,265)(95,384)])
link(onEvent3,11055183:doTimer,[])
}
Add(Math,3617833,231,343)
{
Op2=1024
link(onResult,6244430:doMax,[(275,349)(275,293)])
link(Op1,1601661:Height,[(237,334)(202,334)(202,362)(132,362)])
}
Add(Hub,2145407,175,378)
{
OutCount=3
link(onEvent1,3617833:doOperation,[(207,384)(207,349)])
link(onEvent2,12095085:doMax,[(326,391)(326,300)])
link(onEvent3,1309552:doWork3,[(361,398)])
}
Add(Memory,7351177,504,238)
{
link(onData,14877015:doEvent1,[])
}
Add(MultiElementEx,12095085,392,287)
{
link(onRandom,3674003:doMax,[(432,293)(432,327)(221,327)(221,286)])
}
BEGIN_SDK
Add(EditMultiEx,9253230,21,21)
{
WorkCount=#8:doRandom|5:doMax|
EventCount=#8:onRandom|
VarCount=#6:Result|7:Result1|
Width=391
Height=144
link(doRandom,9916499:doRandom,[(60,27)(60,76)])
link(doMax,9916499:doMax,[(53,34)(53,97)])
link(Result,3847005:Result,[(27,110)(125,110)])
link(Result1,9995693:Result,[(34,117)(237,117)])
}
Add(Random,9916499,70,70)
{
Max=0
Point(doMax)
link(onRandom,3847005:doOperation,[])
}
Add(Random,15274809,287,70)
{
@Hint=#8:скорость|
Min=30
Max=160
link(onRandom,9253230:onRandom,[(326,76)(326,27)])
AddHint(-20,62,62,13,@Hint)
}
Add(Math,3847005,119,70)
{
OpType=2
Op2=32
link(onResult,12138105:doRandom,[])
}
Add(Random,12138105,175,70)
{
@Hint=#13:длинна змейки|
Min=5
Max=25
link(onRandom,9995693:doOperation,[])
AddHint(-35,63,92,13,@Hint)
}
Add(Math,9995693,231,70)
{
OpType=2
Op2=32
link(onResult,15274809:doRandom,[])
}
END_SDK
Add(LineBreakEx,15080206,1015,245)
{
Caption="X"
Type=2
}
Add(MultiElementEx,10653342,938,231)
{
}
BEGIN_SDK
Add(EditMultiEx,1031962,14,14)
{
WorkCount=#8:doEvent1|8:doRandom|
VarCount=#5:Color|
DataCount=#5:Index|
Width=172
VOffset=70
HOffset=70
link(doEvent1,10917155:doEvent1,[])
link(Color,16125291:Color,[])
}
Add(RGB,16125291,84,147)
{
link(G,4246642:Random,[])
}
Add(Hub,10917155,28,84)
{
link(onEvent1,4246642:doRandom,[])
link(onEvent2,16125291:doRGB,[(74,97)(74,153)])
}
Add(Random,4246642,91,84)
{
Min=40
}
END_SDK
Add(Hub,4621440,861,280)
{
OutCount=5
link(onEvent1,10653342:doEvent1,[(914,286)(914,237)])
link(onEvent2,1440910:doFont,[])
link(onEvent3,12859257:doOperation,[(914,300)(914,363)])
link(onEvent4,5289275:doDraw,[(891,307)(891,468)])
link(onEvent5,8342332:doDraw,[(991,314)(991,286)])
}
Add(LineBreakEx,14704217,945,371)
{
Caption="X"
Type=2
}
Add(Math,12859257,1001,357)
{
OpType=1
Op2=32
ResultType=0
link(Op1,9021834:getVar,[])
}
Add(Font,1440910,931,287)
{
Font=[Symbol,20,1,0,2]
link(onFont,8342332:doFont,[])
link(Color,10653342:Color,[])
}
Add(Img_Text,8342332,1001,280)
{
Point(X)
Point(Y)
Point(doFont)
link(Bitmap,7960080:getVar,[])
link(Text,2050649:Value,[])
link(X,15080206:getVar,[])
link(Y,14950402:Var3,[(1028,271)(986,271)])
}
Add(Img_Rectangle,5289275,931,462)
{
Point2=2097184
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
link(Bitmap,16429360:getVar,[(937,453)(902,453)])
link(Point1,10176199:Point,[])
}
Add(PointXY,10176199,945,413)
{
link(X,14704217:getVar,[])
link(Y,14950402:Var1,[(958,397)])
}
Add(LineBreakEx,9021834,1001,329)
{
Caption="Y"
Type=2
}
Add(GetDataEx,14950402,980,392)
{
Angle=1
link(Data,12859257:Result,[(1007,397)])
}
Add(Img_Rectangle,9092366,721,147)
{
Point2=2097184
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
link(Bitmap,6596993:getVar,[])
link(Point1,7309819:Point,[])
}
Add(LineBreakEx,3550946,735,70)
{
Caption="X"
Type=2
}
Add(LineBreakEx,11103579,770,70)
{
Caption="Y"
Type=2
}
Add(PointXY,7309819,735,98)
{
link(X,3550946:getVar,[])
link(Y,11103579:getVar,[(748,89)(776,89)])
}
Add(LineBreakEx,12492403,371,35)
{
Caption="bmp"
Type=3
link(_Data,5032481:Bitmap,[])
}
Add(LineBreakEx,14413677,784,196)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,6596993,721,49)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,11392491,707,350)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,7960080,1001,189)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,16429360,896,427)
{
Caption="bmp"
Type=2
}
Add(Memory,2050649,1008,210)
{
}
Add(Hub,471333,357,231)
{
link(onEvent1,5992193:In,[(386,237)(386,216)])
link(onEvent2,10306143:doRandom,[])
}
Add(DoData,3891527,539,294)
{
link(onEventData,2050649:doValue,[(845,300)(845,216)])
link(Data,8934349:Var2,[])
}
Add(LineBreak,351650,490,294)
{
Caption="old"
link(Out,3891527:doData,[])
Primary=[5992193,-91,-84]
}
Add(Random,10306143,392,238)
{
Min=97
Max=122
link(onRandom,15957358:doConvert,[])
}
Add(ConvertorEx,15957358,448,238)
{
Mode=4
link(onResult,7351177:doValue,[])
link(Data,10306143:Random,[(454,229)(440,229)(440,278)(398,278)])
}
Add(If_else,11451984,595,238)
{
Type=2
link(onFalse,1834365:doEvent1,[])
link(Op1,12566877:getVar,[])
link(Op2,2418655:Height,[(608,222)(629,222)])
}
Add(Screen,2418655,616,182)
{
}
Add(LineBreakEx,12566877,595,161)
{
Caption="Y"
Type=2
}
Add(Hub,14877015,553,238)
{
link(onEvent1,11451984:doCompare,[])
link(onEvent2,12623104:doEvent1,[(585,251)(585,349)])
}
Add(GetDataEx,8934349,539,273)
{
Angle=3
link(Data,7351177:Value,[(510,278)])
}
Add(Hub,12623104,658,343)
{
link(onEvent1,4861988:doOperation,[])
link(onEvent2,14469501:doDraw,[(697,356)(697,447)])
}
Add(HubEx,1309552,357,287)
{
link(onEvent,12095085:doRandom,[])
}
END_SDK
Add(Timer,1463335,455,231)
{
Interval=25
link(onTimer,324295:doRefresh,[])
}
Add(Timer,2852982,455,287)
{
Interval=100
AutoStop=60
link(onTimer,800294:##add,[])
}

Немного доделал.

Редактировалось 3 раз(а), последний 2023-08-23 21:43:54
карма: 1

3
Голосовали:ric, zhorik5, sla8a
Ответов: 871
Рейтинг: 322
#2: 2023-08-03 14:03:29 ЛС | профиль | цитата
Бежит только буква Q так как она первая в строке. Не хватает связи от Rnd и Copy позиция.
карма: 1

1
Голосовали:Flapiotun
Ответов: 19
Рейтинг: 21
#3: 2023-08-03 14:15:58 ЛС | профиль | цитата
kamakama писал(а):
Бежит только буква Q так как она первая в строке. Не хватает связи от Rnd и Copy позиция.


Хм... У меня все работает и без этой связи. Всегда проверяю перед копирование схемы работает или нет. На всякий случай поправлю.
Спасибо за тест.
карма: 1

0
Ответов: 871
Рейтинг: 322
#4: 2023-08-03 22:19:48 ЛС | профиль | цитата
Flapiotun, попробуй заменить...

Add(StrList,12366680,427,133)
{
Strings=#1:Q|1:W|1:E|1:R|1:T|1:Y|1:U|1:I|1:O|1:P|1:L|1:K|1:J|1:H|1:G|1:F|1:D|1:S|1:A|1:Z|1:X|1:C|1:V|1:B|1:N|1:M|1:q|1:w|1:e|1:r|1:t|1:y|1:u|1:i|1:o|1:p|1:a|1:s|1:d|1:f|1:g|1:h|1:k|1:l|1:z|1:x|1:c|1:v|1:b|1:n|1:m|1:1|1:2|1:3|1:4|1:5|1:6|1:7|1:8|24:9 |
Point(doGetString)
Point(onGetString)
Point(String)
}

карма: 1

0
Ответов: 721
Рейтинг: 154
#5: 2023-08-03 23:26:39 ЛС | профиль | цитата
Flapiotun, свойство Position=0 в компоненте doCopy


Add(MainForm,1214487,525,161)
{
Width=1920
Height=1080
Color=0
Caption="Drop_text"
BorderStyle=0
WindowsState=2
Point(Width)
Point(Height)
Point(onKeyDown)
link(onKeyDown,10262512:doCompare,[(564,188)(564,167)])
}
Add(If_else,10262512,581,161)
{
Op2=Integer(27)
link(onTrue,1214487:doClose,[(620,167)(620,153)(515,153)(515,188)])
}
Add(PaintBox,324295,581,217)
{
Width=1920
Height=1080
Align=5
Color=0
Point(onMouseDown)
Point(doBringToFront)
}
Add(MultiElementEx,800294,581,273)
{
link(Bitmap,324295:Bitmap,[])
}
BEGIN_SDK
Add(EditMultiEx,5032481,21,21)
{
WorkCount=#5:##add|
DataCount=#6:Bitmap|5:Index|
Width=713
Height=382
VOffset=70
HOffset=350
Point(##add)
link(##add,4336738:doEvent1,[(39,97)(39,146)])
}
Add(LineBreakEx,8554824,357,259)
{
Caption="X"
Type=3
link(_Data,12095085:Result,[])
}
Add(LineBreakEx,6043661,259,259)
{
Caption="Y"
Type=3
link(_Data,6244430:Count,[])
}
Add(LineBreakEx,518403,651,105)
{
Caption="X"
Type=2
}
Add(LineBreakEx,498210,658,126)
{
Caption="Y"
Type=2
}
Add(MultiElementEx,13989938,574,112)
{
}
BEGIN_SDK
Add(EditMultiEx,4840818,14,14)
{
WorkCount=#8:doEvent1|8:doRandom|
VarCount=#5:Color|
DataCount=#5:Index|
Width=172
VOffset=70
HOffset=70
link(doEvent1,11467725:doEvent1,[])
link(Color,4062941:Color,[])
}
Add(RGB,4062941,84,147)
{
link(G,13774692:Random,[])
}
Add(Hub,11467725,28,84)
{
link(onEvent1,13774692:doRandom,[])
link(onEvent2,4062941:doRGB,[(74,97)(74,153)])
}
Add(Random,13774692,91,84)
{
Min=60
Max=255
}
END_SDK
Add(Hub,1834365,511,161)
{
OutCount=5
link(onEvent1,13989938:doEvent1,[(550,167)(550,118)])
link(onEvent2,5253420:doFont,[])
link(onEvent3,198922:doDraw,[(606,181)(606,167)])
link(onEvent4,4861988:doOperation,[(551,188)(551,244)])
link(onEvent5,14469501:doDraw,[(543,195)(543,335)])
}
Add(CounterEx,6244430,259,203)
{
Max=0
Step=32
Point(onThroughMax)
Point(doMax)
link(onNext,11967065:doRandom,[(319,209)(319,167)])
link(onThroughMax,3284335:doWork2,[])
}
Add(Random,11967065,357,161)
{
@Hint=#0:|20:(48-57) только цифры|21:(65-90) eng CAPS LOCK|25:(65-122) вместе с мелкими|23:(122-255) Русские буквы|0:|
Min=1
Max=70
link(onRandom,12109204:doCopy,[])
}
Add(CounterEx,3674003,203,196)
{
Max=10
Point(onThroughMax)
Point(doMax)
link(onThroughMax,6244430:doNext,[])
}
Add(LineBreakEx,844315,588,252)
{
Caption="X"
Type=2
}
Add(Math,4861988,637,238)
{
OpType=1
Op2=512
ResultType=0
link(Op1,14895781:getVar,[])
}
Add(Timer,11055183,91,196)
{
Interval=5
Enable=1
link(onTimer,3677299:doFor,[])
}
Add(For,3677299,147,196)
{
End=12
link(onEvent,3674003:doNext,[])
}
Add(Font,5253420,567,168)
{
Font=[Tahoma,20,1,0,204]
link(onFont,198922:doFont,[])
link(Color,13989938:Color,[])
}
Add(Img_Text,198922,637,161)
{
Point(X)
Point(Y)
Point(Orientation)
Point(doFont)
link(Bitmap,11576949:Var3,[(643,40)])
link(Text,7351177:Value,[(650,152)(496,152)(496,201)(461,201)])
link(X,518403:getVar,[])
link(Y,498210:getVar,[])
link(Orientation,4529554:Value,[])
}
Add(Memory,4529554,665,63)
{
Default=Integer(0)
}
Add(Img_Rectangle,14469501,574,329)
{
Point2=2097184
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
link(Bitmap,11576949:Var2,[(580,222)(615,222)])
link(Point1,3807810:Point,[])
}
Add(PointXY,3807810,588,287)
{
link(X,844315:getVar,[])
link(Y,4861988:Result,[(601,278)(643,278)])
}
Add(LineBreakEx,14895781,637,210)
{
Caption="Y"
Type=2
}
Add(Screen,1601661,91,84)
{
}
Add(Math,6763317,91,140)
{
OpType=7
Op2=32
link(onResult,2145407:doEvent1,[])
link(Op1,1601661:Width,[])
}
Add(Hub,4336738,49,140)
{
OutCount=3
link(onEvent1,6763317:doOperation,[])
link(onEvent3,11055183:doTimer,[(74,160)(74,202)])
}
Add(Math,3617833,189,140)
{
Op2=512
link(onResult,6244430:doMax,[(242,146)(242,216)])
link(Op1,1601661:Height,[(195,131)(104,131)])
}
Add(Hub,2145407,147,140)
{
OutCount=3
link(onEvent1,3617833:doOperation,[])
link(onEvent2,12095085:doMax,[(326,153)(326,223)])
link(onEvent3,3284335:doWork1,[(312,160)])
}
Add(HubEx,3284335,308,210)
{
link(onEvent,12095085:doRandom,[])
}
Add(GetDataEx,11576949,609,35)
{
Angle=3
link(Data,5032481:Bitmap,[(377,40)])
}
Add(Copy,12109204,406,161)
{
Position=0
Count=1
link(onCopy,7351177:doValue,[])
link(Str,14650656:Text,[])
link(Position,11967065:Random,[(419,152)(398,152)(398,201)(363,201)])
}
Add(StrList,14650656,406,112)
{
Strings=#83:QWERTYUIOPLKJHGFDSAZXCVBNMqwertyuiopasdfghklzxcvbnm123456789 |
}
Add(Memory,7351177,455,161)
{
link(onData,1834365:doEvent1,[])
}
Add(MultiElementEx,12095085,357,210)
{
link(onRandom,3674003:doMax,[(399,216)(399,248)(193,248)(193,209)])
}
BEGIN_SDK
Add(EditMultiEx,9253230,21,21)
{
WorkCount=#8:doRandom|5:doMax|
EventCount=#8:onRandom|
VarCount=#6:Result|7:Result1|
Width=391
Height=144
link(doRandom,9916499:doRandom,[(60,27)(60,76)])
link(doMax,9916499:doMax,[(53,34)(53,97)])
link(Result,3847005:Result,[(27,110)(125,110)])
link(Result1,9995693:Result,[(34,117)(223,117)])
}
Add(Random,9916499,70,70)
{
Max=0
Point(doMax)
link(onRandom,3847005:doOperation,[])
}
Add(Random,15274809,266,70)
{
Min=10
link(onRandom,9253230:onRandom,[(305,76)(305,27)])
}
Add(Math,3847005,119,70)
{
OpType=2
Op2=32
link(onResult,12138105:doRandom,[])
}
Add(Random,12138105,168,70)
{
Min=2
Max=14
link(onRandom,9995693:doOperation,[])
}
Add(Math,9995693,217,70)
{
OpType=2
Op2=32
link(onResult,15274809:doRandom,[])
}
END_SDK
END_SDK
Add(Timer,1463335,525,217)
{
Interval=25
link(onTimer,324295:doRefresh,[])
}
Add(Timer,2852982,525,273)
{
Interval=100
AutoStop=40
link(onTimer,800294:##add,[])
}

карма: 15

2
Голосовали:ric, zhorik5
Ответов: 19
Рейтинг: 21
#6: 2023-08-23 18:07:03 ЛС | профиль | цитата
Все тоже самое но в кубике на OpenGL


Add(MainForm,15261923,287,189)
{
Left=20
Top=105
Width=440
Height=421
Color=0
Caption="matrix cube"
BorderStyle=6
WindowsState=2
Point(onResize)
Point(Handle)
Point(onKeyDown)
Point(onMouseDown)
link(onCreate,11368830:doData,[(326,209)(326,160)])
link(onResize,16299401:doEvent1,[])
link(onKeyDown,11461895:doWork1,[(342,223)])
link(onMouseDown,11461895:doWork2,[])
}
Add(GL_Main,12986311,434,210)
{
Color=0
link(onInit,12198675:doInit,[])
link(onViewPort,14945863:doEvent1,[(489,223)(489,328)])
link(Handle,15261923:Handle,[(440,201)(353,201)(353,244)(293,244)])
}
Add(Timer,9506849,441,462)
{
Interval=3
Enable=1
link(onTimer,1049454:doEvent1,[])
}
Add(GL_GTools,771925,581,462)
{
Point(doClear)
Point(doPushMatrix)
Point(doPopMatrix)
link(onEvent,7411207:doNext,[])
}
Add(Hub,1049454,490,462)
{
OutCount=6
link(onEvent1,771925:doClear,[])
link(onEvent2,771925:doPushMatrix,[])
link(onEvent3,3680994:doEvent1,[(529,482)(529,685)])
link(onEvent4,9715162:doRotate,[(564,489)(564,531)])
link(onEvent5,771925:doPopMatrix,[(536,496)(536,482)])
link(onEvent6,12986311:doFlip,[(515,503)(515,383)(418,383)(418,230)])
}
Add(Hub,16299401,364,210)
{
OutCount=3
link(onEvent1,12986311:doInit,[])
link(onEvent2,12986311:doViewPort,[])
link(onEvent3,9506849:doTimer,[(395,230)(395,468)])
}
Add(GL_Perspective,3410847,553,371)
{
Fovy=90
zFar=30
link(Aspect,6811348:Result,[])
}
Add(GL_GluTools,12198675,497,210)
{
Texture=0
link(onInit,1101264:doEnabled,[])
}
Add(GL_Options,1101264,546,210)
{
link(onEvent,5851269:doEnabled,[])
}
Add(GL_Options,4378486,693,210)
{
Flag=3
}
Add(GL_Options,5809249,644,210)
{
Flag=2
link(onEvent,4378486:doEnabled,[])
}
Add(GL_Options,5851269,595,210)
{
Flag=10
link(onEvent,5809249:doEnabled,[])
}
Add(GL_Texture,14234746,749,686)
{
UseList=0
Index=1
link(Bitmap,3805009:Var3,[(755,628)])
}
Add(MultiElementEx,296993,924,525)
{
}
BEGIN_SDK
Add(EditMultiEx,4183434,0,0)
{
WorkCount=#7:doBegin|
EventCount=#7:onEvent|
Width=1056
Height=207
link(doBegin,7523016:doCallList,[(12,6)(12,27)])
}
Add(GL_VertexTexture,8410006,413,21)
{
T=1
link(onTexCoord,7164515:doVertex,[])
}
Add(GL_Vertex3D,7164515,462,21)
{
X=-10
Y=10
Z=10
link(onVertex,5978808:doTexCoord,[])
}
Add(GL_VertexTexture,4612391,315,21)
{
S=1
T=1
link(onTexCoord,10009330:doVertex,[])
}
Add(GL_Vertex3D,10009330,364,21)
{
X=10
Y=10
Z=10
link(onVertex,8410006:doTexCoord,[])
}
Add(GL_VertexTexture,4047880,217,21)
{
S=1
link(onTexCoord,14063594:doVertex,[])
}
Add(GL_Vertex3D,14063594,266,21)
{
X=10
Y=-10
Z=10
link(onVertex,4612391:doTexCoord,[])
}
Add(GL_VertexTexture,5832741,119,21)
{
link(onTexCoord,13234197:doVertex,[])
}
Add(GL_End,16226316,931,126)
{
link(onEnd,4183434:onEvent,[(970,132)(970,6)])
}
Add(GL_Begin,1397646,70,21)
{
BlockType=7
link(onBegin,5832741:doTexCoord,[])
}
Add(GL_Vertex3D,13234197,168,21)
{
X=-10
Y=-10
Z=10
link(onVertex,4047880:doTexCoord,[])
}
Add(GL_CallList,7523016,21,21)
{
Index=1
link(onCallList,1397646:doBegin,[])
}
Add(GL_VertexTexture,6752261,833,21)
{
S=1
link(onTexCoord,12696379:doVertex,[])
}
Add(GL_Vertex3D,11145609,588,21)
{
X=-10
Y=10
Z=-10
link(onVertex,1890786:doTexCoord,[])
}
Add(GL_VertexTexture,6860625,735,21)
{
S=1
T=1
link(onTexCoord,11547272:doVertex,[])
}
Add(GL_Vertex3D,12696379,889,21)
{
X=10
Y=10
Z=-10
link(onVertex,10655344:doTexCoord,[(928,27)(928,69)(109,69)(109,83)])
}
Add(GL_VertexTexture,1890786,637,21)
{
T=1
link(onTexCoord,15971436:doVertex,[])
}
Add(GL_Vertex3D,11547272,784,21)
{
X=10
Y=-10
Z=-10
link(onVertex,6752261:doTexCoord,[])
}
Add(GL_VertexTexture,5978808,539,21)
{
link(onTexCoord,11145609:doVertex,[])
}
Add(GL_Vertex3D,15971436,686,21)
{
X=-10
Y=-10
Z=-10
link(onVertex,6860625:doTexCoord,[])
}
Add(GL_VertexTexture,16365766,413,77)
{
S=1
link(onTexCoord,7033258:doVertex,[])
}
Add(GL_Vertex3D,7033258,462,77)
{
X=10
Y=10
Z=-10
link(onVertex,7926174:doTexCoord,[])
}
Add(GL_VertexTexture,224723,315,77)
{
S=1
T=1
link(onTexCoord,13986087:doVertex,[])
}
Add(GL_Vertex3D,13986087,364,77)
{
X=10
Y=10
Z=10
link(onVertex,16365766:doTexCoord,[])
}
Add(GL_VertexTexture,4885084,217,77)
{
T=1
link(onTexCoord,2661196:doVertex,[])
}
Add(GL_Vertex3D,2661196,266,77)
{
X=10
Y=-10
Z=10
link(onVertex,224723:doTexCoord,[])
}
Add(GL_VertexTexture,10655344,119,77)
{
link(onTexCoord,2788968:doVertex,[])
}
Add(GL_Vertex3D,2788968,168,77)
{
X=10
Y=-10
Z=-10
link(onVertex,4885084:doTexCoord,[])
}
Add(GL_VertexTexture,1296275,833,77)
{
S=1
link(onTexCoord,12065803:doVertex,[])
}
Add(GL_Vertex3D,12065803,882,77)
{
X=-10
Y=10
Z=-10
link(onVertex,5258170:doTexCoord,[(921,83)(921,118)(109,118)(109,132)])
}
Add(GL_VertexTexture,11101083,735,77)
{
S=1
T=1
link(onTexCoord,13156204:doVertex,[])
}
Add(GL_Vertex3D,13156204,784,77)
{
X=-10
Y=10
Z=10
link(onVertex,1296275:doTexCoord,[])
}
Add(GL_VertexTexture,7104660,637,77)
{
T=1
link(onTexCoord,14900418:doVertex,[])
}
Add(GL_Vertex3D,14900418,686,77)
{
X=-10
Y=-10
Z=10
link(onVertex,11101083:doTexCoord,[])
}
Add(GL_VertexTexture,7926174,539,77)
{
link(onTexCoord,9222573:doVertex,[])
}
Add(GL_Vertex3D,9222573,588,77)
{
X=-10
Y=-10
Z=-10
link(onVertex,7104660:doTexCoord,[])
}
Add(GL_VertexTexture,9956257,413,126)
{
T=1
link(onTexCoord,15192860:doVertex,[])
}
Add(GL_Vertex3D,15192860,462,126)
{
X=-10
Y=10
Z=10
link(onVertex,7009876:doTexCoord,[])
}
Add(GL_VertexTexture,5121236,315,126)
{
S=1
T=1
link(onTexCoord,8063761:doVertex,[])
}
Add(GL_Vertex3D,8063761,364,126)
{
X=10
Y=10
Z=10
link(onVertex,9956257:doTexCoord,[])
}
Add(GL_VertexTexture,6725240,217,126)
{
S=1
link(onTexCoord,4371584:doVertex,[])
}
Add(GL_Vertex3D,4371584,266,126)
{
X=10
Y=10
Z=-10
link(onVertex,5121236:doTexCoord,[])
}
Add(GL_VertexTexture,5258170,119,126)
{
link(onTexCoord,15183169:doVertex,[])
}
Add(GL_Vertex3D,15183169,168,126)
{
X=-10
Y=10
Z=-10
link(onVertex,6725240:doTexCoord,[])
}
Add(GL_VertexTexture,744870,833,126)
{
T=1
link(onTexCoord,10024947:doVertex,[])
}
Add(GL_Vertex3D,10024947,882,126)
{
X=-10
Y=-10
Z=10
link(onVertex,16226316:doEnd,[])
}
Add(GL_VertexTexture,16675529,735,126)
{
S=1
T=1
link(onTexCoord,4750747:doVertex,[])
}
Add(GL_Vertex3D,4750747,784,126)
{
X=10
Y=-10
Z=10
link(onVertex,744870:doTexCoord,[])
}
Add(GL_VertexTexture,4750058,637,126)
{
S=1
link(onTexCoord,6562168:doVertex,[])
}
Add(GL_Vertex3D,6562168,686,126)
{
X=10
Y=-10
Z=-10
link(onVertex,16675529:doTexCoord,[])
}
Add(GL_VertexTexture,7009876,539,126)
{
link(onTexCoord,16143108:doVertex,[])
}
Add(GL_Vertex3D,16143108,588,126)
{
X=-10
Y=-10
Z=-10
link(onVertex,4750058:doTexCoord,[])
}
END_SDK
Add(PaintBox,324295,693,581)
{
Left=-1000
Top=-1000
Width=512
Height=512
Color=0
Visible=1
Point(onMouseDown)
Point(doBringToFront)
}
Add(MultiElementEx,800294,693,637)
{
link(Bitmap,3805009:Var2,[])
}
BEGIN_SDK
Add(EditMultiEx,5032481,21,21)
{
WorkCount=#5:##add|
DataCount=#6:Bitmap|5:Index|
Width=1056
Height=508
VOffset=70
HOffset=350
Point(##add)
link(##add,4336738:doEvent1,[(50,97)(50,265)])
}
Add(LineBreakEx,8554824,329,343)
{
Caption="X"
Type=3
link(_Data,12095085:Result,[])
}
Add(LineBreakEx,6043661,259,343)
{
Caption="Y"
Type=3
link(_Data,6244430:Count,[])
}
Add(LineBreakEx,518403,798,210)
{
Caption="X"
Type=2
}
Add(LineBreakEx,498210,805,224)
{
Caption="Y"
Type=2
}
Add(MultiElementEx,13989938,721,196)
{
}
BEGIN_SDK
Add(EditMultiEx,4840818,14,14)
{
WorkCount=#8:doEvent1|8:doRandom|
VarCount=#5:Color|
DataCount=#5:Index|
Width=172
VOffset=70
HOffset=70
link(doEvent1,11467725:doEvent1,[])
link(Color,4062941:Color,[])
}
Add(RGB,4062941,84,147)
{
B=180
link(G,13774692:Random,[])
}
Add(Hub,11467725,28,84)
{
link(onEvent1,13774692:doRandom,[])
link(onEvent2,4062941:doRGB,[(74,97)(74,153)])
}
Add(Random,13774692,91,84)
{
Min=200
Max=255
}
END_SDK
Add(Hub,1834365,658,245)
{
OutCount=7
link(onEvent1,9092366:doDraw,[(690,251)(690,153)])
link(onEvent2,13989938:doEvent1,[(697,258)(697,202)])
link(onEvent3,5253420:doFont,[])
link(onEvent4,198922:doDraw,[(767,272)(767,258)])
link(onEvent6,4621440:doEvent1,[])
}
Add(CounterEx,6244430,259,280)
{
Max=1024
Step=16
Default=-16
Point(onThroughMax)
Point(doMax)
link(onNext,471333:doEvent1,[(344,286)(344,237)])
link(onThroughMax,15905774:doWork2,[])
}
Add(CounterEx,3674003,210,273)
{
Max=10
Point(onThroughMax)
Point(doMax)
link(onThroughMax,6244430:doNext,[])
}
Add(LineBreakEx,844315,665,371)
{
Caption="X"
Type=2
}
Add(Math,4861988,714,343)
{
OpType=1
Op2=512
ResultType=0
link(Op1,14895781:getVar,[])
link(Op2,12095085:Result1,[(727,334)(342,334)])
}
Add(Timer,11055183,105,273)
{
Interval=33
Enable=1
link(onTimer,3677299:doFor,[])
}
Add(For,3677299,154,273)
{
End=20
link(onEvent,3674003:doNext,[])
}
Add(Font,5253420,714,259)
{
Font=[Symbol,10,1,0,2]
link(onFont,198922:doFont,[])
link(Color,13989938:Color,[])
}
Add(Img_Text,198922,784,252)
{
Point(X)
Point(Y)
Point(doFont)
link(Bitmap,14413677:getVar,[])
link(Text,8934349:Var1,[(797,232)(545,232)])
link(X,518403:getVar,[])
link(Y,498210:getVar,[])
}
Add(Img_Rectangle,14469501,651,441)
{
Point2=1048592
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
link(Bitmap,11392491:getVar,[])
link(Point1,3807810:Point,[])
}
Add(PointXY,3807810,665,399)
{
link(X,844315:getVar,[])
link(Y,4861988:Result,[(678,390)(720,390)])
}
Add(LineBreakEx,14895781,714,308)
{
Caption="Y"
Type=2
}
Add(Hub,4336738,70,259)
{
OutCount=3
link(onEvent1,15905774:doWork1,[(312,265)])
link(onEvent3,11055183:doTimer,[])
}
Add(Memory,7351177,504,238)
{
link(onData,14877015:doEvent1,[])
}
Add(MultiElementEx,12095085,329,287)
{
link(onRandom,3674003:doMax,[(370,293)(370,326)(200,326)(200,286)])
}
BEGIN_SDK
Add(EditMultiEx,9253230,21,21)
{
WorkCount=#8:doRandom|5:doMax|
EventCount=#8:onRandom|
VarCount=#6:Result|7:Result1|
Width=391
Height=144
link(doRandom,9916499:doRandom,[(60,27)(60,76)])
link(Result,3847005:Result,[(27,110)(125,110)])
link(Result1,9995693:Result,[(34,117)(237,117)])
}
Add(Random,9916499,70,70)
{
Max=32
Point(doMax)
link(onRandom,3847005:doOperation,[])
}
Add(Random,15274809,287,70)
{
@Hint=#8:скорость|
Min=30
Max=90
link(onRandom,9253230:onRandom,[(326,76)(326,27)])
AddHint(-20,62,62,13,@Hint)
}
Add(Math,3847005,119,70)
{
OpType=2
Op2=16
link(onResult,12138105:doRandom,[])
}
Add(Random,12138105,175,70)
{
@Hint=#13:длинна змейки|
Min=8
Max=15
link(onRandom,9995693:doOperation,[])
AddHint(-35,63,92,13,@Hint)
}
Add(Math,9995693,231,70)
{
OpType=2
Op2=16
link(onResult,15274809:doRandom,[])
}
END_SDK
Add(LineBreakEx,15080206,1015,245)
{
Caption="X"
Type=2
}
Add(MultiElementEx,10653342,938,231)
{
}
BEGIN_SDK
Add(EditMultiEx,1031962,14,14)
{
WorkCount=#8:doEvent1|
VarCount=#5:Color|
DataCount=#5:Index|
Width=165
Height=186
VOffset=70
HOffset=70
link(doEvent1,10917155:doEvent1,[])
link(Color,16125291:Color,[])
}
Add(RGB,16125291,84,140)
{
link(G,4246642:Random,[])
}
Add(Hub,10917155,42,84)
{
OutCount=3
link(onEvent1,4246642:doRandom,[])
link(onEvent2,16125291:doRGB,[(74,97)(74,146)])
}
Add(Random,4246642,91,84)
{
Min=40
Max=160
}
END_SDK
Add(Hub,4621440,861,280)
{
OutCount=5
link(onEvent1,10653342:doEvent1,[(914,286)(914,237)])
link(onEvent2,1440910:doFont,[])
link(onEvent3,12859257:doOperation,[(914,300)(914,363)])
link(onEvent4,5289275:doDraw,[(891,307)(891,468)])
link(onEvent5,8342332:doDraw,[(991,314)(991,286)])
}
Add(LineBreakEx,14704217,945,371)
{
Caption="X"
Type=2
}
Add(Math,12859257,1001,357)
{
OpType=1
Op2=16
ResultType=0
link(Op1,9021834:getVar,[])
}
Add(Font,1440910,931,287)
{
Font=[Symbol,10,1,0,2]
link(onFont,8342332:doFont,[])
link(Color,10653342:Color,[])
}
Add(Img_Text,8342332,1001,280)
{
Point(X)
Point(Y)
Point(doFont)
link(Bitmap,7960080:getVar,[])
link(Text,2050649:Value,[])
link(X,15080206:getVar,[])
link(Y,14950402:Var3,[(1028,271)(986,271)])
}
Add(Img_Rectangle,5289275,931,462)
{
Point2=1048592
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
link(Bitmap,16429360:getVar,[(937,453)(902,453)])
link(Point1,10176199:Point,[])
}
Add(PointXY,10176199,945,413)
{
link(X,14704217:getVar,[])
link(Y,14950402:Var1,[(958,397)])
}
Add(LineBreakEx,9021834,1001,329)
{
Caption="Y"
Type=2
}
Add(GetDataEx,14950402,980,392)
{
Angle=1
link(Data,12859257:Result,[(1007,397)])
}
Add(Img_Rectangle,9092366,721,147)
{
Point2=1048592
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
link(Bitmap,6596993:getVar,[])
link(Point1,7309819:Point,[])
}
Add(LineBreakEx,3550946,735,70)
{
Caption="X"
Type=2
}
Add(LineBreakEx,11103579,770,70)
{
Caption="Y"
Type=2
}
Add(PointXY,7309819,735,98)
{
link(X,3550946:getVar,[])
link(Y,11103579:getVar,[(748,89)(776,89)])
}
Add(LineBreakEx,12492403,371,35)
{
Caption="bmp"
Type=3
link(_Data,5032481:Bitmap,[])
}
Add(LineBreakEx,14413677,784,196)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,6596993,721,49)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,11392491,651,350)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,7960080,1001,224)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,16429360,896,427)
{
Caption="bmp"
Type=2
}
Add(Memory,2050649,1008,182)
{
}
Add(Hub,471333,357,231)
{
link(onEvent1,5992193:In,[(386,237)(386,216)])
link(onEvent2,10306143:doRandom,[])
}
Add(DoData,3891527,539,294)
{
link(onEventData,2050649:doValue,[(844,300)(844,188)])
link(Data,8934349:Var2,[])
}
Add(LineBreak,2992599,490,294)
{
Caption="old"
link(Out,3891527:doData,[])
Primary=[5992193,-91,-84]
}
Add(Random,10306143,392,238)
{
Min=97
Max=122
link(onRandom,15957358:doConvert,[])
}
Add(ConvertorEx,15957358,448,238)
{
Mode=4
link(onResult,7351177:doValue,[])
link(Data,10306143:Random,[(454,229)(436,229)(436,279)(398,279)])
}
Add(If_else,11451984,595,238)
{
Type=2
Op2=Integer(550)
link(onFalse,1834365:doEvent1,[])
link(Op1,12566877:getVar,[])
}
Add(LineBreakEx,12566877,595,203)
{
Caption="Y"
Type=2
}
Add(Hub,14877015,553,238)
{
link(onEvent1,11451984:doCompare,[])
link(onEvent2,12623104:doEvent1,[(585,251)(585,349)])
}
Add(GetDataEx,8934349,539,273)
{
Angle=3
link(Data,7351177:Value,[(510,278)])
}
Add(Hub,12623104,602,343)
{
link(onEvent1,4861988:doOperation,[])
link(onEvent2,14469501:doDraw,[(641,356)(641,447)])
}
Add(HubEx,15905774,308,287)
{
link(onEvent,12095085:doRandom,[])
}
END_SDK
Add(Timer,2852982,637,637)
{
Interval=100
AutoStop=100
link(onTimer,800294:##add,[])
}
Add(Hub,3680994,588,679)
{
link(onEvent1,324295:doRefresh,[(613,685)(613,587)])
link(onEvent2,14234746:doCreate,[])
}
Add(HubEx,11461895,338,224)
{
Angle=1
link(onEvent,15261923:doClose,[(342,251)(277,251)(277,216)])
}
Add(GL_Rotate,9543443,693,525)
{
Angle=10
Z=1
link(onRotate,9154779:doBegin,[])
link(Angle,7411207:Result1,[(699,516)(650,516)])
}
Add(GL_Rotate,9715162,637,525)
{
Angle=10
X=1
Y=1
link(onRotate,9543443:doRotate,[])
link(Angle,7411207:Result,[])
}
Add(MultiElementEx,7411207,637,462)
{
}
BEGIN_SDK
Add(EditMultiEx,12598926,21,21)
{
WorkCount=#6:doNext|
VarCount=#6:Result|7:Result1|5:Count|
Width=468
Height=193
link(doNext,14043551:doNext,[(46,27)(46,69)])
link(Result,3991328:Result,[(27,126)(111,126)])
link(Result1,15974973:Result,[(34,139)(216,139)])
link(Count,787764:Result,[(41,145)(321,145)])
}
Add(Math,15974973,210,63)
{
OpType=3
Op2=100
link(onResult,7822652:doNext,[])
}
Add(MultiElementEx,7650897,420,63)
{
link(onRandom,13619832:doStep,[(459,69)(459,55)(151,55)(151,76)])
}
BEGIN_SDK
Add(EditMultiEx,15863746,21,21)
{
WorkCount=#6:doNext|
EventCount=#8:onRandom|
Width=272
Height=158
link(doNext,4090736:doNext,[(81,27)(81,76)])
}
Add(Random,10751408,189,77)
{
Min=50
Max=500
Point(Max)
link(onRandom,4090736:doMax,[(228,83)(228,62)(88,62)(88,83)])
}
Add(CounterEx,4090736,98,70)
{
Max=200
Point(doMax)
Point(onThroughMax)
link(onThroughMax,4606173:doEvent1,[])
}
Add(Random,8184993,189,126)
{
Max=12
link(onRandom,15863746:onRandom,[(235,132)(235,27)])
}
Add(Hub,4606173,147,77)
{
link(onEvent1,10751408:doRandom,[])
link(onEvent2,8184993:doRandom,[(173,90)(173,132)])
}
END_SDK
Add(Hub,6647129,371,63)
{
OutCount=3
link(onEvent1,7650897:doNext,[])
link(onEvent2,5100766:doNext,[(410,76)(410,118)])
link(onEvent3,5763482:doNext,[(403,83)(403,160)])
}
Add(CounterEx,13619832,161,63)
{
Max=36000
Point(doStep)
link(onNext,15974973:doOperation,[])
}
Add(MultiElementEx,5100766,420,112)
{
link(onRandom,14043551:doStep,[(459,118)(459,104)(46,104)(46,76)])
}
BEGIN_SDK
Add(EditMultiEx,3187669,21,21)
{
WorkCount=#6:doNext|
EventCount=#8:onRandom|
Width=272
Height=158
link(doNext,12632046:doNext,[(81,27)(81,76)])
}
Add(Random,15047251,189,77)
{
Min=50
Max=500
Point(Max)
link(onRandom,12632046:doMax,[(228,83)(228,62)(88,62)(88,83)])
}
Add(CounterEx,12632046,98,70)
{
Max=200
Point(doMax)
Point(onThroughMax)
link(onThroughMax,13136590:doEvent1,[])
}
Add(Random,11187624,189,126)
{
Max=13
link(onRandom,3187669:onRandom,[(235,132)(235,27)])
}
Add(Hub,13136590,147,77)
{
link(onEvent1,15047251:doRandom,[])
link(onEvent2,11187624:doRandom,[(173,90)(173,132)])
}
END_SDK
Add(Math,3991328,105,63)
{
OpType=3
Op2=100
link(onResult,13619832:doNext,[])
}
Add(CounterEx,14043551,56,63)
{
Max=36000
Point(doStep)
link(onNext,3991328:doOperation,[])
}
Add(MultiElementEx,5763482,420,154)
{
link(onRandom,7822652:doStep,[(459,160)(459,153)(256,153)(256,76)])
}
BEGIN_SDK
Add(EditMultiEx,2735863,21,21)
{
WorkCount=#6:doNext|
EventCount=#8:onRandom|
Width=272
Height=158
link(doNext,5022765:doNext,[(81,27)(81,76)])
}
Add(Random,6621639,189,77)
{
Min=50
Max=500
Point(Max)
link(onRandom,5022765:doMax,[(228,83)(228,62)(88,62)(88,83)])
}
Add(CounterEx,5022765,98,70)
{
Max=200
Point(doMax)
Point(onThroughMax)
link(onThroughMax,7768630:doEvent1,[])
}
Add(Random,15314385,189,126)
{
Min=5
Max=30
link(onRandom,2735863:onRandom,[(235,132)(235,27)])
}
Add(Hub,7768630,147,77)
{
link(onEvent1,6621639:doRandom,[])
link(onEvent2,15314385:doRandom,[(173,90)(173,132)])
}
END_SDK
Add(Math,787764,315,63)
{
OpType=3
Op2=100
link(onResult,6647129:doEvent1,[])
}
Add(CounterEx,7822652,266,63)
{
Max=36000
Point(doStep)
link(onNext,787764:doOperation,[])
}
END_SDK
Add(GL_Fog,9700395,763,210)
{
Color=16711680
Density=0.03
}
Add(GL_Rotate,920913,812,525)
{
X=10
Y=15
link(onRotate,8642641:doScale,[])
link(Angle,7411207:Count,[(818,509)(657,509)])
}
Add(GL_Scale,8642641,868,525)
{
X=0.15
Y=0.15
Z=0.15
link(onScale,296993:doBegin,[])
}
Add(MultiElementEx,9154779,749,525)
{
link(onEvent,920913:doRotate,[])
}
BEGIN_SDK
Add(EditMultiEx,9356812,0,0)
{
WorkCount=#7:doBegin|
EventCount=#7:onEvent|
Width=1056
Height=207
link(doBegin,562923:doCallList,[(12,6)(12,27)])
}
Add(GL_VertexTexture,7196049,413,21)
{
T=1
link(onTexCoord,7870717:doVertex,[])
}
Add(GL_Vertex3D,7870717,462,21)
{
X=-10
Y=10
Z=10
link(onVertex,14084412:doTexCoord,[])
}
Add(GL_VertexTexture,3710782,315,21)
{
S=1
T=1
link(onTexCoord,10686518:doVertex,[])
}
Add(GL_Vertex3D,10686518,364,21)
{
X=10
Y=10
Z=10
link(onVertex,7196049:doTexCoord,[])
}
Add(GL_VertexTexture,12529042,217,21)
{
S=1
link(onTexCoord,7822066:doVertex,[])
}
Add(GL_Vertex3D,7822066,266,21)
{
X=10
Y=-10
Z=10
link(onVertex,3710782:doTexCoord,[])
}
Add(GL_VertexTexture,4100790,119,21)
{
link(onTexCoord,13323686:doVertex,[])
}
Add(GL_End,15720961,931,126)
{
link(onEnd,9356812:onEvent,[(970,132)(970,6)])
}
Add(GL_Begin,2382009,70,21)
{
BlockType=7
link(onBegin,4100790:doTexCoord,[])
}
Add(GL_Vertex3D,13323686,168,21)
{
X=-10
Y=-10
Z=10
link(onVertex,12529042:doTexCoord,[])
}
Add(GL_CallList,562923,21,21)
{
Index=1
link(onCallList,2382009:doBegin,[])
}
Add(GL_VertexTexture,9705593,833,21)
{
S=1
link(onTexCoord,5548728:doVertex,[])
}
Add(GL_Vertex3D,9556034,588,21)
{
X=-10
Y=10
Z=-10
link(onVertex,9379306:doTexCoord,[])
}
Add(GL_VertexTexture,12412741,735,21)
{
S=1
T=1
link(onTexCoord,3397546:doVertex,[])
}
Add(GL_Vertex3D,5548728,889,21)
{
X=10
Y=10
Z=-10
link(onVertex,5237791:doTexCoord,[(928,27)(928,69)(109,69)(109,83)])
}
Add(GL_VertexTexture,9379306,637,21)
{
T=1
link(onTexCoord,15516985:doVertex,[])
}
Add(GL_Vertex3D,3397546,784,21)
{
X=10
Y=-10
Z=-10
link(onVertex,9705593:doTexCoord,[])
}
Add(GL_VertexTexture,14084412,539,21)
{
link(onTexCoord,9556034:doVertex,[])
}
Add(GL_Vertex3D,15516985,686,21)
{
X=-10
Y=-10
Z=-10
link(onVertex,12412741:doTexCoord,[])
}
Add(GL_VertexTexture,1914337,413,77)
{
S=1
link(onTexCoord,7073964:doVertex,[])
}
Add(GL_Vertex3D,7073964,462,77)
{
X=10
Y=10
Z=-10
link(onVertex,2329263:doTexCoord,[])
}
Add(GL_VertexTexture,12864566,315,77)
{
S=1
T=1
link(onTexCoord,13103563:doVertex,[])
}
Add(GL_Vertex3D,13103563,364,77)
{
X=10
Y=10
Z=10
link(onVertex,1914337:doTexCoord,[])
}
Add(GL_VertexTexture,13437225,217,77)
{
T=1
link(onTexCoord,7116612:doVertex,[])
}
Add(GL_Vertex3D,7116612,266,77)
{
X=10
Y=-10
Z=10
link(onVertex,12864566:doTexCoord,[])
}
Add(GL_VertexTexture,5237791,119,77)
{
link(onTexCoord,10464265:doVertex,[])
}
Add(GL_Vertex3D,10464265,168,77)
{
X=10
Y=-10
Z=-10
link(onVertex,13437225:doTexCoord,[])
}
Add(GL_VertexTexture,14315983,833,77)
{
S=1
link(onTexCoord,3095983:doVertex,[])
}
Add(GL_Vertex3D,3095983,882,77)
{
X=-10
Y=10
Z=-10
link(onVertex,15248716:doTexCoord,[(921,83)(921,118)(109,118)(109,132)])
}
Add(GL_VertexTexture,2094115,735,77)
{
S=1
T=1
link(onTexCoord,5602255:doVertex,[])
}
Add(GL_Vertex3D,5602255,784,77)
{
X=-10
Y=10
Z=10
link(onVertex,14315983:doTexCoord,[])
}
Add(GL_VertexTexture,10127133,637,77)
{
T=1
link(onTexCoord,12617831:doVertex,[])
}
Add(GL_Vertex3D,12617831,686,77)
{
X=-10
Y=-10
Z=10
link(onVertex,2094115:doTexCoord,[])
}
Add(GL_VertexTexture,2329263,539,77)
{
link(onTexCoord,12898617:doVertex,[])
}
Add(GL_Vertex3D,12898617,588,77)
{
X=-10
Y=-10
Z=-10
link(onVertex,10127133:doTexCoord,[])
}
Add(GL_VertexTexture,321953,413,126)
{
T=1
link(onTexCoord,2017834:doVertex,[])
}
Add(GL_Vertex3D,2017834,462,126)
{
X=-10
Y=10
Z=10
link(onVertex,2191446:doTexCoord,[])
}
Add(GL_VertexTexture,14368110,315,126)
{
S=1
T=1
link(onTexCoord,14491812:doVertex,[])
}
Add(GL_Vertex3D,14491812,364,126)
{
X=10
Y=10
Z=10
link(onVertex,321953:doTexCoord,[])
}
Add(GL_VertexTexture,10899238,217,126)
{
S=1
link(onTexCoord,2539508:doVertex,[])
}
Add(GL_Vertex3D,2539508,266,126)
{
X=10
Y=10
Z=-10
link(onVertex,14368110:doTexCoord,[])
}
Add(GL_VertexTexture,15248716,119,126)
{
link(onTexCoord,2113195:doVertex,[])
}
Add(GL_Vertex3D,2113195,168,126)
{
X=-10
Y=10
Z=-10
link(onVertex,10899238:doTexCoord,[])
}
Add(GL_VertexTexture,8933048,833,126)
{
T=1
link(onTexCoord,4885759:doVertex,[])
}
Add(GL_Vertex3D,4885759,882,126)
{
X=-10
Y=-10
Z=10
link(onVertex,15720961:doEnd,[])
}
Add(GL_VertexTexture,9534070,735,126)
{
S=1
T=1
link(onTexCoord,14744618:doVertex,[])
}
Add(GL_Vertex3D,14744618,784,126)
{
X=10
Y=-10
Z=10
link(onVertex,8933048:doTexCoord,[])
}
Add(GL_VertexTexture,14314660,637,126)
{
S=1
link(onTexCoord,980681:doVertex,[])
}
Add(GL_Vertex3D,980681,686,126)
{
X=10
Y=-10
Z=-10
link(onVertex,9534070:doTexCoord,[])
}
Add(GL_VertexTexture,2191446,539,126)
{
link(onTexCoord,14549565:doVertex,[])
}
Add(GL_Vertex3D,14549565,588,126)
{
X=-10
Y=-10
Z=-10
link(onVertex,14314660:doTexCoord,[])
}
END_SDK
Add(DoData,11368830,378,154)
{
Data=Integer(0)
link(onEventData,2390478:doVisible,[(424,160)(424,174)])
}
Add(MouseEvent,2390478,434,154)
{
Point(doVisible)
}
Add(GetDataEx,3805009,693,623)
{
link(Data,324295:Bitmap,[])
}
Add(Screen,8227803,553,280)
{
}
Add(Hub,14945863,504,322)
{
link(onEvent1,6811348:doOperation,[])
link(onEvent2,3410847:doPerspective,[(543,335)(543,377)])
}
Add(Math,6811348,553,322)
{
OpType=3
link(Op1,8227803:Width,[])
link(Op2,8227803:Height,[])
}

Заметил небольшой недочёт, аспект в перспективе не рассчитывался.
Поправил.

Редактировалось 1 раз(а), последний 2023-08-23 20:26:13
карма: 1

3
Голосовали:Gunta, Леонид, sla8a
Ответов: 8897
Рейтинг: 823
#7: 2023-08-23 22:04:11 ЛС | профиль | цитата
Flapiotun, на GL "гораздо лучше"
Смену кадров 1/32 сек, (30 мс на таймере), чаще нет смысла
карма: 19

0
Ответов: 19
Рейтинг: 21
#8: 2024-05-27 22:32:41 ЛС | профиль | цитата
Пересматривая схему решил, что получилось так себе.
Переделал схему

Падают буквы





Add(MainForm,1214487,182,175)
{
Width=1920
Height=1080
Color=0
Caption="Drop_text"
BorderStyle=0
WindowsState=2
Point(Width)
Point(Height)
Point(onKeyDown)
link(onCreate,9405426:doEvent1,[])
link(onKeyDown,10262512:doCompare,[(221,202)(221,216)(116,216)(116,181)])
}
Add(If_else,10262512,126,175)
{
Op2=Integer(27)
link(onTrue,1214487:doClose,[(172,181)(172,202)])
}
Add(PaintBox,324295,742,147)
{
Width=1920
Height=1080
Align=5
Color=0
}
Add(MultiElementEx,800294,742,203)
{
link(Bitmap,324295:Bitmap,[])
}
BEGIN_SDK
Add(EditMultiEx,5032481,28,28)
{
WorkCount=#8:##select|5:##add|
DataCount=#6:Bitmap|
Width=1210
Height=564
VOffset=140
HOffset=350
Point(##select)
Point(##add)
link(##select,7431850:doEvent1,[])
link(##add,16098172:doValue,[])
}
Add(LineBreakEx,518403,1120,224)
{
Caption="X"
Type=2
}
Add(LineBreakEx,498210,1127,238)
{
Caption="Y"
Type=2
}
Add(Hub,1834365,980,301)
{
OutCount=3
link(onEvent1,15235833:doCompare,[(1005,307)(1005,265)])
link(onEvent2,5253420:doFont,[])
link(onEvent3,198922:doDraw,[(1068,321)(1068,307)])
}
Add(Font,5253420,1029,308)
{
Font=[Symbol,18,1,0,2]
link(onFont,198922:doFont,[])
link(Color,15235833:Value,[])
}
Add(Img_Text,198922,1106,301)
{
Font=[MS Sans Serif,18,0,0,1]
Point(X)
Point(Y)
Point(doFont)
Point(Orientation)
Point(Transform)
link(Bitmap,14413677:getVar,[])
link(Text,9160298:Value,[(1119,292)(1098,292)(1098,348)(930,348)])
link(X,518403:getVar,[])
link(Y,498210:getVar,[])
link(Orientation,12521087:Value,[])
link(Transform,16629619:Var1,[(1147,289)])
}
Add(Img_Rectangle,9092366,294,399)
{
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(Point2)
link(onDraw,10381362:doFor,[(438,405)(438,307)])
link(Bitmap,6596993:getVar,[(300,390)(272,390)])
link(Point1,7309819:Point,[])
link(Point2,13620870:Point,[])
}
Add(PointXY,7309819,308,301)
{
link(X,16098172:Value,[(314,292)(62,292)])
}
Add(LineBreakEx,12492403,378,49)
{
Caption="bmp"
Type=3
link(_Data,5032481:Bitmap,[])
}
Add(LineBreakEx,14413677,1106,210)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,6596993,266,343)
{
Caption="bmp"
Type=2
}
Add(ConvertorEx,9208594,672,175)
{
Mode=4
link(onResult,9310876:doWork2,[])
}
Add(For,15278039,539,175)
{
Start=1
link(onEvent,14567666:doRandom,[])
link(End,9910294:Var3,[(552,166)(519,166)(519,222)])
}
Add(Random,14567666,616,175)
{
Min=97
Max=119
link(onRandom,9208594:doConvert,[])
}
Add(MultiElementEx,7431850,168,168)
{
@Hint=#15:Скорость змейки|
link(onEvent1,4745142:doRandom,[])
link(onEvent2,9092366:doDraw,[(225,181)(225,405)])
link(Op2,4745142:Random,[(174,159)(230,159)(230,215)(286,215)])
link(X2,11982895:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,14506169,21,21)
{
WorkCount=#8:doEvent1|7:doValue|
EventCount=#8:onEvent1|8:onEvent2|
VarCount=#5:Count|
DataCount=#3:Op2|2:X2|
Width=265
Height=193
VOffset=77
HOffset=140
link(doEvent1,6244430:doNext,[(207,104)(207,111)])
link(doValue,16191468:doCalc,[(47,111)(47,118)])
link(Count,6244430:Count,[(167,173)(223,173)])
}
Add(Screen,14142255,182,35)
{
}
Add(MathParse,16191468,161,112)
{
DataCount=3
MathStr="((%3/(%1/10)) + (24*%2))"
Point(onError)
Point(PosErr)
link(onResult,6244430:doMax,[])
link(X1,14506169:Op2,[])
link(X2,14506169:X2,[])
link(X3,14142255:Height,[(181,75)(195,75)])
}
Add(CounterEx,6244430,217,105)
{
Max=0
Step=25
Point(onThroughMax)
Point(doMax)
link(onNext,14506169:onEvent2,[])
link(onThroughMax,14506169:onEvent1,[(256,118)(256,104)])
}
END_SDK
Add(StrList,3038389,847,175)
{
}
Add(Hub,9243747,343,168)
{
OutCount=4
link(onEvent1,11663880:doOperation,[(368,174)(368,118)])
link(onEvent2,5367180:doRandom,[])
link(onEvent3,7431850:doValue,[(368,188)(368,209)(158,209)(158,181)])
link(onEvent4,12667648:doData,[(431,195)(431,531)])
}
Add(LineBreakEx,8815716,105,231)
{
Caption="X"
Type=3
link(_Data,11144372:Result,[])
}
Add(LineBreakEx,13135512,581,350)
{
Caption="Y"
Type=3
link(_Data,6825520:Result,[])
}
Add(ArrayRW,6766912,861,301)
{
link(onRead,9160298:doValue,[])
link(Array,3460041:Var2,[])
link(Index,14078624:getVar,[])
}
Add(Memory,9160298,924,301)
{
link(onData,1834365:doEvent1,[])
}
Add(LineBreakEx,9150020,462,231)
{
Caption="shtk"
Type=3
link(_Data,9910294:Var2,[])
}
Add(LineBreakEx,4061221,1043,182)
{
Caption="shtk"
Type=2
}
Add(DoData,11392809,777,217)
{
Data=Integer(0)
link(onEventData,3038389:doDelete,[(823,223)(823,195)])
}
Add(For,10381362,469,301)
{
Start=1
link(onEvent,6825520:doCalc,[])
link(onStop,13850482:doEvent1,[(557,314)(557,461)])
link(End,7915976:getVar,[])
}
Add(LineBreakEx,9937239,469,350)
{
Caption="++"
Type=3
link(_Data,10381362:Position,[])
}
Add(LineBreakEx,16492803,1036,161)
{
Caption="++"
Type=2
}
Add(LineBreakEx,14078624,868,266)
{
Caption="++"
Type=2
}
Add(MathParse,6825520,581,301)
{
DataCount=4
MathStr="(((%1*24)-(%2*24) + %3)*%4)"
link(onResult,12733338:doCompare,[])
link(X1,10974919:getVar,[])
link(X2,3749042:getVar,[])
link(X3,14642366:getVar,[])
link(X4,11523231:Var2,[])
}
Add(LineBreakEx,3749042,588,245)
{
Caption="shtk"
Type=2
}
Add(LineBreakEx,14642366,595,266)
{
Caption="y++"
Type=2
}
Add(LineBreakEx,9650834,168,224)
{
Caption="y++"
Type=3
link(_Data,7431850:Count,[])
}
Add(Memory,16098172,56,175)
{
link(onData,11144372:doOperation,[])
}
Add(MultiElementEx,6543209,651,385)
{
@Hint=#17:Цвет первой буквы|
link(onEvent1,6350101:doEvent1,[(690,391)(690,216)])
}
BEGIN_SDK
Add(EditMultiEx,1744732,14,14)
{
WorkCount=#8:doEvent1|
EventCount=#8:onEvent1|
VarCount=#5:Color|5:Value|
Width=410
VOffset=70
HOffset=70
link(doEvent1,12921478:doEvent1,[])
link(Color,960973:Color,[])
link(Value,1248302:Var,[(97,187)(363,187)])
}
Add(RGB,960973,84,98)
{
R=1
G=200
B=240
}
Add(Hub,12921478,28,84)
{
OutCount=3
link(onEvent1,6402014:doWork2,[])
link(onEvent3,960973:doRGB,[])
}
Add(ConvertorEx,1248302,357,84)
{
Mode=4
link(onResult,1744732:onEvent1,[])
}
Add(Random,2485106,175,84)
{
Max=33
link(onRandom,875740:doRead,[])
}
Add(StrList,14281744,231,28)
{
Strings=#2:34|2:35|2:36|2:37|2:38|2:68|2:74|2:81|2:83|2:87|2:88|2:89|3:118|3:119|3:120|3:121|3:122|3:161|3:192|3:193|3:194|3:195|3:198|3:199|3:200|3:201|3:204|3:209|3:210|3:211|3:229|2:97|2:98|2:99|3:100|3:103|3:105|3:109|3:115|3:117|0:|
}
Add(ArrayRW,875740,231,84)
{
link(onRead,10001970:doData,[])
link(Array,14281744:Array,[(237,68)(251,68)])
}
Add(ChangeMon,10001970,294,84)
{
Point(onNoData)
link(onData,1248302:doConvert,[])
link(onNoData,6402014:doWork1,[(333,97)(333,76)(158,76)])
}
Add(HubEx,6402014,154,84)
{
link(onEvent,2485106:doRandom,[])
}
END_SDK
Add(Font,12038288,644,462)
{
Font=[Symbol,18,1,0,2]
link(onFont,8650820:doFont,[])
link(Color,6543209:Color,[])
}
Add(Img_Text,8650820,714,455)
{
Font=[MS Sans Serif,18,1,0,1]
Point(X)
Point(Y)
Point(doFont)
Point(Orientation)
Point(Transform)
link(Bitmap,1681701:getVar,[])
link(Text,6543209:Value,[(727,439)(664,439)])
link(X,5639361:getVar,[])
link(Y,9166504:getVar,[])
link(Orientation,790971:Value,[(748,411)(776,411)])
link(Transform,16629619:Var2,[(755,448)(1182,448)])
}
Add(LineBreakEx,5639361,728,371)
{
Caption="X"
Type=2
}
Add(LineBreakEx,9166504,735,392)
{
Caption="Y"
Type=2
}
Add(Hub,13850482,567,455)
{
OutCount=4
link(onEvent1,6543209:doEvent1,[(592,461)(592,391)])
link(onEvent2,12038288:doFont,[])
link(onEvent3,8650820:doDraw,[(683,475)(683,461)])
link(onEvent4,3536494:doEvent1,[(634,482)(634,524)])
}
Add(LineBreakEx,1681701,714,357)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,7915976,476,266)
{
Caption="shtk"
Type=2
}
Add(Hub,6350101,742,210)
{
link(onEvent1,9310876:doWork3,[(816,216)])
link(onEvent2,11392809:doData,[])
}
Add(HubEx,9310876,812,175)
{
link(onEvent,3038389:doAdd,[])
}
Add(ArrayRW,1116606,903,511)
{
link(Array,3460041:Var1,[(909,254)])
link(Index,3536494:Count,[(916,502)(895,502)(895,558)(853,558)])
}
Add(MultiElementEx,3536494,847,518)
{
link(onEvent1,1116606:doWrite,[])
}
BEGIN_SDK
Add(EditMultiEx,11860882,21,21)
{
WorkCount=#8:doEvent1|5:doMax|8:doRandom|
EventCount=#8:onEvent1|8:onEvent2|
VarCount=#5:Count|6:Result|
Height=151
link(doEvent1,5076343:doRandom,[(64,27)(64,97)])
link(doMax,5076343:doMax,[(46,34)(46,118)])
link(Count,5076343:Random,[(27,138)(90,138)])
}
Add(ConvertorEx,13733802,252,91)
{
Mode=4
link(onResult,11860882:onEvent1,[(306,97)(306,27)])
}
Add(Random,5076343,84,91)
{
Point(doMax)
link(onRandom,14404474:doRandom,[])
}
Add(Random,14404474,140,91)
{
Max=34
link(onRandom,2972464:doRead,[])
}
Add(StrList,4368834,196,35)
{
Strings=#2:32|2:32|2:34|2:35|2:36|2:37|2:38|2:68|2:74|2:81|2:83|2:87|2:88|2:89|3:118|3:119|3:120|3:121|3:122|3:161|3:192|3:193|3:194|3:195|3:198|3:199|3:200|3:201|3:204|3:209|3:210|3:211|3:229|0:|0:|
}
Add(ArrayRW,2972464,196,91)
{
link(onRead,13733802:doConvert,[])
link(Array,4368834:Array,[(202,75)(216,75)])
}
END_SDK
Add(GetDataEx,3460041,861,249)
{
link(Data,3038389:Array,[])
}
Add(DoData,12667648,784,525)
{
link(onEventData,3536494:doMax,[])
link(Data,3131296:getVar,[])
}
Add(LineBreakEx,3131296,784,490)
{
Caption="shtk"
Type=2
}
Add(Memory,790971,770,357)
{
Default=Integer(0)
}
Add(Memory,12521087,1134,252)
{
Default=Integer(0)
}
Add(If_else,12733338,651,301)
{
Type=4
Op2=Integer(-50)
link(onTrue,4080788:doCompare,[])
link(Op1,4883614:getVar,[])
}
Add(LineBreakEx,4883614,651,266)
{
Caption="Y"
Type=2
}
Add(If_else,4080788,777,301)
{
Type=3
link(onTrue,6766912:doRead,[])
link(Op1,9683670:getVar,[])
link(Op2,13102385:Var3,[(790,289)])
}
Add(LineBreakEx,9683670,777,266)
{
Caption="Y"
Type=2
}
Add(Screen,9849657,315,231)
{
}
Add(PointXY,13620870,315,350)
{
X=64
Y=1920
link(Y,13102385:Var2,[])
}
Add(Random,4745142,280,168)
{
@Hint=#11:Размер букв|
Min=6
Max=32
link(onRandom,9243747:doEvent1,[])
AddHint(-27,-42,80,13,@Hint)
}
Add(GetDataEx,13102385,322,284)
{
link(Data,9849657:Height,[])
}
Add(Math,11663880,602,112)
{
OpType=3
Op2=10
link(onResult,12119660:doRandom,[])
}
Add(Img_UseScale,3699251,1176,210)
{
link(X,12758330:Var2,[])
link(Y,12758330:Var3,[(1196,152)])
}
Add(GetDataEx,16629619,1176,284)
{
link(Data,3699251:Transform,[])
}
Add(Math,11144372,105,175)
{
Op2=22
}
Add(MultiElementEx,15235833,1036,259)
{
link(Op1,16492803:getVar,[])
link(X1,4061221:getVar,[])
link(Index,1515786:Value,[])
}
BEGIN_SDK
Add(EditMultiEx,7855501,21,21)
{
WorkCount=#9:doCompare|6:doData|
EventCount=#6:onData|
VarCount=#5:Value|5:Color|
DataCount=#3:Op1|2:X1|5:Index|
Width=363
Height=270
VOffset=35
HOffset=70
link(doCompare,7731191:doCalc,[])
link(doData,7697000:doData,[(81,69)(81,146)])
link(Value,1610606:Color,[(97,222)(307,222)])
}
Add(RGB,1610606,301,182)
{
link(R,4746349:Value,[(307,131)(286,131)])
link(G,9954577:Value,[])
link(B,12540605:Value,[(321,173)(328,173)])
}
Add(Hub,8699698,140,56)
{
link(onEvent1,13261033:doEvent,[])
link(onEvent2,1610606:doRGB,[(166,69)(166,188)])
}
Add(Memory,12540605,322,133)
{
Default=Integer(0)
}
Add(MathParse,7731191,91,56)
{
MathStr="(%1 * (256/%2))"
link(onResult,8699698:doEvent1,[])
link(X1,7855501:Op1,[])
link(X2,7855501:X1,[])
}
Add(IndexToChanel,13261033,182,56)
{
Count=3
Point(Index)
link(onEvent1,13187063:doWork2,[])
link(onEvent2,8781975:doWork2,[])
link(onEvent3,13809484:doWork2,[(221,76)(221,139)])
link(Index,7855501:Index,[(188,47)(111,47)])
}
Add(Memory,9954577,308,91)
{
Default=Integer(0)
}
Add(Memory,4746349,280,56)
{
Default=Integer(0)
}
Add(DoData,7697000,91,140)
{
Data=Integer(0)
link(onEventData,71511:doEvent1,[])
}
Add(Hub,71511,175,140)
{
OutCount=3
link(onEvent1,13187063:doWork3,[(228,146)])
link(onEvent2,8781975:doWork3,[(235,153)])
link(onEvent3,13809484:doWork3,[(242,160)])
}
Add(HubEx,13187063,224,56)
{
link(onEvent,4746349:doValue,[])
}
Add(HubEx,8781975,231,63)
{
link(onEvent,9954577:doValue,[(261,69)(261,97)])
}
Add(HubEx,13809484,238,133)
{
link(onEvent,12540605:doValue,[])
}
END_SDK
Add(Random,5367180,462,175)
{
@Hint=#12:сколько букв|
Min=10
Max=14
link(onRandom,15278039:doFor,[])
AddHint(-30,-44,83,13,@Hint)
}
Add(LineBreakEx,11982895,175,140)
{
Caption="shtk"
Type=2
}
Add(LineBreakEx,10974919,581,224)
{
Caption="++"
Type=2
}
Add(GetDataEx,11523231,602,154)
{
link(Data,11663880:Result,[])
}
Add(GetDataEx,12758330,1183,147)
{
Angle=3
link(Data,11523231:Var3,[(818,152)(818,159)])
}
Add(Memory,1515786,1050,203)
{
Default=Integer(0)
}
Add(GetDataEx,9910294,462,217)
{
link(Data,5367180:Random,[])
}
Add(Random,12119660,693,112)
{
@Hint=#10:1,2,3 цвет|5:синий|7:зелёный|7:красный|
Max=2
link(onRandom,868462:doEvent1,[])
AddHint(-22,-83,65,52,@Hint)
}
Add(Hub,868462,763,112)
{
link(onEvent1,16421563:doEvent1,[(911,118)(911,209)])
link(onEvent2,3038389:doClear,[(823,125)(823,188)])
}
Add(Hub,16421563,931,203)
{
link(onEvent1,1515786:doValue,[])
link(onEvent2,15235833:doData,[(1012,216)(1012,272)])
}
END_SDK
Add(Hub,9405426,238,189)
{
OutCount=5
link(onEvent1,4118344:doEvent1,[(263,195)(263,153)])
link(onEvent3,5709904:doOperation,[])
link(onEvent4,8529234:doData,[(284,216)(284,265)])
link(onEvent5,14110908:doTimer,[(277,223)(277,314)])
}
Add(DoData,8529234,294,259)
{
Data=Integer(0)
link(onEventData,3499210:doVisible,[(341,265)(341,279)])
}
Add(MouseEvent,3499210,357,259)
{
Point(doVisible)
}
Add(Math,9504345,595,210)
{
OpType=2
Op2=64
link(onResult,800294:##add,[])
}
Add(Timer,1739603,392,210)
{
Interval=200
Enable=1
Point(doAutoStop)
link(onTimer,6603290:doNext,[])
}
Add(CounterEx,6603290,448,210)
{
Default=-1
link(onNext,3436545:doRead,[])
}
Add(ArrayRW,3436545,504,210)
{
link(onRead,9763273:doEvent1,[])
link(Array,4118344:getVar,[(510,194)(307,194)])
}
Add(MultiElementEx,4118344,294,147)
{
}
BEGIN_SDK
Add(EditMultiEx,2612228,21,21)
{
WorkCount=#8:doEvent1|
EventCount=#6:onStop|
VarCount=#5:Array|6:getVar|
Width=412
Height=312
VOffset=140
HOffset=280
link(doEvent1,12520529:doEvent1,[])
link(Array,972020:getVar,[])
link(getVar,14407297:Array,[(314,312)(370,312)])
}
Add(Random,5447273,266,217)
{
Max=9
Point(doMax)
Point(Max)
link(onRandom,14407297:doSwap,[(315,223)(315,195)])
link(Max,14266807:getVar,[])
}
Add(StrList,14407297,350,161)
{
Point(doSwap)
Point(Idx1)
link(Idx1,6998305:Position,[(370,152)(342,152)(342,285)(188,285)])
}
Add(For,6998305,182,245)
{
End=8
link(onEvent,5447273:doRandom,[(239,251)(239,223)])
link(End,13626335:getVar,[])
}
Add(Hub,1811478,119,224)
{
OutCount=4
link(onEvent1,5447273:doRandomize,[])
link(onEvent3,5447273:doMax,[])
link(onEvent4,6998305:doFor,[])
}
Add(Screen,14810740,147,105)
{
}
Add(Math,12174404,147,161)
{
OpType=7
Op2=64
link(onResult,5288692:doFor,[])
link(Op1,14810740:Width,[])
}
Add(For,5288692,217,161)
{
link(onEvent,14407297:doAdd,[])
link(End,4306181:getVar,[])
}
Add(Hub,12520529,70,161)
{
link(onEvent1,12174404:doOperation,[])
link(onEvent2,1811478:doEvent1,[(99,174)(99,230)])
}
Add(LineBreakEx,8929268,147,203)
{
Type=3
link(_Data,12174404:Result,[])
}
Add(LineBreakEx,4306181,224,133)
{
Type=2
}
Add(LineBreakEx,13626335,189,210)
{
Type=2
}
Add(LineBreakEx,14266807,266,189)
{
Type=2
}
Add(LineBreakEx,972020,301,294)
{
Type=2
}
END_SDK
Add(Hub,6425512,350,203)
{
link(onEvent1,1739603:doAutoStop,[(375,209)(375,230)])
link(onEvent2,1739603:doTimer,[])
}
Add(Math,5709904,294,203)
{
Op2=1
link(onResult,6425512:doEvent1,[])
link(Op1,4118344:Array,[])
}
Add(Timer,14110908,595,308)
{
Interval=60
Enable=1
link(onTimer,899198:doEvent1,[])
}
Add(Math,7973818,595,259)
{
Op2=1
link(onResult,10809176:doAdd,[])
}
Add(StrList,10809176,686,259)
{
}
Add(ArrayEnum,16022723,686,308)
{
link(onItem,800294:##select,[(727,314)(727,209)])
link(Array,10809176:Array,[(692,299)(706,299)])
}
Add(Hub,899198,644,308)
{
link(onEvent1,16022723:doEnum,[])
link(onEvent2,324295:doRefresh,[(669,321)(669,153)])
}
Add(Hub,9763273,553,210)
{
link(onEvent1,9504345:doOperation,[])
link(onEvent2,7973818:doOperation,[(581,223)(581,265)])
}

карма: 1

1
Голосовали:sla8a
Ответов: 2214
Рейтинг: 676
#9: 2024-05-29 12:47:03 ЛС | профиль | цитата
Flapiotun, получилось красиво и схема оформлена аккуратно, но участок схемы со списком индексов не совсем понятен. Если в схеме заменить список на список строк (для наглядности), то можно увидеть что в список заносятся индексы созданных (##add) схем (в моем случае их 19 штук).
Add(MainForm,1214487,357,105)
{
Width=1920
Height=1080
Color=0
Caption="Drop_text"
BorderStyle=0
WindowsState=2
Point(Width)
Point(Height)
Point(onKeyDown)
link(onCreate,9405426:doEvent1,[])
link(onKeyDown,10262512:doCompare,[(396,132)(396,146)(291,146)(291,111)])
}
Add(If_else,10262512,301,105)
{
Op2=Integer(27)
link(onTrue,1214487:doClose,[(347,111)(347,132)])
}
Add(PaintBox,324295,917,77)
{
Width=1920
Height=1080
Align=5
Color=0
}
Add(MultiElementEx,800294,917,133)
{
link(Bitmap,324295:Bitmap,[])
}
BEGIN_SDK
Add(EditMultiEx,5032481,28,28)
{
WorkCount=#8:##select|5:##add|
VarCount=#7:##count|
DataCount=#6:Bitmap|
Width=1210
Height=564
VOffset=140
HOffset=350
Point(##select)
Point(##add)
Point(##count)
link(##select,7431850:doEvent1,[])
link(##add,16098172:doValue,[])
}
Add(LineBreakEx,518403,1120,224)
{
Caption="X"
Type=2
}
Add(LineBreakEx,498210,1127,238)
{
Caption="Y"
Type=2
}
Add(Hub,1834365,980,301)
{
OutCount=3
link(onEvent1,15235833:doCompare,[(1005,307)(1005,265)])
link(onEvent2,5253420:doFont,[])
link(onEvent3,198922:doDraw,[(1068,321)(1068,307)])
}
Add(Font,5253420,1029,308)
{
Font=[Symbol,18,1,0,2]
link(onFont,198922:doFont,[])
link(Color,15235833:Value,[])
}
Add(Img_Text,198922,1106,301)
{
Font=[MS Sans Serif,18,0,0,1]
Point(X)
Point(Y)
Point(doFont)
Point(Orientation)
Point(Transform)
link(Bitmap,14413677:getVar,[])
link(Text,9160298:Value,[(1119,292)(1098,292)(1098,348)(930,348)])
link(X,518403:getVar,[])
link(Y,498210:getVar,[])
link(Orientation,12521087:Value,[])
link(Transform,16629619:Var1,[(1147,289)])
}
Add(Img_Rectangle,9092366,294,399)
{
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(Point2)
link(onDraw,10381362:doFor,[(438,405)(438,307)])
link(Bitmap,6596993:getVar,[(300,390)(272,390)])
link(Point1,7309819:Point,[])
link(Point2,13620870:Point,[])
}
Add(PointXY,7309819,308,301)
{
link(X,16098172:Value,[(314,292)(62,292)])
}
Add(LineBreakEx,12492403,378,49)
{
Caption="bmp"
Type=3
link(_Data,5032481:Bitmap,[])
}
Add(LineBreakEx,14413677,1106,210)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,6596993,266,343)
{
Caption="bmp"
Type=2
}
Add(ConvertorEx,9208594,672,175)
{
Mode=4
link(onResult,9310876:doWork2,[])
}
Add(For,15278039,539,175)
{
Start=1
link(onEvent,14567666:doRandom,[])
link(End,9910294:Var3,[(552,166)(519,166)(519,222)])
}
Add(Random,14567666,616,175)
{
Min=97
Max=119
link(onRandom,9208594:doConvert,[])
}
Add(MultiElementEx,7431850,168,168)
{
@Hint=#15:Скорость змейки|
link(onEvent1,4745142:doRandom,[])
link(onEvent2,9092366:doDraw,[(225,181)(225,405)])
link(Op2,4745142:Random,[(174,159)(230,159)(230,215)(286,215)])
link(X2,11982895:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,14506169,21,21)
{
WorkCount=#8:doEvent1|7:doValue|
EventCount=#8:onEvent1|8:onEvent2|
VarCount=#5:Count|
DataCount=#3:Op2|2:X2|
Width=265
Height=193
VOffset=77
HOffset=140
link(doEvent1,6244430:doNext,[(207,104)(207,111)])
link(doValue,16191468:doCalc,[(47,111)(47,118)])
link(Count,6244430:Count,[(167,173)(223,173)])
}
Add(Screen,14142255,182,35)
{
}
Add(MathParse,16191468,161,112)
{
DataCount=3
MathStr="((%3/(%1/10)) + (24*%2))"
Point(onError)
Point(PosErr)
link(onResult,6244430:doMax,[])
link(X1,14506169:Op2,[])
link(X2,14506169:X2,[])
link(X3,14142255:Height,[(181,75)(195,75)])
}
Add(CounterEx,6244430,217,105)
{
Max=0
Step=25
Point(onThroughMax)
Point(doMax)
link(onNext,14506169:onEvent2,[])
link(onThroughMax,14506169:onEvent1,[(256,118)(256,104)])
}
END_SDK
Add(StrList,3038389,847,175)
{
}
Add(Hub,9243747,343,168)
{
OutCount=4
link(onEvent1,11663880:doOperation,[(368,174)(368,118)])
link(onEvent2,5367180:doRandom,[])
link(onEvent3,7431850:doValue,[(368,188)(368,209)(158,209)(158,181)])
link(onEvent4,12667648:doData,[(431,195)(431,531)])
}
Add(LineBreakEx,8815716,105,231)
{
Caption="X"
Type=3
link(_Data,11144372:Result,[])
}
Add(LineBreakEx,13135512,581,350)
{
Caption="Y"
Type=3
link(_Data,6825520:Result,[])
}
Add(ArrayRW,6766912,861,301)
{
link(onRead,9160298:doValue,[])
link(Array,3460041:Var2,[])
link(Index,14078624:getVar,[])
}
Add(Memory,9160298,924,301)
{
link(onData,1834365:doEvent1,[])
}
Add(LineBreakEx,9150020,462,231)
{
Caption="shtk"
Type=3
link(_Data,9910294:Var2,[])
}
Add(LineBreakEx,4061221,1043,182)
{
Caption="shtk"
Type=2
}
Add(DoData,11392809,777,217)
{
Data=Integer(0)
link(onEventData,3038389:doDelete,[(823,223)(823,195)])
}
Add(For,10381362,469,301)
{
Start=1
link(onEvent,6825520:doCalc,[])
link(onStop,13850482:doEvent1,[(557,314)(557,461)])
link(End,7915976:getVar,[])
}
Add(LineBreakEx,9937239,469,350)
{
Caption="++"
Type=3
link(_Data,10381362:Position,[])
}
Add(LineBreakEx,16492803,1036,161)
{
Caption="++"
Type=2
}
Add(LineBreakEx,14078624,868,266)
{
Caption="++"
Type=2
}
Add(MathParse,6825520,581,301)
{
DataCount=4
MathStr="(((%1*24)-(%2*24) + %3)*%4)"
link(onResult,12733338:doCompare,[])
link(X1,10974919:getVar,[])
link(X2,3749042:getVar,[])
link(X3,14642366:getVar,[])
link(X4,11523231:Var2,[])
}
Add(LineBreakEx,3749042,588,245)
{
Caption="shtk"
Type=2
}
Add(LineBreakEx,14642366,595,266)
{
Caption="y++"
Type=2
}
Add(LineBreakEx,9650834,168,224)
{
Caption="y++"
Type=3
link(_Data,7431850:Count,[])
}
Add(Memory,16098172,56,175)
{
link(onData,11144372:doOperation,[])
}
Add(MultiElementEx,6543209,651,385)
{
@Hint=#17:Цвет первой буквы|
link(onEvent1,6350101:doEvent1,[(690,391)(690,216)])
}
BEGIN_SDK
Add(EditMultiEx,1744732,14,14)
{
WorkCount=#8:doEvent1|
EventCount=#8:onEvent1|
VarCount=#5:Color|5:Value|
Width=410
VOffset=70
HOffset=70
link(doEvent1,12921478:doEvent1,[])
link(Color,960973:Color,[])
link(Value,1248302:Var,[(97,187)(363,187)])
}
Add(RGB,960973,84,98)
{
R=1
G=200
B=240
}
Add(Hub,12921478,28,84)
{
OutCount=3
link(onEvent1,6402014:doWork2,[])
link(onEvent3,960973:doRGB,[])
}
Add(ConvertorEx,1248302,357,84)
{
Mode=4
link(onResult,1744732:onEvent1,[])
}
Add(Random,2485106,175,84)
{
Max=33
link(onRandom,875740:doRead,[])
}
Add(StrList,14281744,231,28)
{
Strings=#2:34|2:35|2:36|2:37|2:38|2:68|2:74|2:81|2:83|2:87|2:88|2:89|3:118|3:119|3:120|3:121|3:122|3:161|3:192|3:193|3:194|3:195|3:198|3:199|3:200|3:201|3:204|3:209|3:210|3:211|3:229|2:97|2:98|2:99|3:100|3:103|3:105|3:109|3:115|3:117|0:|
}
Add(ArrayRW,875740,231,84)
{
link(onRead,10001970:doData,[])
link(Array,14281744:Array,[(237,68)(251,68)])
}
Add(ChangeMon,10001970,294,84)
{
Point(onNoData)
link(onData,1248302:doConvert,[])
link(onNoData,6402014:doWork1,[(333,97)(333,76)(158,76)])
}
Add(HubEx,6402014,154,84)
{
link(onEvent,2485106:doRandom,[])
}
END_SDK
Add(Font,12038288,644,462)
{
Font=[Symbol,18,1,0,2]
link(onFont,8650820:doFont,[])
link(Color,6543209:Color,[])
}
Add(Img_Text,8650820,714,455)
{
Font=[MS Sans Serif,18,1,0,1]
Point(X)
Point(Y)
Point(doFont)
Point(Orientation)
Point(Transform)
link(Bitmap,1681701:getVar,[])
link(Text,6543209:Value,[(727,439)(664,439)])
link(X,5639361:getVar,[])
link(Y,9166504:getVar,[])
link(Orientation,790971:Value,[(748,411)(776,411)])
link(Transform,16629619:Var2,[(755,448)(1182,448)])
}
Add(LineBreakEx,5639361,728,371)
{
Caption="X"
Type=2
}
Add(LineBreakEx,9166504,735,392)
{
Caption="Y"
Type=2
}
Add(Hub,13850482,567,455)
{
OutCount=4
link(onEvent1,6543209:doEvent1,[(592,461)(592,391)])
link(onEvent2,12038288:doFont,[])
link(onEvent3,8650820:doDraw,[(683,475)(683,461)])
link(onEvent4,3536494:doEvent1,[(634,482)(634,524)])
}
Add(LineBreakEx,1681701,714,357)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,7915976,476,266)
{
Caption="shtk"
Type=2
}
Add(Hub,6350101,742,210)
{
link(onEvent1,9310876:doWork3,[(816,216)])
link(onEvent2,11392809:doData,[])
}
Add(HubEx,9310876,812,175)
{
link(onEvent,3038389:doAdd,[])
}
Add(ArrayRW,1116606,903,511)
{
link(Array,3460041:Var1,[(909,254)])
link(Index,3536494:Count,[(916,502)(895,502)(895,558)(853,558)])
}
Add(MultiElementEx,3536494,847,518)
{
link(onEvent1,1116606:doWrite,[])
}
BEGIN_SDK
Add(EditMultiEx,11860882,21,21)
{
WorkCount=#8:doEvent1|5:doMax|8:doRandom|
EventCount=#8:onEvent1|8:onEvent2|
VarCount=#5:Count|6:Result|
Height=151
link(doEvent1,5076343:doRandom,[(64,27)(64,97)])
link(doMax,5076343:doMax,[(46,34)(46,118)])
link(Count,5076343:Random,[(27,138)(90,138)])
}
Add(ConvertorEx,13733802,252,91)
{
Mode=4
link(onResult,11860882:onEvent1,[(306,97)(306,27)])
}
Add(Random,5076343,84,91)
{
Point(doMax)
link(onRandom,14404474:doRandom,[])
}
Add(Random,14404474,140,91)
{
Max=34
link(onRandom,2972464:doRead,[])
}
Add(StrList,4368834,196,35)
{
Strings=#2:32|2:32|2:34|2:35|2:36|2:37|2:38|2:68|2:74|2:81|2:83|2:87|2:88|2:89|3:118|3:119|3:120|3:121|3:122|3:161|3:192|3:193|3:194|3:195|3:198|3:199|3:200|3:201|3:204|3:209|3:210|3:211|3:229|0:|0:|
}
Add(ArrayRW,2972464,196,91)
{
link(onRead,13733802:doConvert,[])
link(Array,4368834:Array,[(202,75)(216,75)])
}
END_SDK
Add(GetDataEx,3460041,861,249)
{
link(Data,3038389:Array,[])
}
Add(DoData,12667648,784,525)
{
link(onEventData,3536494:doMax,[])
link(Data,3131296:getVar,[])
}
Add(LineBreakEx,3131296,784,490)
{
Caption="shtk"
Type=2
}
Add(Memory,790971,770,357)
{
Default=Integer(0)
}
Add(Memory,12521087,1134,252)
{
Default=Integer(0)
}
Add(If_else,12733338,651,301)
{
Type=4
Op2=Integer(-50)
link(onTrue,4080788:doCompare,[])
link(Op1,4883614:getVar,[])
}
Add(LineBreakEx,4883614,651,266)
{
Caption="Y"
Type=2
}
Add(If_else,4080788,777,301)
{
Type=3
link(onTrue,6766912:doRead,[])
link(Op1,9683670:getVar,[])
link(Op2,13102385:Var3,[(790,289)])
}
Add(LineBreakEx,9683670,777,266)
{
Caption="Y"
Type=2
}
Add(Screen,9849657,315,231)
{
}
Add(PointXY,13620870,315,350)
{
X=64
Y=1920
link(Y,13102385:Var2,[])
}
Add(Random,4745142,280,168)
{
@Hint=#11:Размер букв|
Min=6
Max=32
link(onRandom,9243747:doEvent1,[])
AddHint(-27,-42,80,13,@Hint)
}
Add(GetDataEx,13102385,322,284)
{
link(Data,9849657:Height,[])
}
Add(Math,11663880,602,112)
{
OpType=3
Op2=10
link(onResult,12119660:doRandom,[])
}
Add(Img_UseScale,3699251,1176,210)
{
link(X,12758330:Var2,[])
link(Y,12758330:Var3,[(1196,152)])
}
Add(GetDataEx,16629619,1176,284)
{
link(Data,3699251:Transform,[])
}
Add(Math,11144372,105,175)
{
Op2=22
}
Add(MultiElementEx,15235833,1036,259)
{
link(Op1,16492803:getVar,[])
link(X1,4061221:getVar,[])
link(Index,1515786:Value,[])
}
BEGIN_SDK
Add(EditMultiEx,7855501,21,21)
{
WorkCount=#9:doCompare|6:doData|
EventCount=#6:onData|
VarCount=#5:Value|5:Color|
DataCount=#3:Op1|2:X1|5:Index|
Width=363
Height=270
VOffset=35
HOffset=70
link(doCompare,7731191:doCalc,[])
link(doData,7697000:doData,[(81,69)(81,146)])
link(Value,1610606:Color,[(97,222)(307,222)])
}
Add(RGB,1610606,301,182)
{
link(R,4746349:Value,[(307,131)(286,131)])
link(G,9954577:Value,[])
link(B,12540605:Value,[(321,173)(328,173)])
}
Add(Hub,8699698,140,56)
{
link(onEvent1,13261033:doEvent,[])
link(onEvent2,1610606:doRGB,[(166,69)(166,188)])
}
Add(Memory,12540605,322,133)
{
Default=Integer(0)
}
Add(MathParse,7731191,91,56)
{
MathStr="(%1 * (256/%2))"
link(onResult,8699698:doEvent1,[])
link(X1,7855501:Op1,[])
link(X2,7855501:X1,[])
}
Add(IndexToChanel,13261033,182,56)
{
Count=3
Point(Index)
link(onEvent1,13187063:doWork2,[])
link(onEvent2,8781975:doWork2,[])
link(onEvent3,13809484:doWork2,[(221,76)(221,139)])
link(Index,7855501:Index,[(188,47)(111,47)])
}
Add(Memory,9954577,308,91)
{
Default=Integer(0)
}
Add(Memory,4746349,280,56)
{
Default=Integer(0)
}
Add(DoData,7697000,91,140)
{
Data=Integer(0)
link(onEventData,71511:doEvent1,[])
}
Add(Hub,71511,175,140)
{
OutCount=3
link(onEvent1,13187063:doWork3,[(228,146)])
link(onEvent2,8781975:doWork3,[(235,153)])
link(onEvent3,13809484:doWork3,[(242,160)])
}
Add(HubEx,13187063,224,56)
{
link(onEvent,4746349:doValue,[])
}
Add(HubEx,8781975,231,63)
{
link(onEvent,9954577:doValue,[(261,69)(261,97)])
}
Add(HubEx,13809484,238,133)
{
link(onEvent,12540605:doValue,[])
}
END_SDK
Add(Random,5367180,462,175)
{
@Hint=#12:сколько букв|
Min=10
Max=14
link(onRandom,15278039:doFor,[])
AddHint(-30,-44,83,13,@Hint)
}
Add(LineBreakEx,11982895,175,140)
{
Caption="shtk"
Type=2
}
Add(LineBreakEx,10974919,581,224)
{
Caption="++"
Type=2
}
Add(GetDataEx,11523231,602,154)
{
link(Data,11663880:Result,[])
}
Add(GetDataEx,12758330,1183,147)
{
Angle=3
link(Data,11523231:Var3,[(818,152)(818,159)])
}
Add(Memory,1515786,1050,203)
{
Default=Integer(0)
}
Add(GetDataEx,9910294,462,217)
{
link(Data,5367180:Random,[])
}
Add(Random,12119660,693,112)
{
@Hint=#10:1,2,3 цвет|5:синий|7:зелёный|7:красный|
Max=2
link(onRandom,868462:doEvent1,[])
AddHint(-22,-83,65,52,@Hint)
}
Add(Hub,868462,763,112)
{
link(onEvent1,16421563:doEvent1,[(911,118)(911,209)])
link(onEvent2,3038389:doClear,[(823,125)(823,188)])
}
Add(Hub,16421563,931,203)
{
link(onEvent1,1515786:doValue,[])
link(onEvent2,15235833:doData,[(974,217)(1012,217)(1012,272)])
}
END_SDK
Add(Hub,9405426,413,119)
{
OutCount=5
link(onEvent1,4118344:doEvent1,[(438,125)(438,83)])
link(onEvent3,5709904:doOperation,[])
link(onEvent4,8529234:doData,[(459,146)(459,195)])
link(onEvent5,14110908:doTimer,[(452,153)(452,244)])
}
Add(DoData,8529234,469,189)
{
Data=Integer(0)
link(onEventData,3499210:doVisible,[(516,195)(516,209)])
}
Add(MouseEvent,3499210,532,189)
{
Point(doVisible)
}
Add(Math,9504345,770,140)
{
OpType=2
Op2=64
link(onResult,800294:##add,[])
}
Add(Timer,1739603,567,140)
{
Interval=200
Enable=1
Point(doAutoStop)
link(onTimer,6603290:doNext,[])
}
Add(CounterEx,6603290,623,140)
{
Default=-1
link(onNext,3436545:doRead,[])
}
Add(ArrayRW,3436545,679,140)
{
link(onRead,9763273:doEvent1,[])
link(Array,4118344:getVar,[(685,124)(482,124)])
}
Add(MultiElementEx,4118344,469,77)
{
}
BEGIN_SDK
Add(EditMultiEx,2612228,21,21)
{
WorkCount=#8:doEvent1|
EventCount=#6:onStop|
VarCount=#5:Array|6:getVar|
Width=412
Height=312
VOffset=140
HOffset=280
link(doEvent1,12520529:doEvent1,[])
link(Array,972020:getVar,[])
link(getVar,14407297:Array,[(314,312)(370,312)])
}
Add(Random,5447273,266,217)
{
Max=9
Point(doMax)
Point(Max)
link(onRandom,14407297:doSwap,[(315,223)(315,195)])
link(Max,14266807:getVar,[])
}
Add(StrList,14407297,350,161)
{
Point(doSwap)
Point(Idx1)
link(Idx1,6998305:Position,[(370,152)(342,152)(342,285)(188,285)])
}
Add(For,6998305,182,245)
{
End=8
link(onEvent,5447273:doRandom,[(239,251)(239,223)])
link(End,13626335:getVar,[])
}
Add(Hub,1811478,119,224)
{
OutCount=4
link(onEvent1,5447273:doRandomize,[])
link(onEvent3,5447273:doMax,[])
link(onEvent4,6998305:doFor,[])
}
Add(Screen,14810740,147,105)
{
}
Add(Math,12174404,147,161)
{
OpType=7
Op2=64
link(onResult,5288692:doFor,[])
link(Op1,14810740:Width,[])
}
Add(For,5288692,217,161)
{
link(onEvent,14407297:doAdd,[])
link(End,4306181:getVar,[])
}
Add(Hub,12520529,70,161)
{
link(onEvent1,12174404:doOperation,[])
link(onEvent2,1811478:doEvent1,[(99,174)(99,230)])
}
Add(LineBreakEx,8929268,147,203)
{
Type=3
link(_Data,12174404:Result,[])
}
Add(LineBreakEx,4306181,224,133)
{
Type=2
}
Add(LineBreakEx,13626335,189,210)
{
Type=2
}
Add(LineBreakEx,14266807,266,189)
{
Type=2
}
Add(LineBreakEx,972020,301,294)
{
Type=2
}
END_SDK
Add(Hub,6425512,525,133)
{
link(onEvent1,1739603:doAutoStop,[(550,139)(550,160)])
link(onEvent2,1739603:doTimer,[])
}
Add(Math,5709904,469,133)
{
Op2=1
link(onResult,6425512:doEvent1,[])
link(Op1,4118344:Array,[])
}
Add(Timer,14110908,770,238)
{
Interval=60
Enable=1
link(onTimer,899198:doEvent1,[])
}
Add(Math,7973818,770,189)
{
Op2=1
link(onResult,1776223:doAdd,[])
}
Add(ArrayEnum,16022723,861,238)
{
link(onItem,800294:##select,[(902,244)(902,139)])
link(Array,1776223:Array,[])
}
Add(Hub,899198,819,238)
{
OutCount=3
link(onEvent1,16022723:doEnum,[])
link(onEvent2,324295:doRefresh,[(844,251)(844,83)])
link(onEvent3,2262302:doString,[(840,258)(840,335)])
}
Add(Hub,9763273,728,140)
{
link(onEvent1,9504345:doOperation,[])
link(onEvent2,7973818:doOperation,[(756,153)(756,195)])
}
Add(ListBox,1776223,847,189)
{
Left=80
Top=95
Width=145
Height=425
}
Add(FormatStr,2262302,854,329)
{
Mask="Количество индексов в списке: %1\r\nКоличество схем: %2"
link(onFString,15056479:doText,[(894,335)(894,349)])
link(Str1,1776223:Count,[])
link(Str2,800294:##count,[(867,303)(923,303)])
}
Add(Memo,15056479,917,322)
{
Left=80
Top=40
Width=245
Height=50
}
Вот зачем их хранить? Какой смысл в том что они будут обрабатываться не последовательно (0,1,2,3...), а в том порядке как добавлены в список? Да и элемента MultiElementEx (Вложенная схема) при свойстве Mode=Standard количество схем будет на одну больше чем будет обрабатываться (можно убедится по точке ##Count).
Если заменить на обычный перебор циклом по количеству схем и поставить свойство Mode=Dynamic получится логичней:
Add(MainForm,1214487,238,112)
{
Width=1920
Height=1080
Color=0
Caption="Drop_text"
BorderStyle=0
WindowsState=2
Point(Width)
Point(Height)
Point(onKeyDown)
link(onCreate,9405426:doEvent1,[])
link(onKeyDown,10262512:doCompare,[(277,139)(277,153)(172,153)(172,118)])
}
Add(If_else,10262512,182,112)
{
Op2=Integer(27)
link(onTrue,1214487:doClose,[(228,118)(228,139)])
}
Add(PaintBox,324295,490,238)
{
Width=1920
Height=1080
Align=5
Color=0
link(onBeforeDraw,14292065:doFor,[])
}
Add(MultiElementEx,800294,623,140)
{
Mode=1
link(Bitmap,324295:Bitmap,[(629,128)(663,128)(663,281)(496,281)])
AddHint(49,38,56,13,Mode)
}
BEGIN_SDK
Add(EditMultiEx,5032481,28,28)
{
WorkCount=#8:##select|5:##add|
VarCount=#7:##count|
DataCount=#6:Bitmap|
Width=1210
Height=564
VOffset=140
HOffset=350
Point(##select)
Point(##add)
Point(##count)
link(##select,7431850:doEvent1,[])
link(##add,16098172:doValue,[])
}
Add(LineBreakEx,518403,1120,224)
{
Caption="X"
Type=2
}
Add(LineBreakEx,498210,1127,238)
{
Caption="Y"
Type=2
}
Add(Hub,1834365,980,301)
{
OutCount=3
link(onEvent1,15235833:doCompare,[(1005,307)(1005,265)])
link(onEvent2,5253420:doFont,[])
link(onEvent3,198922:doDraw,[(1068,321)(1068,307)])
}
Add(Font,5253420,1029,308)
{
Font=[Symbol,18,1,0,2]
link(onFont,198922:doFont,[])
link(Color,15235833:Value,[])
}
Add(Img_Text,198922,1106,301)
{
Font=[MS Sans Serif,18,0,0,1]
Point(X)
Point(Y)
Point(doFont)
Point(Orientation)
Point(Transform)
link(Bitmap,14413677:getVar,[])
link(Text,9160298:Value,[(1119,292)(1098,292)(1098,348)(930,348)])
link(X,518403:getVar,[])
link(Y,498210:getVar,[])
link(Orientation,12521087:Value,[])
link(Transform,16629619:Var1,[(1147,289)])
}
Add(Img_Rectangle,9092366,294,399)
{
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(Point2)
link(onDraw,10381362:doFor,[(438,405)(438,307)])
link(Bitmap,6596993:getVar,[(300,390)(272,390)])
link(Point1,7309819:Point,[])
link(Point2,13620870:Point,[])
}
Add(PointXY,7309819,308,308)
{
link(X,16098172:Value,[(314,292)(62,292)])
}
Add(LineBreakEx,12492403,378,49)
{
Caption="bmp"
Type=3
link(_Data,5032481:Bitmap,[])
}
Add(LineBreakEx,14413677,1106,210)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,6596993,266,343)
{
Caption="bmp"
Type=2
}
Add(ConvertorEx,9208594,672,175)
{
Mode=4
link(onResult,9310876:doWork2,[])
}
Add(For,15278039,539,175)
{
Start=1
link(onEvent,14567666:doRandom,[])
link(End,9910294:Var3,[(552,166)(519,166)(519,222)])
}
Add(Random,14567666,616,175)
{
Min=97
Max=119
link(onRandom,9208594:doConvert,[])
}
Add(MultiElementEx,7431850,168,168)
{
@Hint=#15:Скорость змейки|
link(onEvent1,4745142:doRandom,[])
link(onEvent2,9092366:doDraw,[(225,181)(225,405)])
link(Op2,4745142:Random,[(174,159)(230,159)(230,215)(286,215)])
link(X2,11982895:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,14506169,21,21)
{
WorkCount=#8:doEvent1|7:doValue|
EventCount=#8:onEvent1|8:onEvent2|
VarCount=#5:Count|
DataCount=#3:Op2|2:X2|
Width=265
Height=193
VOffset=77
HOffset=140
link(doEvent1,6244430:doNext,[(207,104)(207,111)])
link(doValue,16191468:doCalc,[(47,111)(47,118)])
link(Count,6244430:Count,[(167,173)(223,173)])
}
Add(Screen,14142255,182,35)
{
}
Add(MathParse,16191468,161,112)
{
DataCount=3
MathStr="((%3/(%1/10)) + (24*%2))"
Point(onError)
Point(PosErr)
link(onResult,6244430:doMax,[])
link(X1,14506169:Op2,[])
link(X2,14506169:X2,[])
link(X3,14142255:Height,[(181,75)(195,75)])
}
Add(CounterEx,6244430,217,105)
{
Max=0
Step=25
Point(onThroughMax)
Point(doMax)
link(onNext,14506169:onEvent2,[])
link(onThroughMax,14506169:onEvent1,[(256,118)(256,104)])
}
END_SDK
Add(StrList,3038389,847,175)
{
}
Add(Hub,9243747,343,168)
{
OutCount=4
link(onEvent1,11663880:doOperation,[(368,174)(368,118)])
link(onEvent2,5367180:doRandom,[])
link(onEvent3,7431850:doValue,[(368,188)(368,209)(158,209)(158,181)])
link(onEvent4,12667648:doData,[(431,195)(431,531)])
}
Add(LineBreakEx,8815716,105,231)
{
Caption="X"
Type=3
link(_Data,11144372:Result,[])
}
Add(LineBreakEx,13135512,581,350)
{
Caption="Y"
Type=3
link(_Data,6825520:Result,[])
}
Add(ArrayRW,6766912,861,301)
{
link(onRead,9160298:doValue,[])
link(Array,3460041:Var2,[])
link(Index,14078624:getVar,[])
}
Add(Memory,9160298,924,301)
{
link(onData,1834365:doEvent1,[])
}
Add(LineBreakEx,9150020,462,231)
{
Caption="shtk"
Type=3
link(_Data,9910294:Var2,[])
}
Add(LineBreakEx,4061221,1043,182)
{
Caption="shtk"
Type=2
}
Add(DoData,11392809,777,217)
{
Data=Integer(0)
link(onEventData,3038389:doDelete,[(823,223)(823,195)])
}
Add(For,10381362,469,301)
{
Start=1
link(onEvent,6825520:doCalc,[])
link(onStop,13850482:doEvent1,[(557,314)(557,461)])
link(End,7915976:getVar,[])
}
Add(LineBreakEx,9937239,469,350)
{
Caption="++"
Type=3
link(_Data,10381362:Position,[])
}
Add(LineBreakEx,16492803,1036,161)
{
Caption="++"
Type=2
}
Add(LineBreakEx,14078624,868,266)
{
Caption="++"
Type=2
}
Add(MathParse,6825520,581,301)
{
DataCount=4
MathStr="(((%1*24)-(%2*24) + %3)*%4)"
link(onResult,12733338:doCompare,[])
link(X1,10974919:getVar,[])
link(X2,3749042:getVar,[])
link(X3,14642366:getVar,[])
link(X4,11523231:Var2,[])
}
Add(LineBreakEx,3749042,588,245)
{
Caption="shtk"
Type=2
}
Add(LineBreakEx,14642366,595,266)
{
Caption="y++"
Type=2
}
Add(LineBreakEx,9650834,168,224)
{
Caption="y++"
Type=3
link(_Data,7431850:Count,[])
}
Add(Memory,16098172,56,175)
{
link(onData,11144372:doOperation,[])
}
Add(MultiElementEx,6543209,651,385)
{
@Hint=#17:Цвет первой буквы|
link(onEvent1,6350101:doEvent1,[(690,391)(690,216)])
}
BEGIN_SDK
Add(EditMultiEx,1744732,14,14)
{
WorkCount=#8:doEvent1|
EventCount=#8:onEvent1|
VarCount=#5:Color|5:Value|
Width=410
VOffset=70
HOffset=70
link(doEvent1,12921478:doEvent1,[])
link(Color,960973:Color,[])
link(Value,1248302:Var,[(97,187)(363,187)])
}
Add(RGB,960973,84,98)
{
R=1
G=200
B=240
}
Add(Hub,12921478,28,84)
{
OutCount=3
link(onEvent1,6402014:doWork2,[])
link(onEvent3,960973:doRGB,[])
}
Add(ConvertorEx,1248302,357,84)
{
Mode=4
link(onResult,1744732:onEvent1,[])
}
Add(Random,2485106,175,84)
{
Max=33
link(onRandom,875740:doRead,[])
}
Add(StrList,14281744,217,28)
{
Strings=#2:34|2:35|2:36|2:37|2:38|2:68|2:74|2:81|2:83|2:87|2:88|2:89|3:118|3:119|3:120|3:121|3:122|3:161|3:192|3:193|3:194|3:195|3:198|3:199|3:200|3:201|3:204|3:209|3:210|3:211|3:229|2:97|2:98|2:99|3:100|3:103|3:105|3:109|3:115|3:117|0:|
}
Add(ArrayRW,875740,231,84)
{
link(onRead,10001970:doData,[])
link(Array,14281744:Array,[])
}
Add(ChangeMon,10001970,294,84)
{
Point(onNoData)
link(onData,1248302:doConvert,[])
link(onNoData,6402014:doWork1,[(333,97)(333,76)(158,76)])
}
Add(HubEx,6402014,154,84)
{
link(onEvent,2485106:doRandom,[])
}
END_SDK
Add(Font,12038288,644,462)
{
Font=[Symbol,18,1,0,2]
link(onFont,8650820:doFont,[])
link(Color,6543209:Color,[])
}
Add(Img_Text,8650820,714,455)
{
Font=[MS Sans Serif,18,1,0,1]
Point(X)
Point(Y)
Point(doFont)
Point(Orientation)
Point(Transform)
link(Bitmap,1681701:getVar,[])
link(Text,6543209:Value,[(727,439)(664,439)])
link(X,5639361:getVar,[])
link(Y,9166504:getVar,[])
link(Orientation,790971:Value,[(748,411)(776,411)])
link(Transform,16629619:Var2,[(755,448)(1182,448)])
}
Add(LineBreakEx,5639361,728,371)
{
Caption="X"
Type=2
}
Add(LineBreakEx,9166504,735,392)
{
Caption="Y"
Type=2
}
Add(Hub,13850482,567,455)
{
OutCount=4
link(onEvent1,6543209:doEvent1,[(592,461)(592,391)])
link(onEvent2,12038288:doFont,[])
link(onEvent3,8650820:doDraw,[(683,475)(683,461)])
link(onEvent4,3536494:doEvent1,[(634,482)(634,524)])
}
Add(LineBreakEx,1681701,714,357)
{
Caption="bmp"
Type=2
}
Add(LineBreakEx,7915976,476,266)
{
Caption="shtk"
Type=2
}
Add(Hub,6350101,742,210)
{
link(onEvent1,9310876:doWork3,[(816,216)])
link(onEvent2,11392809:doData,[])
}
Add(HubEx,9310876,812,175)
{
link(onEvent,3038389:doAdd,[])
}
Add(ArrayRW,1116606,903,511)
{
link(Array,3460041:Var1,[(909,254)])
link(Index,3536494:Count,[(916,502)(895,502)(895,558)(853,558)])
}
Add(MultiElementEx,3536494,847,518)
{
link(onEvent1,1116606:doWrite,[])
}
BEGIN_SDK
Add(EditMultiEx,11860882,21,21)
{
WorkCount=#8:doEvent1|5:doMax|8:doRandom|
EventCount=#8:onEvent1|8:onEvent2|
VarCount=#5:Count|6:Result|
Height=151
link(doEvent1,5076343:doRandom,[(64,27)(64,97)])
link(doMax,5076343:doMax,[(46,34)(46,118)])
link(Count,5076343:Random,[(27,138)(90,138)])
}
Add(ConvertorEx,13733802,252,91)
{
Mode=4
link(onResult,11860882:onEvent1,[(306,97)(306,27)])
}
Add(Random,5076343,84,91)
{
Point(doMax)
link(onRandom,14404474:doRandom,[])
}
Add(Random,14404474,140,91)
{
Max=34
link(onRandom,2972464:doRead,[])
}
Add(StrList,4368834,196,35)
{
Strings=#2:32|2:32|2:34|2:35|2:36|2:37|2:38|2:68|2:74|2:81|2:83|2:87|2:88|2:89|3:118|3:119|3:120|3:121|3:122|3:161|3:192|3:193|3:194|3:195|3:198|3:199|3:200|3:201|3:204|3:209|3:210|3:211|3:229|0:|0:|
}
Add(ArrayRW,2972464,196,91)
{
link(onRead,13733802:doConvert,[])
link(Array,4368834:Array,[(202,75)(216,75)])
}
END_SDK
Add(GetDataEx,3460041,861,249)
{
link(Data,3038389:Array,[])
}
Add(DoData,12667648,784,525)
{
link(onEventData,3536494:doMax,[])
link(Data,3131296:getVar,[])
}
Add(LineBreakEx,3131296,784,490)
{
Caption="shtk"
Type=2
}
Add(Memory,790971,770,357)
{
Default=Integer(0)
}
Add(Memory,12521087,1134,252)
{
Default=Integer(0)
}
Add(If_else,12733338,651,301)
{
Type=4
Op2=Integer(-50)
link(onTrue,4080788:doCompare,[])
link(Op1,4883614:getVar,[])
}
Add(LineBreakEx,4883614,651,266)
{
Caption="Y"
Type=2
}
Add(If_else,4080788,777,301)
{
Type=3
link(onTrue,6766912:doRead,[])
link(Op1,9683670:getVar,[])
link(Op2,13102385:Var3,[(790,289)])
}
Add(LineBreakEx,9683670,777,266)
{
Caption="Y"
Type=2
}
Add(Screen,9849657,315,231)
{
}
Add(PointXY,13620870,315,350)
{
X=64
Y=1920
link(Y,13102385:Var2,[])
}
Add(Random,4745142,280,168)
{
@Hint=#11:Размер букв|
Min=6
Max=32
link(onRandom,9243747:doEvent1,[])
AddHint(-27,-42,80,13,@Hint)
}
Add(GetDataEx,13102385,322,284)
{
link(Data,9849657:Height,[])
}
Add(Math,11663880,602,112)
{
OpType=3
Op2=10
link(onResult,12119660:doRandom,[])
}
Add(Img_UseScale,3699251,1176,210)
{
link(X,12758330:Var2,[])
link(Y,12758330:Var3,[(1196,152)])
}
Add(GetDataEx,16629619,1176,284)
{
link(Data,3699251:Transform,[])
}
Add(Math,11144372,105,175)
{
Op2=22
}
Add(MultiElementEx,15235833,1036,259)
{
link(Op1,16492803:getVar,[])
link(X1,4061221:getVar,[])
link(Index,1515786:Value,[])
}
BEGIN_SDK
Add(EditMultiEx,7855501,21,21)
{
WorkCount=#9:doCompare|6:doData|
EventCount=#6:onData|
VarCount=#5:Value|5:Color|
DataCount=#3:Op1|2:X1|5:Index|
Width=363
Height=270
VOffset=35
HOffset=70
link(doCompare,7731191:doCalc,[])
link(doData,7697000:doData,[(81,69)(81,146)])
link(Value,1610606:Color,[(97,222)(307,222)])
}
Add(RGB,1610606,301,182)
{
link(R,4746349:Value,[(307,131)(286,131)])
link(G,9954577:Value,[])
link(B,12540605:Value,[(321,173)(328,173)])
}
Add(Hub,8699698,140,56)
{
link(onEvent1,13261033:doEvent,[])
link(onEvent2,1610606:doRGB,[(166,69)(166,188)])
}
Add(Memory,12540605,322,133)
{
Default=Integer(0)
}
Add(MathParse,7731191,91,56)
{
MathStr="(%1 * (256/%2))"
link(onResult,8699698:doEvent1,[])
link(X1,7855501:Op1,[])
link(X2,7855501:X1,[])
}
Add(IndexToChanel,13261033,182,56)
{
Count=3
Point(Index)
link(onEvent1,13187063:doWork2,[])
link(onEvent2,8781975:doWork2,[])
link(onEvent3,13809484:doWork2,[(221,76)(221,139)])
link(Index,7855501:Index,[(188,47)(111,47)])
}
Add(Memory,9954577,308,91)
{
Default=Integer(0)
}
Add(Memory,4746349,280,56)
{
Default=Integer(0)
}
Add(DoData,7697000,91,140)
{
Data=Integer(0)
link(onEventData,71511:doEvent1,[])
}
Add(Hub,71511,175,140)
{
OutCount=3
link(onEvent1,13187063:doWork3,[(228,146)])
link(onEvent2,8781975:doWork3,[(235,153)])
link(onEvent3,13809484:doWork3,[(242,160)])
}
Add(HubEx,13187063,224,56)
{
link(onEvent,4746349:doValue,[])
}
Add(HubEx,8781975,231,63)
{
link(onEvent,9954577:doValue,[(261,69)(261,97)])
}
Add(HubEx,13809484,238,133)
{
link(onEvent,12540605:doValue,[])
}
END_SDK
Add(Random,5367180,462,175)
{
@Hint=#12:сколько букв|
Min=10
Max=14
link(onRandom,15278039:doFor,[])
AddHint(-30,-44,83,13,@Hint)
}
Add(LineBreakEx,11982895,175,140)
{
Caption="shtk"
Type=2
}
Add(LineBreakEx,10974919,581,224)
{
Caption="++"
Type=2
}
Add(GetDataEx,11523231,602,154)
{
link(Data,11663880:Result,[])
}
Add(GetDataEx,12758330,1183,147)
{
Angle=3
link(Data,11523231:Var3,[(818,152)(818,159)])
}
Add(Memory,1515786,1050,203)
{
Default=Integer(0)
}
Add(GetDataEx,9910294,462,217)
{
link(Data,5367180:Random,[])
}
Add(Random,12119660,693,112)
{
@Hint=#10:1,2,3 цвет|5:синий|7:зелёный|7:красный|
Max=2
link(onRandom,868462:doEvent1,[])
AddHint(-22,-83,65,52,@Hint)
}
Add(Hub,868462,763,112)
{
link(onEvent1,16421563:doEvent1,[(911,118)(911,209)])
link(onEvent2,3038389:doClear,[(823,125)(823,188)])
}
Add(Hub,16421563,931,203)
{
link(onEvent1,1515786:doValue,[])
link(onEvent2,15235833:doData,[(1012,216)(1012,272)])
}
END_SDK
Add(Hub,9405426,294,126)
{
OutCount=5
link(onEvent1,4118344:doEvent1,[(319,132)(319,90)])
link(onEvent3,5709904:doOperation,[])
link(onEvent4,8529234:doData,[(340,153)(340,202)])
link(onEvent5,14110908:doTimer,[(333,160)(333,244)])
}
Add(DoData,8529234,350,196)
{
Data=Integer(0)
link(onEventData,3499210:doVisible,[(397,202)(397,216)])
}
Add(MouseEvent,3499210,413,196)
{
Point(doVisible)
}
Add(Math,9504345,574,147)
{
OpType=2
Op2=64
link(onResult,800294:##add,[])
}
Add(Timer,1739603,448,147)
{
Interval=200
Enable=1
Point(doAutoStop)
link(onTimer,6603290:doNext,[])
}
Add(CounterEx,6603290,490,147)
{
Default=-1
link(onNext,3436545:doRead,[])
}
Add(ArrayRW,3436545,532,147)
{
link(onRead,9504345:doOperation,[])
link(Array,4118344:getVar,[(538,131)(363,131)])
}
Add(MultiElementEx,4118344,350,84)
{
}
BEGIN_SDK
Add(EditMultiEx,2612228,21,21)
{
WorkCount=#8:doEvent1|
EventCount=#6:onStop|
VarCount=#5:Array|6:getVar|
Width=412
Height=312
VOffset=140
HOffset=280
link(doEvent1,12520529:doEvent1,[])
link(Array,972020:getVar,[])
link(getVar,14407297:Array,[(314,312)(370,312)])
}
Add(Random,5447273,266,217)
{
Max=9
Point(doMax)
Point(Max)
link(onRandom,14407297:doSwap,[(315,223)(315,195)])
link(Max,14266807:getVar,[])
}
Add(StrList,14407297,350,161)
{
Point(doSwap)
Point(Idx1)
link(Idx1,6998305:Position,[(370,152)(342,152)(342,285)(188,285)])
}
Add(For,6998305,182,245)
{
End=8
link(onEvent,5447273:doRandom,[(239,251)(239,223)])
link(End,13626335:getVar,[])
}
Add(Hub,1811478,119,224)
{
OutCount=4
link(onEvent1,5447273:doRandomize,[])
link(onEvent3,5447273:doMax,[])
link(onEvent4,6998305:doFor,[])
}
Add(Screen,14810740,147,105)
{
}
Add(Math,12174404,147,161)
{
OpType=7
Op2=64
link(onResult,5288692:doFor,[])
link(Op1,14810740:Width,[])
}
Add(For,5288692,217,161)
{
link(onEvent,14407297:doAdd,[])
link(End,4306181:getVar,[])
}
Add(Hub,12520529,70,161)
{
link(onEvent1,12174404:doOperation,[])
link(onEvent2,1811478:doEvent1,[(99,174)(99,230)])
}
Add(LineBreakEx,8929268,147,203)
{
Type=3
link(_Data,12174404:Result,[])
}
Add(LineBreakEx,4306181,224,133)
{
Type=2
}
Add(LineBreakEx,13626335,189,210)
{
Type=2
}
Add(LineBreakEx,14266807,266,189)
{
Type=2
}
Add(LineBreakEx,972020,301,294)
{
Type=2
}
END_SDK
Add(Hub,6425512,406,140)
{
link(onEvent1,1739603:doAutoStop,[(431,146)(431,167)])
link(onEvent2,1739603:doTimer,[])
}
Add(Math,5709904,350,140)
{
Op2=1
link(onResult,6425512:doEvent1,[])
link(Op1,4118344:Array,[])
}
Add(Timer,14110908,448,238)
{
Interval=60
Enable=1
link(onTimer,324295:doRefresh,[])
}
Add(For,14292065,532,238)
{
IncludeEnd=1
link(onEvent,800294:##select,[(613,244)(613,146)])
link(End,800294:##count,[(545,205)(629,205)])
}

Редактировалось 2 раз(а), последний 2024-05-29 13:56:53
карма: 11

1
Голосовали:Flapiotun
9
Сообщение
...
Прикрепленные файлы
(файлы не залиты)