File size: 806 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 |
-- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ==========
PlaceObj('XTemplate', {
__is_kind_of = "GedApp",
group = "Zulu Dev",
id = "PerksEditor",
save_in = "GameGed",
PlaceObj('XTemplateTemplate', {
'__template', "PresetEditor",
}, {
PlaceObj('XTemplateAction', {
'ActionId', "AddPerk",
'ActionName', T(607410363628, --[[XTemplate PerksEditor ActionName]] "Add Perk"),
'ActionIcon', "CommonAssets/UI/Ged/plus-one.tga",
'ActionToolbar', "main",
'ActionToolbarSplit', true,
'OnAction', function (self, host, source, ...)
local panel = host:GetLastFocusedPanel()
if panel == host.idPresets then
host:Op("AddPerk", panel.context, panel:GetMultiSelection(), host.PresetClass)
end
end,
'replace_matching_id', true,
}),
}),
})
|