
dofile ( "hud/pop_achievement_export.lua" );

achievement_group = 
{
	-- Modal Mask
	ModalBG
	{
		name="modal_background",
		x=0,
		y=0,
		w=800,
		h=600,
	},
	
	AchievementPopup
	{
		name = "achievement_popup",
		x = 400 - 0.5 * pop_achievement_export_win_popframeach_params["w"],
		y = 300 - 0.5 * pop_achievement_export_win_popframeach_params["h"],
		w = kMax,
		h = kMax,
		flags = kHAlignCenter + kVAlignCenter,

		Bitmap
		{
			name = "achievement_panel",
			image = pop_achievement_export_win_popframeach_params["image"],
			x = pop_achievement_export_win_popframeach_params["x"],
			y = pop_achievement_export_win_popframeach_params["y"],
		},
		
		Text
		{
			font = Green12Font,
			name = "player_name",
			x = pop_achievement_export_txt_unlocked_params["x"]-10,
			y = pop_achievement_export_txt_unlocked_params["y"]-55,
			w = pop_achievement_export_txt_unlocked_params["w"]+20,
			h = pop_achievement_export_txt_unlocked_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label=""
		},
		
		Text
		{
			font = Green15Font,
			name = "achievement_text",
			x = pop_achievement_export_txt_achievement_params["x"]-10,
			y = pop_achievement_export_txt_achievement_params["y"]-55,
			w = pop_achievement_export_txt_achievement_params["w"]+20,
			h = pop_achievement_export_txt_achievement_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label=""
		},

	},
}