Swatarianess
2011-12-29 11:42:15
so i got these points and want to turn them into boxes but how? i used stand how to use them i dont know how to write it tho :(
for GE script was wondering how'd u put it into Boxes :/ heres what i came up with and stuck now
just wanted to help some1 but no idea how to do it >.< also with this i'll probably make a "Sensor" test so if mouse goes into the box then its like "Your mouse is on the Buy Bag" or w.e :/
--Slot 3--
//Buy
360, 130, 400, 170
//Sell
420, 130, 470, 170
//Bar
350, 160, 480, 180
--Slot 4--
//Buy
50, 250, 100, 290
//Sell
110, 250, 160, 290
//Bar
40, 280, 160, 300
--Slot 5--
//Buy
200, 250, 250, 290
//Sell
270, 250, 310, 290
//Bar
200, 280, 320, 300
--Slot 6--
//Buy
360, 250, 400, 290
//Sell
430, 250, 470, 290
//Bar
350, 280, 480, 300
for GE script was wondering how'd u put it into Boxes :/ heres what i came up with and stuck now
program GEboxes;
{$i srl/srl.scar}
var
Slot1, Slot2, Slot3, Slot4, Slot5, Slot6 :TBox;
Slot3pTl, Slot4pTl, Slot5pTl, Slot6pTl,
Slot3Br, Slot4Br, Slot5CBr, Slot6Br :TPoint;
Procedure SetupSlots;
begin
//-------------Buying Box--------------\\
Slot3pTl:=(360,130); //360, 130, 400, 170 < Both Tl and Br
Slot4pTl:=(50,250); //50, 250, 100, 290 ^sme
Slot5pTl:=(200,250); //200, 250, 250, 290 ^sme
Slot6pTl:=(360,250); //360, 250, 400, 290 ^sme
//---------------------------------------\\
Slot3Br:=(400,170);
Slot4Br:=(100,290);
Slot5Br:=(250,290);
Slot6Br:=(400,290);
{\\=======================================//}
Slot3:= PointToBox(Slot3pTL,SLot3Br);
Slot4:= PointToBox(Slot4pTl,Slot4Br);
Slot5:= PointToBox(Slot5pTl,Slot5Br);
Slot6:= PointToBox(Slot6pTl,Slot6Br);
end;
Procedure SetupSlots2;
begin
var
SellingBox1, SellingBox2, SellingBox3, SellingBox4,
SellingBox5, SellingBox6 :TPointArray;
// Or i think you can do it like this
//-------------Selling Box--------------\\
SellingBox1 := [((x,y),(x,y)),((x,y),(x,y))]
end;
begin
SetupSRL;
end. just wanted to help some1 but no idea how to do it >.< also with this i'll probably make a "Sensor" test so if mouse goes into the box then its like "Your mouse is on the Buy Bag" or w.e :/