File size: 1,969 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
-- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ==========

PlaceObj('XTemplate', {
	group = "GedApps",
	id = "GedArtSpecEditor",
	save_in = "Ged",
	PlaceObj('XTemplateTemplate', {
		'__template', "PresetEditor",
	}, {
		PlaceObj('XTemplateCode', {
			'comment', "Setup custom delete op",
			'run', function (self, parent, context)
				parent.idPresets.Delete = "GedOpDeleteEntitySpecs"
			end,
		}),
		PlaceObj('XTemplateCode', {
			'comment', "Remove warning from middle panel",
			'run', function (self, parent, context)
				parent.idPresetContent:SetDisplayWarnings(false)
			end,
		}),
		PlaceObj('XTemplateAction', {
			'ActionId', "CleanupObsoleteAssets",
			'ActionSortKey', "2",
			'ActionName', T(300345162237, --[[XTemplate GedArtSpecEditor ActionName]] "Clean-up Obsolete Assets"),
			'ActionIcon', "CommonAssets/UI/Ged/cleaning_brush.tga",
			'ActionMenubar', "Edit",
			'ActionToolbar', "main",
			'OnAction', function (self, host, source, ...)
				host:Op("GedOpCleanupObsoleteAssets", false, "assets")
			end,
		}),
		PlaceObj('XTemplateAction', {
			'ActionId', "CleanupObsoleteMappings",
			'ActionSortKey', "2",
			'ActionName', T(801994818389, --[[XTemplate GedArtSpecEditor ActionName]] "Clean-up Obsolete Mappings"),
			'ActionIcon', "CommonAssets/UI/Ged/cleaning_brush.tga",
			'ActionMenubar', "Edit",
			'ActionToolbar', "main",
			'OnAction', function (self, host, source, ...)
				host:Op("GedOpCleanupObsoleteAssets", false, "mappings")
			end,
		}),
		PlaceObj('XTemplateAction', {
			'ActionId', "CleanupObsoleteMappings",
			'ActionSortKey', "3",
			'ActionName', T(667525727814, --[[XTemplate GedArtSpecEditor ActionName]] "Search for Entity Usage"),
			'ActionIcon', "CommonAssets/UI/Ged/explorer.tga",
			'ActionMenubar', "Edit",
			'ActionToolbar', "main",
			'OnAction', function (self, host, source, ...)
				host:Op("CheckEntityUsage", "root", host.idPresets:GetMultiSelection())
			end,
		}),
		}),
})