Download CommonLua/X/XTemplates/IGMain.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/X/XTemplates/IGMain.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/X/XTemplates/IGMain.lua
-
curl -L -o IGMain.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/X/XTemplates/IGMain.lua
1.63 kB
| -- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('XTemplate', { | |
| __is_kind_of = "IGMainActions", | |
| group = "Common", | |
| id = "IGMain", | |
| 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', "IGMainActions", | |
| '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", | |
| }), | |
| }), | |
| }), | |
| 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(507730380699, --[[XTemplate IGMain Text]] "Version <u(ver)><opt(build, ' - ', '')>"), | |
| }), | |
| }), | |
| }) | |