Download CommonLua/Ged/XTemplates/GedToolbarSection.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/GedToolbarSection.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/Ged/XTemplates/GedToolbarSection.lua
-
curl -L -o GedToolbarSection.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/GedToolbarSection.lua
1.12 kB
| -- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('XTemplate', { | |
| __is_kind_of = "XWindow", | |
| group = "GedControls", | |
| id = "GedToolbarSection", | |
| save_in = "Ged", | |
| PlaceObj('XTemplateWindow', { | |
| 'IdNode', true, | |
| 'Margins', box(2, 2, 2, 2), | |
| 'BorderWidth', 1, | |
| 'LayoutMethod', "VList", | |
| 'LayoutVSpacing', 2, | |
| 'BorderColor', RGBA(160, 160, 160, 255), | |
| 'HandleMouse', true, | |
| }, { | |
| PlaceObj('XTemplateWindow', { | |
| '__class', "XLabel", | |
| 'Id', "idSectionName", | |
| 'HAlign', "center", | |
| 'VAlign', "center", | |
| 'Text', "Name", | |
| }), | |
| PlaceObj('XTemplateWindow', { | |
| 'comment', "divider", | |
| 'MinHeight', 1, | |
| 'Background', RGBA(160, 160, 160, 255), | |
| }), | |
| PlaceObj('XTemplateWindow', { | |
| 'Id', "idActionContainer", | |
| 'LayoutMethod', "HWrap", | |
| 'LayoutHSpacing', 2, | |
| }), | |
| PlaceObj('XTemplateFunc', { | |
| 'name', "SetName(self, name)", | |
| 'func', function (self, name) | |
| self.idSectionName:SetText(name) | |
| end, | |
| }), | |
| PlaceObj('XTemplateFunc', { | |
| 'name', "GetContainer(self)", | |
| 'func', function (self) | |
| return self.idActionContainer | |
| end, | |
| }), | |
| }), | |
| }) | |