ImageName="Storeshop.jpg";

CancelRectNormal = {507, 258, 646, 333};
CancelRectOver = {646, 258, 785, 333};
CancelRectPressed = {785, 258, 924, 333};

OkRectNormal  = {507, 333, 646, 408};
OkRectOver = {646, 333, 785, 408};
OkRectPressed = {785, 333, 924, 408};

OkCancelRectDisable = {507, 408, 646, 483};

OneNormal={1,981,63,1023};
OneOver={63,981,125,1023};
OnePressed={125,981,187,1023};
OneDisabled={0+1, 940-1, 63, 982};

AllNormal={187,981,255,1023};
AllOver={255,981,323,1023};
AllPressed={323,981,391,1023};
AllDisabled={185+2, 940-1, 255, 982};

ButtonsPos={319,166};
ButtonsStep={76, 44};

Text1="one_num";
TextAll="AchievementGui_All";

ButtonTextNormal_1=
{
	Font="font04.fnt",
	TextArea={0, 10-3, 70, 45-9},
	SizeW=1,
	SizeH=1,
	HAlign="center",
	VAlign="center",
};
ButtonTextOver_1=
{
	Font="font04.fnt",
	TextArea={0, 10-3, 70, 45-9},
	SizeW=1,
	SizeH=1,
	HAlign="center",
	VAlign="center",
};
ButtonTextPressed_1=
{
	Font="font04.fnt",
	TextArea={0+1, 10-3+1, 70+1, 45-9+1},
	SizeW=1,
	SizeH=1,
	HAlign="center",
	VAlign="center",
};

ButtonTextNormal_all=
{
	Font="font04.fnt",
	TextArea={1, 10-3, 70+3, 45-9},
	SizeW=1,
	SizeH=1,
	SRatio=0.8,
	HAlign="center",
	VAlign="center",
};
ButtonTextOver_all=
{
	Font="font04.fnt",
	TextArea={1, 10-3, 70+3, 45-9},
	SizeW=1,
	SizeH=1,
	SRatio=0.8,
	HAlign="center",
	VAlign="center",
};
ButtonTextPressed_all=
{
	Font="font04.fnt",
	TextArea={1+1, 10-3+1, 70+3+1, 45-9+1},
	SizeW=1,
	SizeH=1,
	SRatio=0.8,
	HAlign="center",
	VAlign="center",
};

--для кнопки OK
BigButtonTextNormalOK=
{
	Font="but.fnt",
	HAlign="center",
	SRatio=0.8,
	TextArea={5, 17-1, 140+2-4, 75-14-1},
	VAlign="center",
};
BigButtonTextOverOK=
{
	Font="but.fnt",
	HAlign="center",
	SRatio=0.8,
	TextArea={5, 17-1, 140+2-4, 75-14-1},
	VAlign="center",
};
BigButtonTextPressedOK=
{
	Font="but.fnt",
	HAlign="center",
	SRatio=0.8,
	TextArea={5+1, 17+1-1, 140+2+1-4, 75-14+1-1},
	VAlign="center",
};
--для кнопки Отмена и других
BigButtonTextNormal=
{
	Font="but.fnt",
	HAlign="center",
	SRatio=0.8,
	TextArea={8, 17-2, 140-1, 75-14-2},
	VAlign="center",
};
BigButtonTextOver=
{
	Font="but.fnt",
	HAlign="center",
	SRatio=0.8,
	TextArea={8, 17-2, 140-1, 75-14-2},
	VAlign="center",
};
BigButtonTextPressed=
{
	Font="but.fnt",
	HAlign="center",
	SRatio=0.8,
	TextArea={8+1, 17+1-2, 140-1+1, 75-14+1-2},
	VAlign="center",
};

StoreShopMoney=
{
	Image="Storeshop1.jpg",
	SrcRect={542, 835, 585, 876}, --монетка
};

BoardSale=
{
	Pos={499-5,109-3},
	Image="Storeshop1.jpg",
	SrcRect={523,0,1024,503},
};


BoardBuy=
{
	Pos={550-3,109-6},
	Image="Storeshop1.jpg",
	SrcRect={606,503,1024,1009},
};

