
dofile ( "hud/packview.lua" );

dofile( "scripts/chancecard.lua" );

chanceview_group = 
{
	ChanceView
	{
		name = "chanceview",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,
		
		Window
		{
			name = "chancedialog",
			x = 0,
			y = 0,
			w = kMax,
			h = kMax,
			
			Bitmap
			{
				name = "chance_bigtext",	
				image=packview_ico_chance_params["image"],
				x=packview_ico_chance_params["x"],
				y=packview_ico_chance_params["y"],
			},
					
			Bitmap
			{
				name = "chance_pack",	
				image=packview_ico_pack_params["image"],
				x=packview_ico_pack_params["x"],
				y=packview_ico_pack_params["y"],
			},	
				
			Bitmap
			{
				name = "chance_btnframe",	
				image=packview_pop_okframe_params["image"],
				x=packview_pop_okframe_params["x"],
				y=packview_pop_okframe_params["y"],
			},		

			MonopolyButton
			{
				name = "btn_chance_ok",	
				graphics =packview_btn_menu_chanceok_params["graphics"],
				x=packview_btn_menu_chanceok_params["x"],
				y=packview_btn_menu_chanceok_params["y"],
				label="",
				command=
					function()
						OnChanceButtonOK();
					end;			
			},
			
			Text
			{
				font = MonopolyFont_12B_OasisSky,
				name = "chance_ok_label",
				x = packview_txt_drawacard_params["x"]-10,
				y = packview_txt_drawacard_params["y"]-10,
				w = packview_txt_drawacard_params["w"]+20,
				h = packview_txt_drawacard_params["h"]+20,
				flags = kHAlignCenter + kVAlignCenter,
				label = "common.ok.label"
			},
			
			
		},	-- chance dialog
		
	},
}