-- ========== 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, }), }), }), }), })