
dofile ( "hud/historylog.lua" );

historylog_group = 
{
	HistoryDialog
	{
		name = "historylog_dialog",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,
		flags = kHAlignCenter + kVAlignCenter,
		
		ModalBG
		{
			x = 0,
			y = 0,
			w = kMax,
			h = kMax,
		},

		Bitmap
		{
			name = "log_panel",
			image = historylog_win_medframehl_params["image"],
			x = historylog_win_medframehl_params["x"],
			y = historylog_win_medframehl_params["y"],
		},
		
		Text
		{
			font = Green15Font,
			name = "log_title",
			x = historylog_txt_historylog_params["x"]-10,
			y = historylog_txt_historylog_params["y"]-10,
			w = historylog_txt_historylog_params["w"]+20,
			h = historylog_txt_historylog_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label="log.title"
		},
		
		Text
		{
			font = Green12Font,
			name = "log_timeleft",
			x = historylog_txt_timeleft_params["x"]-10,
			y = historylog_txt_timeleft_params["y"]-10,
			w = historylog_txt_timeleft_params["w"]+20,
			h = historylog_txt_timeleft_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label=""
		},
					
		Text
		{
			name = "log_text",
			font = BlackTitleFont,
			x = historylog_txt_log01_params["x"]-20,
			y = historylog_txt_log01_params["y"],
			w = historylog_txt_log01_params["w"] + 40,
			h = historylog_txt_log01_params["h"] + 160,
			label = "",
		},
		
		Button
		{
			name = historylog_btn_arrowdown_03_params["name"],
			graphics = historylog_btn_arrowdown_03_params["graphics"],
			x = historylog_btn_arrowdown_03_params["x"],
			y = historylog_btn_arrowdown_03_params["y"],
			type = kPush,
			
			command = 
				function()
					OnLogScrollDown();
				end;
		},
		
		Button
		{
			name = historylog_btn_arrowup_03_params["name"],
			graphics = historylog_btn_arrowup_03_params["graphics"],
			x = historylog_btn_arrowup_03_params["x"],
			y = historylog_btn_arrowup_03_params["y"],
			type = kPush,
			
			command = 
				function()
					OnLogScrollUp();
				end;
		},
		
		SetStyle(RulesSliderStyle),
		
		SliderEx
		{
			name = "log_slider",
			x = historylog_btn_slider_01_params["x"],
			y = historylog_btn_slider_01_params["y"],
			h = historylog_btn_slider_02_params["y"]-historylog_btn_slider_01_params["y"] + historylog_btn_slider_01_params["h"],
		},
		
		SetStyle(DefaultStyle),
	
		MonopolyButton
		{
			name="btn_close",
			graphics = historylog_btn_menu_close_params["graphics"],
			x = historylog_btn_menu_close_params["x"],
			y = historylog_btn_menu_close_params["y"],
			font = White12Font,
			label="common.close.label",
			command=
				function()
					OnLogButtonClose();
				end;
		},

	},
}