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

PlaceObj('XTemplate', {
	group = "Zulu Dev",
	id = "BanterEditor",
	save_in = "GameGed",
	PlaceObj('XTemplateTemplate', {
		'__template', "PresetEditor",
		'Title', "Banter Editor",
	}, {
		PlaceObj('XTemplateWindow', {
			'__class', "XPanelSizer",
		}),
		PlaceObj('XTemplateWindow', nil, {
			PlaceObj('XTemplateWindow', {
				'__context', function (parent, context) return "state" end,
				'__class', "GedPropPanel",
				'Id', "idRuntimeState",
				'Title', "References",
				'EnableSearch', false,
				'DisplayWarnings', false,
				'ActionContext', "PropPanelAction",
				'SearchActionContexts', {
					"PropPanelAction",
					"PropAction",
				},
				'EnableUndo', false,
				'EnableCollapseDefault', false,
				'HideFirstCategory', true,
				'RootObjectBindName', "SelectedPreset",
				'PropActionContext', "PropAction",
			}, {
				PlaceObj('XTemplateFunc', {
					'name', "BindViews(self, ...)",
					'func', function (self, ...)
						if not self.context then return end
							
						self:DeleteThread("BindViewsThread")
						self:CreateThread("BindViewsThread", function()
							Sleep(100)
							self:_BindViews()
						end)
					end,
				}),
				PlaceObj('XTemplateFunc', {
					'name', "_BindViews(self, ...)",
					'func', function (self, ...)
						if not self.context then return end
						
						-- ensures all views will be resent on rebind
						self:UnbindView("props")
						self:UnbindView("values")
						
						self:BindView("props", "GedGetProperties", self.SuppressProps)
						self:BindView("values", "GedGetValues")
					end,
				}),
				}),
			}),
		}),
})