File size: 1,664 Bytes
b6a38d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
-- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ==========
PlaceObj('XTemplate', {
__is_kind_of = "XWindow",
group = "Common",
id = "PGMain",
save_in = "Common",
PlaceObj('XTemplateWindow', nil, {
PlaceObj('XTemplateTemplate', {
'__template', "DialogTitle",
'ContextUpdateOnOpen', true,
'OnContextUpdate', function (self, context, ...)
self:SetText(const.ProjectName)
end,
'Translate', false,
}),
PlaceObj('XTemplateTemplate', {
'__template', "PGMainActions",
'Id', "idActions",
}),
PlaceObj('XTemplateWindow', {
'__class', "XList",
'IdNode', false,
'HAlign', "center",
'VAlign', "center",
'LayoutVSpacing', 20,
'BorderColor', RGBA(32, 32, 32, 0),
'Background', RGBA(255, 255, 255, 0),
'FocusedBorderColor', RGBA(0, 0, 0, 0),
'FocusedBackground', RGBA(255, 255, 255, 0),
}, {
PlaceObj('XTemplateForEachAction', {
'toolbar', "mainmenu",
'run_after', function (child, context, action, n)
child:SetText(action.ActionName)
child:SetOnPressParam(action.ActionId)
end,
}, {
PlaceObj('XTemplateTemplate', {
'__template', "MenuButton",
'RelativeFocusOrder', "new-line",
}),
}),
}),
PlaceObj('XTemplateWindow', {
'__context', function (parent, context) return { ver = BuildVersion or LuaRevision, build = rawget(_G, "BuildName") } end,
'__class', "XText",
'HAlign', "right",
'VAlign', "bottom",
'DrawOnTop', true,
'HandleMouse', false,
'TextStyle', "ConsoleLog",
'Translate', true,
'Text', T(468551835750, --[[XTemplate PGMain Text]] "Version <u(ver)><opt(build, ' - ', '')>"),
}),
}),
})
|