-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========

PlaceObj('XTemplate', {
	__is_kind_of = "XLayer",
	group = "Layers",
	id = "TitleLayer",
	PlaceObj('XTemplateWindow', {
		'__context', function (parent, context) return PGTitleObjectCreate() end,
		'__class', "XLayer",
	}, {
		PlaceObj('XTemplateFunc', {
			'name', "OnDelete",
			'func', function (self, ...)
				g_TitleObj = false
			end,
		}),
		PlaceObj('XTemplateWindow', {
			'Margins', box(0, 58, 0, 0),
			'Dock', "top",
			'HAlign', "center",
			'MinWidth', 300,
			'LayoutMethod', "VList",
		}, {
			PlaceObj('XTemplateFunc', {
				'name', "Open",
				'func', function (self, ...)
					XWindow.Open(self, ...)
					local margins = self:GetMargins()
					local safe_margins = GetSafeMargins(margins)
					self:SetMargins(box(margins:minx(), safe_margins:miny(), margins:maxx(), margins:maxy()))
				end,
			}),
			PlaceObj('XTemplateWindow', {
				'__class', "XFrame",
				'Margins', box(-275, 0, -275, -115),
				'Image', "UI/Common/bm_pad.tga",
				'FrameBox', box(275, 0, 275, 0),
				'SqueezeY', false,
			}),
			PlaceObj('XTemplateWindow', {
				'__class', "XText",
				'HAlign', "center",
				'VAlign', "top",
				'TextStyle', "PGChallengeRating",
				'Translate', true,
				'Text', T(923579610255, --[[XTemplate TitleLayer Text]] "<TitleText>"),
				'TextHAlign', "center",
			}),
			}),
		}),
})

