Root/Software/sie_cg/block_editor/framebuffer_drawline.die

1<!--File for SIE Code Generator. Custmos Blocks-->
2<CustomItem BlockName="FB Draw HLine">
3    <Polygon>
4        <Point x="-80" y="-70"/>
5        <Point x="100" y="-70"/>
6        <Point x="100" y="-50"/>
7        <Point x="-80" y="-50"/>
8        <Point x="-80" y="10"/>
9        <Point x="100" y="10"/>
10        <Point x="100" y="-50"/>
11        <Point x="100" y="10"/>
12        <Point x="-20" y="10"/>
13        <Point x="-20" y="-50"/>
14        <Point x="100" y="-50"/>
15        <Point x="100" y="-30"/>
16        <Point x="-20" y="-30"/>
17        <Point x="60" y="-30"/>
18        <Point x="60" y="-50"/>
19        <Point x="100" y="-50"/>
20        <Point x="100" y="-30"/>
21        <Point x="100" y="-10"/>
22        <Point x="-20" y="-10"/>
23        <Point x="60" y="-10"/>
24        <Point x="60" y="-30"/>
25        <Point x="100" y="-30"/>
26        <Point x="100" y="-10"/>
27        <Point x="100" y="10"/>
28        <Point x="100" y="-10"/>
29        <Point x="60" y="-10"/>
30        <Point x="60" y="10"/>
31        <Point x="-20" y="10"/>
32        <Point x="-80" y="10"/>
33        <Point x="-80" y="-10"/>
34        <Point x="-60" y="-10"/>
35        <Point x="-20" y="-10"/>
36        <Point x="-60" y="-10"/>
37        <Point x="-60" y="-30"/>
38        <Point x="-20" y="-30"/>
39        <Point x="-80" y="-30"/>
40        <Point x="-60" y="-30"/>
41        <Point x="-60" y="-30"/>
42        <Point x="-60" y="-50"/>
43        <Point x="-80" y="-50"/>
44    </Polygon>
45    <TextItems>
46        <TextItem myStyleIO="0" posOffset-y="20" editableItem="0" ID="11" text="Y" posOffset-x="-70"/>
47        <TextItem myStyleIO="0" posOffset-y="40" editableItem="0" ID="10" text="X" posOffset-x="-70"/>
48        <TextItem myStyleIO="0" posOffset-y="40" editableItem="1" ID="1" text="0" posOffset-x="-40"/>
49        <TextItem myStyleIO="0" posOffset-y="20" editableItem="1" ID="2" text="0" posOffset-x="-40"/>
50        <TextItem myStyleIO="0" posOffset-y="20" editableItem="1" ID="7" text="255" posOffset-x="80"/>
51        <TextItem myStyleIO="0" posOffset-y="20" editableItem="0" ID="4" text="Maximum" posOffset-x="20"/>
52        <TextItem myStyleIO="0" posOffset-y="40" editableItem="1" ID="9" text="8" posOffset-x="80"/>
53        <TextItem myStyleIO="0" posOffset-y="40" editableItem="0" ID="8" text="Bar width" posOffset-x="20"/>
54        <TextItem myStyleIO="0" posOffset-y="-0" editableItem="1" ID="5" text="3" posOffset-x="80"/>
55        <TextItem myStyleIO="0" posOffset-y="-0" editableItem="0" ID="6" text="Color Idx" posOffset-x="20"/>
56        <TextItem myStyleIO="0" posOffset-y="60" editableItem="0" ID="0" text="Frame Buffer Draw HBar" posOffset-x="10"/>
57        <TextItem myStyleIO="138" posOffset-y="-0" editableItem="0" ID="3" text="IN UShort" posOffset-x="-80"/>
58    </TextItems><![CDATA[]]><![CDATA[]]><![CDATA[ if(!firstLoop) // do nothing in first loop
59    {
60           fillrect(value_1,value_2,value_1+value_7,value_2+value_9,0); //Black Rect
61        rect(value_1,value_2,value_1+value_7,value_2+value_9,value_5); //Extern Rect
62        fillrect(value_1,value_2,value_1+(in_3%(value_7+1)),value_2+value_9,value_5);
63    }
64]]><![CDATA[]]></CustomItem>
65

Archive Download this file

Branches:
master



interactive