StoreShopObj=
{
	Image="Storeshop1.jpg",
	Animation=
	{
		FramesList=
		{
			{499, 835, 542, 876},--CARROT
			{370, 835, 413, 876},--TOMATO
			{456, 835, 499, 876},--POTATOES
			{413, 794, 456, 835},--SUNFLOWER
			{456, 794, 499, 835},--WHEAT
			
			{155, 835, 198, 876},--JUICE
			{241, 794, 284, 835},--KETCHUP
			{284, 794, 327, 835},--SUNFLOWEROIL
			{499, 794, 542, 835},--FLOUR
			{327, 835, 370, 876},--PACKINGPOTATOES
			{198, 835, 241, 876},--BREAD
			{198, 794, 241, 835},--FRIEDPOTATOES
			{284, 835, 327, 876},--DOUGH
			{413, 835, 456, 876},--EGG
			{155, 794, 198, 835},--MEAT
			{370, 794, 413, 835},--CUTLET
			{542, 794, 585, 835},--CREAM
			{241, 835, 284, 876},--SANDWICH
			{327, 794, 370, 835},--CAKE
            
		};
	};
};



StoreShop=
{
	Pos={0,0},
	Image=ImageName,
	SrcRect={739,926,881,1024},

	
	WinEx=
	{
		WinSize={1024,768},
		AngleScrSize={6,6},
	},

	{
		Name="title",
		Type="Image",
		Pos={0,0},
		Image=ImageName,
		SrcRect={0,681,1024,769},--0,670,1024,770},

	},


	{
		Name="main",
		Type="Image",
		Pos={0,88},
		Image=ImageName,
		SrcRect={0,0,1024,680},
	},

	--заголовок окна "ПРОДАЖА ТОВАРА"
	{
		Name="TitleShop",
		Type="Text",    
		Caption="SaleProduct",
		Font="title.fnt",
		--TextArea={124-1, 67-25-5, 412-1, 89-25},
		TextArea={64, 30, 64+397, 30+42},
		SRatio = 0.8,
		SizeW=1.0,
		SizeH=1.0,
		HAlign = "center",
		VAlign = "center",
	},	
	
	--LockBuyPage
	{
		Name="LockBuyPage",
		Pos={509, 0},
		Type="Image",
		Image="Storeshop.jpg",
		SrcRect={2, 860, 515, 933},
	},
	
	--заголовок окна "ПОКУПКА ТОВАРА"
	{
		Name="TitleStorehouse",
		Type="Text",    
		Caption="BuyProduct",
		Font="title.fnt",
		--TextArea={613-1, 67-25-5, 893-1, 89-25},
		TextArea={560, 30, 560+397, 30+42},
		SRatio = 0.8,
	--	SizeW=0.93,
	--	SizeH=0.9,
		HAlign = "center",
		VAlign = "center",
	},
	
	--надпись "Продукты"
	{
		Name="TextProducts",
		Type="Text",    
		Caption="Products",
		Font="font05.fnt",
		TextArea={72, 152-25, 163-1, 174-25},
		SRatio = 0.8,
		SizeW=1.0,
		SizeH=1.0,
		HAlign = "center",
		--VAlign = "center",
	},

	--надпись "Цена"
		{
		Name="TextPrice",
		Type="Text",    
		Caption="Price",
		Font="font05.fnt",
		TextArea={220, 152-25, 270-1, 174-25},
		SRatio = 0.8,
		SizeW=1.0,
		SizeH=1.0,
		HAlign = "center",
		--VAlign = "center",
	},

	--надпись "Отгрузить"
	{
		Name="TextBuy",
		Type="Text",    
		Caption="Ship",
		Font="font05.fnt",
		TextArea={350, 152-25, 444-1, 174-25},
		SRatio = 0.8,
		SizeW=1.0,
		SizeH=1.0,
		HAlign = "center",
		--VAlign = "center",
	},

---------------01
	{
		Name="1_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",

	},

	{
		Name="1_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------02
	{
		Name="2_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",

	},

	{
		Name="2_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},
---------------03
	{
		Name="3_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*2},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="3_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*2},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},
---------------04
	{
		Name="4_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*3},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="4_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*3},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------05
	{
		Name="5_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*4},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="5_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*4},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------06
	{
		Name="6_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*5},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="6_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*5},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------07
	{
		Name="7_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*6},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="7_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*6},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------08
	{
		Name="8_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*7},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="8_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*7},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------09
	{
		Name="9_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*8},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="9_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*8},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------10
	{
		Name="10_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*9},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="10_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*9},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",

	},

---------------11
	{
		Name="11_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*10},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="11_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*10},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},

