Вверх ↑
Ответов: 19
Рейтинг: 21
#1: 2022-11-14 20:27:37 ЛС | профиль | цитата
Моя попытка, что-то переворачивать.


Add(MainForm,2953706,49,154)
{
Width=418
Height=473
Caption="переверни"
BorderStyle=1
Icon=[ZIP7E03000078DA63606004420101062029C190C1CCC020C6C0C0A001C440210605068838083830330C149874078190404303020D6AF5431C34202154F01F090D5EF5B403FF81F6343662C7203942F200B4725451]
Position=1
link(onCreate,2671369:doEvent2,[(90,174)(90,118)])
}
Add(PaintBox,12793008,497,119)
{
Left=5
Top=35
Width=400
Height=400
Point(MouseX)
Point(MouseY)
Point(onMouseDown)
link(onMouseDown,15215645:In,[])
}
Add(Button,7183788,49,105)
{
Left=5
Top=5
Caption="старт"
link(onClick,2671369:doEvent1,[])
}
Add(Img_Rectangle,8715256,434,119)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=255
Point(Point1)
Point(BgColor)
link(onDraw,7153133:doWork2,[])
link(Bitmap,4785343:getVar,[(440,103)(412,103)])
link(Point1,4532741:Point,[])
link(BgColor,5555738:Value,[(461,104)(503,104)])
}
Add(For,14809704,182,119)
{
End=4
link(onEvent,3470752:doOperation,[])
link(onStop,4584992:doTimer,[(228,132)(228,419)])
link(End,3530530:Var2,[])
}
Add(PointXY,4532741,448,56)
{
link(X,3470752:Result,[(454,47)(337,47)(337,161)(251,161)])
link(Y,15681026:Result,[(461,40)(394,40)(394,163)(356,163)])
}
Add(For,7943352,294,119)
{
End=4
link(onEvent,15681026:doOperation,[])
link(End,3530530:Var3,[(307,96)])
}
Add(LineBreakEx,2586683,497,203)
{
Caption="col"
Type=3
link(_Data,12793008:Bitmap,[])
}
Add(LineBreakEx,4785343,406,63)
{
Caption="col"
Type=2
}
Add(LineBreakEx,10665607,504,182)
{
Caption="x"
Type=3
link(_Data,12793008:MouseX,[])
}
Add(LineBreakEx,1487647,511,161)
{
Caption="y"
Type=3
link(_Data,12793008:MouseY,[])
}
Add(LineBreak,3392312,427,161)
{
Caption="draw"
link(Out,7153133:doWork3,[(480,167)])
Primary=[12762313,161,203]
}
Add(HubEx,7153133,476,119)
{
link(onEvent,12793008:doRefresh,[])
}
Add(Math,3470752,245,119)
{
OpType=2
Op2=100
link(onResult,7943352:doFor,[])
}
Add(Math,15681026,350,119)
{
OpType=2
Op2=100
link(onResult,8715256:doDraw,[])
}
Add(Memory,6331324,189,42)
{
Default=Integer(3)
}
Add(GetDataEx,3530530,189,91)
{
link(Data,6331324:Value,[])
}
Add(LineBreak,1773745,182,350)
{
Caption="ход"
link(Out,7926583:doEvent1,[])
Primary=[15215645,371,-224]
}
Add(Hub,2671369,126,105)
{
InCount=3
OutCount=4
link(onEvent2,12793008:doClear,[(158,118)(158,181)(487,181)(487,132)])
link(onEvent3,14809704:doFor,[])
link(onEvent4,15928427:doData,[(151,132)(151,272)])
}
Add(MultiElementEx,3102215,483,364)
{
link(onTrue,12762313:In,[])
link(onResult,14341963:doEvent1,[])
link(Data,10325535:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,8714516,28,28)
{
WorkCount=#7:doValue|10:перемешать|
EventCount=#6:onTrue|0:|8:onResult|
DataCount=#4:Data|3:Op1|
Width=608
Height=480
HOffset=140
link(doValue,14726963:doEvent1,[(58,34)(58,83)])
link(перемешать,15930955:doEvent1,[(46,41)(46,181)])
}
Add(MultiElementEx,9293959,413,210)
{
link(onTrue,2410358:doWork2,[])
link(Bitmap,13167067:getVar,[])
link(X,11063132:Result,[(426,201)(405,201)(405,250)(335,250)])
link(Y,11063132:y,[(433,194)(398,194)(398,257)(342,257)])
}
BEGIN_SDK
Add(EditMultiEx,14963320,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|
EventCount=#6:onTrue|7:onFalse|11:onEventData|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=874
Height=536
link(doGetPixel,298814:doGetPixel,[(95,69)(95,237)])
}
Add(Img_GetPoint,298814,119,231)
{
X=10
Y=10
link(onGetPixel,5714738:doCompare,[])
link(Bitmap,1291384:getVar,[])
link(X,6430913:getVar,[])
link(Y,9138145:getVar,[])
}
Add(If_else,5714738,189,231)
{
link(onTrue,9199099:doEvent1,[])
link(onFalse,11063613:doEvent1,[(360,244)(360,447)])
link(Op2,8714697:Value,[])
}
Add(Hub,9199099,455,231)
{
link(onEvent1,8243184:doOperation,[(480,237)(480,139)])
link(onEvent2,15718252:doDraw,[])
}
Add(Img_Rectangle,15718252,532,238)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,3459204:doWork2,[])
link(Bitmap,8201743:getVar,[(538,229)(489,229)])
link(Point1,9390996:Point,[])
link(BgColor,7055805:Value,[(559,222)(594,222)])
}
Add(PointXY,9390996,546,182)
{
link(X,8243184:Result,[(552,173)(503,173)])
link(Y,10356539:Result,[])
}
Add(LineBreakEx,7918256,70,126)
{
Caption="x"
Type=3
link(_Data,14963320:X,[])
}
Add(LineBreakEx,14225887,77,112)
{
Caption="y"
Type=3
link(_Data,14963320:Y,[])
}
Add(LineBreakEx,3008510,63,140)
{
Caption="bmap"
Type=3
link(_Data,14963320:Bitmap,[])
}
Add(LineBreakEx,6430913,126,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,9138145,133,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,1291384,119,168)
{
Caption="bmap"
Type=2
}
Add(LineBreakEx,8201743,483,196)
{
Caption="bmap"
Type=2
}
Add(Hub,11063613,448,441)
{
link(onEvent1,5394876:doOperation,[(473,447)(473,335)])
link(onEvent2,883104:doDraw,[])
}
Add(Memory,7055805,588,182)
{
Default=Integer(2048)
}
Add(Memory,8714697,196,175)
{
Default=Integer(1134844)
}
Add(LineBreakEx,1838346,497,98)
{
Caption="x"
Type=2
}
Add(LineBreakEx,5034576,553,105)
{
Caption="y"
Type=2
}
Add(Img_Rectangle,883104,518,448)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,3459204:doWork3,[(887,454)])
link(Bitmap,12459374:getVar,[(524,439)(489,439)])
link(Point1,8256083:Point,[])
link(BgColor,6809842:Value,[(545,432)(573,432)])
}
Add(LineBreakEx,12459374,483,406)
{
Caption="bmap"
Type=2
}
Add(Memory,6809842,567,392)
{
Default=Integer(1134844)
}
Add(HubEx,3459204,883,238)
{
Angle=3
link(onEvent,14963320:onTrue,[(887,69)])
}
Add(Math,8243184,497,133)
{
OpType=1
Op2=50
link(onResult,10356539:doOperation,[])
link(Op1,1838346:getVar,[])
}
Add(Math,10356539,553,133)
{
OpType=1
Op2=50
link(Op1,5034576:getVar,[])
}
Add(PointXY,8256083,532,378)
{
link(X,5394876:Result,[(538,369)(489,369)])
link(Y,14256778:Result,[])
}
Add(LineBreakEx,6544131,483,294)
{
Caption="x"
Type=2
}
Add(LineBreakEx,4109428,539,301)
{
Caption="y"
Type=2
}
Add(Math,5394876,483,329)
{
OpType=1
Op2=50
link(onResult,14256778:doOperation,[])
link(Op1,6544131:getVar,[])
}
Add(Math,14256778,539,329)
{
OpType=1
Op2=50
link(Op1,4109428:getVar,[])
}
END_SDK
Add(LineBreakEx,5770125,168,49)
{
Type=3
link(_Data,8714516:Data,[])
}
Add(LineBreakEx,13167067,413,161)
{
Type=2
}
Add(Hub,14726963,112,77)
{
OutCount=6
link(onEvent1,690803:doEvent1,[(214,83)(214,216)])
link(onEvent2,10260624:doClear,[(298,90)(298,125)])
link(onEvent3,7091103:doEvent1,[(137,97)(137,321)])
link(onEvent5,16582081:doEvent1,[(144,111)(144,426)])
link(onEvent6,13428030:doFor,[])
}
Add(MultiElementEx,13428030,322,112)
{
link(onResult,10260624:doGetPixel,[])
link(onStop,10260624:doData,[(382,125)(382,132)])
}
BEGIN_SDK
Add(EditMultiEx,16282250,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|6:onStop|
VarCount=#6:Result|1:y|
Width=314
Height=130
link(doFor,16514404:doFor,[(59,27)(59,76)])
link(Result,9206071:Result,[(27,128)(272,128)])
link(y,7392010:Result,[(34,117)(153,117)])
}
Add(For,16514404,84,70)
{
Start=1
End=4
link(onEvent,7392010:doCalc,[])
link(onStop,16282250:onStop,[(123,83)(123,34)])
}
Add(MathParse,7392010,147,70)
{
MathStr="%1*100 - 50"
link(onResult,10763179:doFor,[])
link(X1,16514404:Position,[(153,61)(139,61)(139,110)(90,110)])
}
Add(For,10763179,203,70)
{
Start=1
End=4
link(onEvent,9206071:doCalc,[])
}
Add(MathParse,9206071,266,70)
{
MathStr="%1*100-50"
link(onResult,16282250:onResult,[(305,76)(305,27)])
link(X1,10763179:Position,[(272,61)(258,61)(258,110)(209,110)])
}
END_SDK
Add(MultiElementEx,10260624,420,112)
{
link(onTrue,8714516:onResult,[(592,118)(592,48)])
link(Bitmap,16292762:getVar,[])
link(X,13428030:Result,[(433,103)(412,103)(412,152)(328,152)])
link(Y,13428030:y,[(440,103)(461,103)(461,159)(335,159)])
}
BEGIN_SDK
Add(EditMultiEx,4215320,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|6:doData|
EventCount=#6:onTrue|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=594
Height=445
link(doGetPixel,2141213:doEvent1,[(95,69)(95,230)])
link(doClear,7956332:doEvent1,[])
link(doData,2829206:doEvent1,[])
}
Add(Img_GetPoint,6351424,168,231)
{
X=10
Y=10
link(onGetPixel,14305944:doCompare,[])
link(Bitmap,10682830:getVar,[])
link(X,10323202:getVar,[])
link(Y,7133350:getVar,[])
}
Add(If_else,14305944,224,231)
{
link(onTrue,8518418:doData,[])
link(onFalse,9364764:doData,[(266,244)(266,279)])
link(Op2,15151446:Value,[])
}
Add(LineBreakEx,10125914,70,112)
{
Caption="x"
Type=3
link(_Data,4215320:X,[])
}
Add(LineBreakEx,13054946,77,91)
{
Caption="y"
Type=3
link(_Data,4215320:Y,[])
}
Add(LineBreakEx,7988366,63,133)
{
Caption="bmap"
Type=3
link(_Data,4215320:Bitmap,[])
}
Add(LineBreakEx,10323202,175,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,7133350,182,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,10682830,168,168)
{
Caption="bmap"
Type=2
}
Add(Memory,15151446,231,175)
{
Default=Integer(2048)
}
Add(DoData,8518418,287,231)
{
Data=Integer(1)
link(onEventData,7524622:doEvent1,[])
}
Add(DoData,9364764,287,273)
{
Data=Integer(0)
link(onEventData,6351228:doEvent1,[])
}
Add(CounterEx,54257,413,231)
{
Point(doReset)
}
Add(Hub,2141213,105,224)
{
link(onEvent2,6351424:doGetPixel,[])
}
Add(HubEx,9356382,375,238)
{
link(onEvent,54257:doReset,[])
}
Add(DoData,15788691,413,294)
{
link(onEventData,2163985:doCompare,[])
link(Data,54257:Count,[])
}
Add(If_else,2163985,476,294)
{
Op2=Integer(16)
link(onTrue,15961331:doWork2,[])
}
Add(CounterEx,10279041,413,357)
{
Point(doReset)
}
Add(DoData,4075017,413,420)
{
link(onEventData,12763186:doCompare,[])
link(Data,10279041:Count,[])
}
Add(If_else,12763186,476,420)
{
Op2=Integer(16)
link(onTrue,15961331:doWork3,[(551,426)])
}
Add(Hub,2829206,203,77)
{
link(onEvent1,15788691:doData,[(281,83)(281,300)])
link(onEvent2,4075017:doData,[(270,90)(270,426)])
}
Add(Hub,7956332,308,70)
{
link(onEvent1,9356382:doWork1,[(379,76)])
link(onEvent2,11902196:doWork2,[(361,83)(361,370)])
}
Add(Hub,7524622,336,231)
{
link(onEvent1,54257:doNext,[])
link(onEvent2,11902196:doWork1,[(368,244)(368,251)(389,251)])
}
Add(Hub,6351228,336,273)
{
link(onEvent1,9356382:doWork3,[(379,279)])
link(onEvent2,10279041:doNext,[(368,286)(368,363)])
}
Add(HubEx,11902196,385,364)
{
link(onEvent,10279041:doReset,[])
}
Add(HubEx,15961331,547,294)
{
Angle=3
link(onEvent,4215320:onTrue,[(551,69)])
}
END_SDK
Add(LineBreakEx,16292762,420,63)
{
Type=2
}
Add(MultiElementEx,11063132,329,210)
{
link(onResult,9293959:doGetPixel,[])
}
BEGIN_SDK
Add(EditMultiEx,216673,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|
VarCount=#6:Result|1:y|
Width=440
Height=284
link(doFor,553492:doSplit,[(31,27)(31,111)])
link(Result,3310033:Result,[(27,299)(195,299)])
link(y,59480:Result,[(34,152)(258,152)])
}
Add(For,9449901,126,105)
{
Start=1
End=4
link(onEvent,3310033:doCalc,[])
}
Add(MathParse,3310033,189,105)
{
MathStr="%1*100 - 50"
link(onResult,59480:doCalc,[])
link(X1,9449901:Position,[(195,96)(172,96)(172,148)(132,148)])
}
Add(StrPart,553492,63,105)
{
Char="-"
Point(Left)
Point(Right)
link(onSplit,9449901:doFor,[])
}
Add(MathParse,59480,252,105)
{
MathStr="%1*100 - 50"
link(onResult,216673:onResult,[(291,111)(291,27)])
link(X1,553492:Right,[(258,89)(118,89)(118,145)(76,145)])
}
END_SDK
Add(MultiElementEx,2291334,413,315)
{
link(onTrue,9442413:doWork2,[])
link(Bitmap,3480780:getVar,[])
link(X,6670672:Result,[(426,306)(405,306)(405,355)(328,355)])
link(Y,6670672:y,[(433,299)(398,299)(398,362)(335,362)])
}
BEGIN_SDK
Add(EditMultiEx,2018165,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|
EventCount=#6:onTrue|7:onFalse|11:onEventData|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=874
Height=536
link(doGetPixel,12616662:doGetPixel,[(95,69)(95,237)])
}
Add(Img_GetPoint,12616662,119,231)
{
X=10
Y=10
link(onGetPixel,7049327:doCompare,[])
link(Bitmap,10020744:getVar,[])
link(X,12769113:getVar,[])
link(Y,6470624:getVar,[])
}
Add(If_else,7049327,189,231)
{
link(onTrue,1301745:doEvent1,[])
link(onFalse,7596297:doEvent1,[(360,244)(360,447)])
link(Op2,5386779:Value,[])
}
Add(Hub,1301745,455,231)
{
link(onEvent1,13515662:doOperation,[(480,237)(480,139)])
link(onEvent2,700177:doDraw,[])
}
Add(Img_Rectangle,700177,532,238)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,15186642:doWork2,[])
link(Bitmap,9394914:getVar,[(538,229)(489,229)])
link(Point1,16235409:Point,[])
link(BgColor,5751489:Value,[(559,222)(594,222)])
}
Add(PointXY,16235409,546,182)
{
link(X,13515662:Result,[(552,173)(503,173)])
link(Y,1240443:Result,[])
}
Add(LineBreakEx,16335753,70,126)
{
Caption="x"
Type=3
link(_Data,2018165:X,[])
}
Add(LineBreakEx,6433444,77,112)
{
Caption="y"
Type=3
link(_Data,2018165:Y,[])
}
Add(LineBreakEx,1309308,63,140)
{
Caption="bmap"
Type=3
link(_Data,2018165:Bitmap,[])
}
Add(LineBreakEx,12769113,126,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,6470624,133,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,10020744,119,168)
{
Caption="bmap"
Type=2
}
Add(LineBreakEx,9394914,483,196)
{
Caption="bmap"
Type=2
}
Add(Hub,7596297,448,441)
{
link(onEvent1,2822784:doOperation,[(473,447)(473,335)])
link(onEvent2,14453431:doDraw,[])
}
Add(Memory,5751489,588,182)
{
Default=Integer(2048)
}
Add(Memory,5386779,196,175)
{
Default=Integer(1134844)
}
Add(LineBreakEx,1530032,497,98)
{
Caption="x"
Type=2
}
Add(LineBreakEx,13060798,553,105)
{
Caption="y"
Type=2
}
Add(Img_Rectangle,14453431,518,448)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,15186642:doWork3,[(887,454)])
link(Bitmap,1259288:getVar,[(524,439)(489,439)])
link(Point1,3825265:Point,[])
link(BgColor,3589009:Value,[(545,432)(573,432)])
}
Add(LineBreakEx,1259288,483,406)
{
Caption="bmap"
Type=2
}
Add(Memory,3589009,567,392)
{
Default=Integer(1134844)
}
Add(HubEx,15186642,883,238)
{
Angle=3
link(onEvent,2018165:onTrue,[(887,69)])
}
Add(Math,13515662,497,133)
{
OpType=1
Op2=50
link(onResult,1240443:doOperation,[])
link(Op1,1530032:getVar,[])
}
Add(Math,1240443,553,133)
{
OpType=1
Op2=50
link(Op1,13060798:getVar,[])
}
Add(PointXY,3825265,532,378)
{
link(X,2822784:Result,[(538,369)(489,369)])
link(Y,14011260:Result,[])
}
Add(LineBreakEx,3586019,483,294)
{
Caption="x"
Type=2
}
Add(LineBreakEx,3980882,539,301)
{
Caption="y"
Type=2
}
Add(Math,2822784,483,329)
{
OpType=1
Op2=50
link(onResult,14011260:doOperation,[])
link(Op1,3586019:getVar,[])
}
Add(Math,14011260,539,329)
{
OpType=1
Op2=50
link(Op1,3980882:getVar,[])
}
END_SDK
Add(LineBreakEx,3480780,413,266)
{
Type=2
}
Add(MultiElementEx,6670672,322,315)
{
link(onResult,2291334:doGetPixel,[])
}
BEGIN_SDK
Add(EditMultiEx,8894495,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|
VarCount=#6:Result|1:y|
Height=193
link(doFor,5619415:doSplit,[(31,27)(31,111)])
link(Result,11426662:Result,[(27,175)(258,175)])
link(y,6106130:Result,[(34,152)(195,152)])
}
Add(For,2620586,126,105)
{
Start=1
End=4
link(onEvent,6106130:doCalc,[])
}
Add(MathParse,6106130,189,105)
{
MathStr="%1*100 - 50"
link(onResult,11426662:doCalc,[])
link(X1,2620586:Position,[(195,96)(172,96)(172,148)(132,148)])
}
Add(StrPart,5619415,63,105)
{
Char="-"
Point(Left)
Point(Right)
link(onSplit,2620586:doFor,[])
}
Add(MathParse,11426662,252,105)
{
MathStr="%1*100 - 50"
link(onResult,8894495:onResult,[(291,111)(291,27)])
link(X1,5619415:Left,[(258,89)(118,89)(118,145)(69,145)])
}
END_SDK
Add(HubEx,2410358,577,210)
{
Angle=3
link(onEvent,8714516:onTrue,[(581,34)])
}
Add(MultiElementEx,12431117,413,420)
{
link(onTrue,9442413:doWork3,[(581,426)])
link(Bitmap,4241738:getVar,[])
link(X,16428160:Result,[(426,404)(398,404)(398,467)(328,467)])
link(Y,16428160:y,[(433,411)(391,411)(391,460)(335,460)])
}
BEGIN_SDK
Add(EditMultiEx,1012073,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|
EventCount=#6:onTrue|7:onFalse|11:onEventData|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=636
Height=459
link(doGetPixel,12043171:doGetPixel,[(95,69)(95,237)])
}
Add(Img_GetPoint,12043171,119,231)
{
X=10
Y=10
link(onGetPixel,14678426:doCompare,[])
link(Bitmap,25753:getVar,[])
link(X,5889241:getVar,[])
link(Y,8137865:getVar,[])
}
Add(If_else,14678426,189,231)
{
link(onTrue,7822734:doEvent1,[])
link(onFalse,13920450:doEvent1,[(360,244)(360,447)])
link(Op2,4017581:Value,[])
}
Add(Hub,7822734,455,231)
{
link(onEvent1,2022682:doOperation,[(480,237)(480,139)])
link(onEvent2,16683014:doDraw,[])
}
Add(Img_Rectangle,16683014,532,238)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,10790810:doWork2,[])
link(Bitmap,6905119:getVar,[(538,229)(489,229)])
link(Point1,7509475:Point,[])
link(BgColor,2664451:Value,[(559,222)(594,222)])
}
Add(PointXY,7509475,546,182)
{
link(X,2022682:Result,[(552,173)(503,173)])
link(Y,14728574:Result,[])
}
Add(LineBreakEx,13562569,70,126)
{
Caption="x"
Type=3
link(_Data,1012073:X,[])
}
Add(LineBreakEx,8278317,77,112)
{
Caption="y"
Type=3
link(_Data,1012073:Y,[])
}
Add(LineBreakEx,10256020,63,140)
{
Caption="bmap"
Type=3
link(_Data,1012073:Bitmap,[])
}
Add(LineBreakEx,5889241,126,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,8137865,133,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,25753,119,168)
{
Caption="bmap"
Type=2
}
Add(LineBreakEx,6905119,483,196)
{
Caption="bmap"
Type=2
}
Add(Hub,13920450,448,441)
{
link(onEvent1,8227123:doOperation,[(473,447)(473,335)])
link(onEvent2,11010469:doDraw,[])
}
Add(Memory,2664451,588,182)
{
Default=Integer(2048)
}
Add(Memory,4017581,196,175)
{
Default=Integer(1134844)
}
Add(LineBreakEx,4794612,497,98)
{
Caption="x"
Type=2
}
Add(LineBreakEx,5331993,553,105)
{
Caption="y"
Type=2
}
Add(Img_Rectangle,11010469,518,448)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,10790810:doWork3,[(649,454)])
link(Bitmap,6212230:getVar,[(524,439)(489,439)])
link(Point1,6936553:Point,[])
link(BgColor,15927454:Value,[(545,432)(573,432)])
}
Add(LineBreakEx,6212230,483,406)
{
Caption="bmap"
Type=2
}
Add(Memory,15927454,567,392)
{
Default=Integer(1134844)
}
Add(HubEx,10790810,645,238)
{
Angle=3
link(onEvent,1012073:onTrue,[(649,69)])
}
Add(Math,2022682,497,133)
{
OpType=1
Op2=50
link(onResult,14728574:doOperation,[])
link(Op1,4794612:getVar,[])
}
Add(Math,14728574,553,133)
{
OpType=1
Op2=50
link(Op1,5331993:getVar,[])
}
Add(PointXY,6936553,532,378)
{
link(X,8227123:Result,[(538,369)(489,369)])
link(Y,652257:Result,[])
}
Add(LineBreakEx,9553473,483,294)
{
Caption="x"
Type=2
}
Add(LineBreakEx,11047246,539,301)
{
Caption="y"
Type=2
}
Add(Math,8227123,483,329)
{
OpType=1
Op2=50
link(onResult,652257:doOperation,[])
link(Op1,9553473:getVar,[])
}
Add(Math,652257,539,329)
{
OpType=1
Op2=50
link(Op1,11047246:getVar,[])
}
END_SDK
Add(LineBreakEx,4241738,413,364)
{
Type=2
}
Add(HubEx,9442413,577,315)
{
Angle=3
link(onEvent,2410358:doWork3,[])
}
Add(MultiElementEx,16428160,322,420)
{
link(onResult,12431117:doGetPixel,[])
}
BEGIN_SDK
Add(EditMultiEx,10044466,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|
VarCount=#6:Result|1:y|
Width=328
Height=172
link(doFor,16684105:doSplit,[(31,27)(31,111)])
link(Result,7446145:Result,[(27,152)(139,152)])
link(y,12609716:Result,[(34,159)(216,159)])
}
Add(MathParse,7446145,133,105)
{
MathStr="%1*100 - 50"
link(onResult,12609716:doCalc,[])
link(X1,16684105:Left,[(139,89)(55,89)(55,145)(69,145)])
}
Add(StrPart,16684105,63,105)
{
Char="-"
Point(Left)
Point(Right)
link(onSplit,7446145:doCalc,[])
}
Add(MathParse,12609716,210,105)
{
MathStr="%1*100 - 50"
link(onResult,10044466:onResult,[(291,111)(291,27)])
link(X1,16684105:Right,[(216,96)(181,96)(181,145)(76,145)])
}
END_SDK
Add(Hub,15930955,63,175)
{
OutCount=3
link(onEvent1,690803:doEvent2,[(207,181)(207,223)])
link(onEvent2,7091103:doEvent2,[(130,188)(130,328)])
link(onEvent3,16582081:doEvent2,[(123,195)(123,433)])
}
Add(Hub,690803,245,210)
{
InCount=2
link(onEvent1,11063132:doFor,[])
}
Add(Hub,7091103,252,315)
{
InCount=2
link(onEvent1,6670672:doFor,[])
}
Add(Hub,16582081,252,420)
{
InCount=2
link(onEvent1,16428160:doFor,[])
}
END_SDK
Add(LineBreakEx,10325535,483,336)
{
Caption="col"
Type=2
}
Add(MultiElementEx,12636077,399,364)
{
link(onFString,3102215:doValue,[])
link(Op1,15333259:getVar,[])
link(Op2,10307713:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,8777461,21,21)
{
WorkCount=#9:doCompare|
EventCount=#9:onFString|
DataCount=#3:Op1|3:Op2|
Width=363
link(doCompare,1989664:doEvent1,[(48,27)(48,76)])
}
Add(Math,9951674,196,70)
{
OpType=3
Op2=100
link(onResult,851813:doOperation,[])
}
Add(Math,851813,259,70)
{
OpType=42
}
Add(Math,2150207,196,140)
{
OpType=3
Op2=100
link(onResult,10899476:doOperation,[])
}
Add(Math,10899476,259,140)
{
OpType=42
link(onResult,16175057:doString,[])
}
Add(Hub,1989664,56,70)
{
link(onEvent1,13820146:doOperation,[])
link(onEvent2,6847834:doOperation,[(81,83)(81,146)])
}
Add(FormatStr,16175057,322,140)
{
Mask="%1-%2"
link(onFString,8777461:onFString,[(375,146)(375,27)])
link(Str1,851813:Result,[(328,131)(265,131)])
}
Add(Math,13820146,133,70)
{
Op2=100
link(onResult,9951674:doOperation,[])
link(Op1,8777461:Op1,[(139,61)(27,61)])
}
Add(Math,6847834,133,140)
{
Op2=100
link(onResult,2150207:doOperation,[])
link(Op1,8777461:Op2,[(139,131)(34,131)])
}
END_SDK
Add(LineBreakEx,15333259,399,315)
{
Caption="x"
Type=2
}
Add(LineBreakEx,10307713,406,336)
{
Caption="y"
Type=2
}
Add(Memory,5555738,497,56)
{
Default=Integer(1134844)
}
Add(MultiElementEx,8600920,399,413)
{
link(onFString,3102215:перемешать,[(457,419)(457,377)])
}
BEGIN_SDK
Add(EditMultiEx,9406091,21,21)
{
WorkCount=#9:doCompare|11:doRandomize|
EventCount=#9:onFString|
DataCount=#3:Op1|3:Op2|
Width=342
Height=186
link(doCompare,15636634:doEvent1,[(40,27)(40,76)])
link(doRandomize,3798118:doEvent1,[])
}
Add(Math,1848626,231,70)
{
OpType=42
}
Add(Math,6495426,231,140)
{
OpType=42
link(onResult,10841986:doString,[])
}
Add(Hub,15636634,56,70)
{
OutCount=3
link(onEvent1,12277408:doRandom,[])
link(onEvent2,11890195:doRandom,[(88,83)(88,146)])
}
Add(FormatStr,10841986,287,140)
{
Mask="%1-%2"
link(onFString,9406091:onFString,[(346,146)(346,27)])
link(Str1,1848626:Result,[(293,131)(237,131)])
}
Add(Random,12277408,161,70)
{
Min=1
Max=4
link(onRandom,1848626:doOperation,[])
}
Add(Random,11890195,161,140)
{
Min=1
Max=4
link(onRandom,6495426:doOperation,[])
}
Add(Hub,3798118,77,28)
{
link(onEvent1,12277408:doRandomize,[(109,34)(109,83)])
link(onEvent2,11890195:doRandomize,[(102,41)(102,153)])
}
END_SDK
Add(Message,3416780,588,385)
{
Message="Вы победили."
Caption="Поздравляем"
}
Add(CounterEx,9538641,287,259)
{
Max=99999
Point(doValue)
link(onNext,6065047:doConvert,[])
}
Add(Hub,7926583,238,350)
{
OutCount=3
link(onEvent1,9538641:doNext,[(270,356)(270,265)])
link(onEvent3,12636077:doCompare,[])
}
Add(Label,4285623,399,259)
{
Left=65
Top=10
Caption="ход"
}
Add(Hub,14341963,539,378)
{
OutCount=3
link(onEvent2,3416780:doMessage,[])
link(onEvent3,2671369:doEvent3,[(564,398)(564,307)(116,307)(116,125)])
}
Add(ConvertorEx,6065047,343,259)
{
Mode=14
Word_1="ход"
Word_2="хода"
Word_5="ходов"
link(onResult,4285623:doText,[])
}
Add(Button,13652719,49,42)
{
Left=350
Top=5
Width=60
Caption="Справка"
link(onClick,2137943:doMessage,[])
}
Add(Message,2137943,105,42)
{
Message="О игре...\r\n\r\nНеобходимо нажимая на квадраты сделать все одного цвета, учитывая, что меняются квадраты которые стоят от места нажатия по вертикали и горизонтали на противоположный цвет.\r\n\r\n\r\n\r\nУдачи!\r\n\r\nAles (c)\r\n"
Caption="Справка"
}
Add(Timer,4584992,315,413)
{
Interval=50
Enable=1
AutoStop=9
link(onTimer,8600920:doCompare,[])
}
Add(DoData,15928427,175,266)
{
Data=Integer(0)
link(onEventData,9538641:doValue,[])
}
карма: 1

3
Голосовали:kamakama, sla8a, tig-rrr
Редактировалось 1 раз(а), последний 2022-11-14 20:40:07