
dofile ( "hud/injail.lua" );
dofile ( "hud/justvis.lua" );
dofile ( "hud/gotojail.lua" );

jailview_group = 
{
		JailView
		{
			name = "jailview",
			x = 0,
			y = 0,
			w = kMax,
			h = kMax,
			
			Window
			{
				name = "injail",
				x = 0,
				y = 0,
				w = kMax,
				h = kMax,
				
				MonopolyButton
				{
					name = "Btn_injail_usecard",	
					graphics =
					{
						injail_pop_jail_params["image"],
						injail_pop_jail_params["image"],
						injail_pop_jail_params["image"],
						injail_pop_jail_params["image"]
					};
					x=injail_pop_jail_params["x"],
					y=injail_pop_jail_params["y"],
					label="",
					tooltip = "over.getoutofjailtab",
					tooltip_x = injail_pop_jail_params["x"] + 0.5 * injail_pop_jail_params["w"],
					tooltip_y = injail_pop_jail_params["y"] + 52,
					command=
						function()
							OnInJailButtonUseCard();
						end;			
				},	
		
				Bitmap
				{
					image=injail_win_smallframeij_params["image"],
					x=injail_win_smallframeij_params["x"],
					y=injail_win_smallframeij_params["y"],
					name = "injail_panel",	
				},		
				
				Bitmap
				{
					image=injail_ico_jail_params["image"],
					x=injail_ico_jail_params["x"],
					y=injail_ico_jail_params["y"],
					name = "injail_icon",	
				},		

				Bitmap
				{
					image=injail_txt_getout_params["image"],
					x=injail_txt_getout_params["x"],
					y=injail_txt_getout_params["y"],
					name = "injail_getout",	
				},		

				Text
				{
					name = "injail_turnsleft_text",
					font = Green12Font,
					x = injail_txt_turns_params["x"],
					y = injail_txt_turns_params["y"]-10,
					w = injail_txt_turns_params["w"]+20,
					h = injail_txt_turns_params["h"]+20,
					flags = kHAlignLeft + kVAlignCenter,
					label = "injail.turnsleft"
				},
				MonopolyButton
				{
					name = "injail_turnsleft_text_tooltip",
					x = injail_txt_turns_params["x"],
					y = injail_txt_turns_params["y"],
					w = injail_txt_turns_params["w"],
					h = injail_txt_turns_params["h"],
					tooltip = "over.jailturns",
					tooltip_x = injail_txt_turns_params["x"] + 0.5 * injail_txt_turns_params["w"],
					tooltip_y = injail_txt_turns_params["y"] - injail_txt_turns_params["h"] - 5,
				},
				
				SetStyle(ActionBarButtonStyle),
				
				--DOUBLE
				Bitmap
				{
					image="hud/btn_menu_04",
					x = injail_btn_menu_attdouble_params["x"],
					y = injail_btn_menu_attdouble_params["y"],
					name = "mask",
				},
				MonopolyButton
				{
					graphics = injail_btn_menu_attdouble_params["graphics"],
					x = injail_btn_menu_attdouble_params["x"],
					y = injail_btn_menu_attdouble_params["y"],
					name="Btn_double",
					label="",
					command=
						function()
						-- inverted because of .psd error
							OnInJailButtonDouble();
						end;
				},
				Bitmap
				{
					image=injail_txt_attdouble_params["image"],
					x=injail_txt_attdouble_params["x"],
					y=injail_txt_attdouble_params["y"],
					name = "injail_doubletext",	
				},	
				
				--PAY BAIL
				Bitmap
				{
					image="hud/btn_menu_04",
					x = injail_btn_menu_paybail_params["x"],
					y = injail_btn_menu_paybail_params["y"],
					name = "mask",
				},
				MonopolyButton
				{
					graphics = injail_btn_menu_paybail_params["graphics"],
					x = injail_btn_menu_paybail_params["x"],
					y = injail_btn_menu_paybail_params["y"],
					name="Btn_PayBail",
					label="",
					command=
						function()
						-- inverted because of .psd error
							OnInJailButtonPayBail();
						end;
				},
				Bitmap
				{
					image=injail_txt_paybail_params["image"],
					x=injail_txt_paybail_params["x"],
					y=injail_txt_paybail_params["y"],
					name = "injail_paytext",	
				},		
					-- patch because of .psd error
	
		
			},
			
			gotojail = psd2window_gotojail();
			
			justvisiting = psd2window_justvis();

			
		},
}