---------------12
	{
		Name="12_one",
		Type="Button",
		Pos={ButtonsPos[1],ButtonsPos[2]+ButtonsStep[2]*11},
		Image=ImageName,
		Normal=OneNormal,
		Over=OneOver,
		Pressed=OnePressed,
		Disabled=OneDisabled,
		Caption=Text1, 
		TextNormal=ButtonTextNormal_1,
		TextOver=ButtonTextOver_1,
		TextPressed=ButtonTextPressed_1,
		SoundPressed="Product_pick",
	},

	{
		Name="12_all",
		Type="Button",
		Pos={ButtonsPos[1]+ButtonsStep[1],ButtonsPos[2]+ButtonsStep[2]*11},
		Image=ImageName,
		Normal=AllNormal,
		Over=AllOver,
		Pressed=AllPressed,
		Disabled=AllDisabled,
		Caption=TextAll, 
		TextNormal=ButtonTextNormal_all,
		TextOver=ButtonTextOver_all,
		TextPressed=ButtonTextPressed_all,
		SoundPressed="Product_pick",
	},


------------- OK у окна покупки-продажи товара
	{
		Name="StoreShop_OK",
		Type="Button",
		Pos={585+25, 654-4 },
		Image="Win02.jpg",
		Normal = OkRectNormal,
		Over = OkRectOver,
		Pressed = OkRectPressed,
		Disabled = OkCancelRectDisable,
		Caption="OK", 
		TextNormal=BigButtonTextNormalOK,
		TextOver=BigButtonTextOverOK,
		TextPressed=BigButtonTextPressedOK,

	},

------Отмена у окна покупки-продажи товара
	{
		Name="StoreShop_Cancel",
		Type="Button",
		Pos={777-18, 654-4},
		Image="Win02.jpg",
		Normal = CancelRectNormal,
		Over = CancelRectOver,
		Pressed = CancelRectPressed,
		Disabled = OkCancelRectDisable,
		Caption="Cancel", 
		TextNormal=BigButtonTextNormal,
		TextOver=BigButtonTextOver,
		TextPressed=BigButtonTextPressed,
	},

};


SaleWin=
{
	Pos={263,282},
	Image="Win02.jpg",
	SrcRect={1, 272, 508, 502},

	{
		Name="Text",
		Type="Text",	
		Caption="Sellproduct",
		Font="font04.fnt",
		TextArea={0,50,500,200},
		SRatio=0.85,
		HAlign="center",
	},


------------- OK

	{
		Name="SaleOK",
		Type="Button",
		Pos={80,100},
		Image="Win02.jpg",
		Normal = OkRectNormal,
		Over = OkRectOver,
		Pressed = OkRectPressed,
		Disabled = OkCancelRectDisable,
		Caption="Yes", 
		TextNormal=BigButtonTextNormal,
		TextOver=BigButtonTextOver,
		TextPressed=BigButtonTextPressed,
	},

------Cancel
	{
		Name="SaleCancel",
		Type="Button",
		Pos={270,100},
		Image="Win02.jpg",
		Normal = CancelRectNormal,
		Over = CancelRectOver,
		Pressed = CancelRectPressed,
		Disabled = OkCancelRectDisable,
		Caption="No", 
		TextNormal=BigButtonTextNormal,
		TextOver=BigButtonTextOver,
		TextPressed=BigButtonTextPressed,
	},


};


BuyWin=
{
	Pos={263,282},
	Image="Win02.jpg",
	SrcRect={1, 272, 508, 502},

	{
		Name="Text",
		Type="Text",	
		Caption="Buy product",
		Font="font04.fnt",
		TextArea={0,50,500,200},
		SRatio=0.85,
		HAlign="center",
	},
------------- OK
	{
		Name="BuyOK",
		Type="Button",
		Pos={80,100},
		Image="Win02.jpg",
		Normal = OkRectNormal,
		Over = OkRectOver,
		Pressed = OkRectPressed,
		Disabled = OkCancelRectDisable,
		Caption="Yes", 
		TextNormal=BigButtonTextNormal,
		TextOver=BigButtonTextOver,
		TextPressed=BigButtonTextPressed,
	},
------Cancel
	{
		Name="BuyCancel",
		Type="Button",
		Pos={270,100},
		Image="Win02.jpg",
		Normal = CancelRectNormal,
		Over = CancelRectOver,
		Pressed = CancelRectPressed,
		Disabled = OkCancelRectDisable,
		Caption="No", 
		TextNormal=BigButtonTextNormal,
		TextOver=BigButtonTextOver,
		TextPressed=BigButtonTextPressed,
	},

};