File size: 3,044 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
-- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ==========

PlaceObj('XTemplate', {
	group = "GedApps",
	id = "GedGridMarkerEditor",
	save_in = "Ged",
	PlaceObj('XTemplateWindow', {
		'__class', "GedApp",
		'MinWidth', 700,
		'Title', "Grid Marker Editor",
		'AppId', "GedGridMarkerEditor",
	}, {
		PlaceObj('XTemplateWindow', {
			'MinWidth', 300,
			'LayoutMethod', "VPanel",
		}, {
			PlaceObj('XTemplateWindow', {
				'comment', "filter",
				'__context', function (parent, context) return "MarkersFilter" end,
				'__class', "GedPropPanel",
				'Id', "idMarkersFilter",
				'Dock', "bottom",
				'Title', "Filter",
				'EnableSearch', false,
				'DisplayWarnings', false,
				'EnableUndo', false,
				'EnableCollapseDefault', false,
				'EnableShowInternalNames', false,
				'EnableCollapseCategories', false,
				'HideFirstCategory', true,
			}),
			PlaceObj('XTemplateWindow', {
				'comment', "markers list",
				'__context', function (parent, context) return "root" end,
				'__class', "GedListPanel",
				'Id', "idGridMarkers",
				'Title', "Grid Markers",
				'ActionsClass', "Object",
				'Delete', "GedOpListDeleteItem",
				'Cut', "GedOpObjectCut",
				'Copy', "GedOpObjectCopy",
				'Paste', "GedOpObjectPaste",
				'Duplicate', "GedOpObjectDuplicate",
				'Format', "<EditorText>",
				'FilterName', "MarkersFilter",
				'FilterClass', "GridMarkerFilter",
				'SelectionBind', "SelectedObjects",
				'MultipleSelection', true,
			}),
			}),
		PlaceObj('XTemplateWindow', {
			'__class', "XPanelSizer",
		}),
		PlaceObj('XTemplateWindow', {
			'comment', "marker properties",
			'__context', function (parent, context) return "SelectedObjects" end,
			'__class', "GedPropPanel",
			'MinWidth', 300,
			'Title', "Properties",
			'ActionsClass', "PropertyObject",
			'Copy', "GedOpPropertyCopy",
			'Paste', "GedOpPropertyPaste",
		}),
		PlaceObj('XTemplateAction', {
			'ActionId', "Save",
			'ActionName', T(658264891173, --[[XTemplate GedGridMarkerEditor ActionName]] "Save"),
			'ActionIcon', "CommonAssets/UI/Ged/save.tga",
			'ActionToolbar', "main",
			'ActionShortcut', "Ctrl-S",
			'OnAction', function (self, host, source, ...)
				host:Op("EnterEditorSaveMap", "root")
			end,
		}),
		PlaceObj('XTemplateForEach', {
			'array', function (parent, context) return {"GridMarker", "UnitMarker", "ContainerMarker", "CustomInteractable", "WaypointMarker", "AmbientLifeMarker"} end,
			'unique', true,
			'run_after', function (child, context, item, i, n, last)
				child:SetRolloverText("Place "..item.." marker\n"..(context and context.rollovers[item] or ""))
				child.ActionId = item
				child.ActionIcon = context.icons[item] or "CommonAssets/UI/Icons/radar.tga"
				child.OnAction = function(this, host, source)
					host:Op("GedOpPlaceGridMarker", "SelectedObjects", item)	
				end
			end,
		}, {
			PlaceObj('XTemplateAction', {
				'RolloverTemplate', "GedToolbarRollover",
				'ActionTranslate', false,
				'ActionName', "Place Marker",
				'ActionToolbar', "main",
			}),
			}),
		}),
})