
require("menu/quitgame.lua");
require("scripts/game_style.lua");

MakeDialog
{
	name="quitgame",
	x = 0,
	y = 0,
	w = kMax,
	h = kMax,
	
	Bitmap
	{
		name = quitgame_win_smallframeqg_params["name"],
		image = quitgame_win_smallframeqg_params["image"],
		x = quitgame_win_smallframeqg_params["x"],
		y = quitgame_win_smallframeqg_params["y"],
	},
	
	Bitmap
	{
		name = quitgame_ico_quit_params["name"],
		image = quitgame_ico_quit_params["image"],
		x = quitgame_ico_quit_params["x"],
		y = quitgame_ico_quit_params["y"],
	},
	
	PlayStartMenuSound
	{
	},	
	
	MonopolyButton
	{
		name = 'no',	--quitgame_btn_menu_quitcancel_params["name"],
		graphics = quitgame_btn_menu_quitcancel_params["graphics"],
		x = quitgame_btn_menu_quitcancel_params["x"],
		y = quitgame_btn_menu_quitcancel_params["y"],
		label = "common.cancel.label",
		font = White15Font,
		type = kPush,
		close = true,
		sfxEx = "eINTERFACE_CANCEL",
	},
	
	MonopolyButton
	{
		name = 'yes',	--quitgame_btn_menu_quitaccept_params["name"],
		graphics = quitgame_btn_menu_quitaccept_params["graphics"],
		x = quitgame_btn_menu_quitaccept_params["x"],
		y = quitgame_btn_menu_quitaccept_params["y"],
		label = "common.accept.label",
		font = White15Font,
		type = kPush,
        close = true,
        -- sfxEx = "eINTERFACE_OK",
	},
	
	Text
	{
		name = quitgame_txt_quitquery_params["name"],
		font = Green15Font,
		x = quitgame_txt_quitquery_params["x"]-10,
		y = quitgame_txt_quitquery_params["y"]-10,
		w = quitgame_txt_quitquery_params["w"]+20,
		h = quitgame_txt_quitquery_params["h"]+20,
		label = "ui.dialog.quit.confirm",
	}
}
