-- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== PlaceObj('XTemplate', { group = "GedApps", id = "GedConsoleSaveManager", save_in = "Ged", PlaceObj('XTemplateWindow', { '__class', "GedApp", 'Title', "Console Save Manager", 'AppId', "Console Save Manager", }, { PlaceObj('XTemplateWindow', { '__context', function (parent, context) return "root" end, '__class', "GedTreePanel", 'Id', "idTargets", 'Title', "Targets", 'ActionContext', "TargetsPanelContext", 'FormatFunc', "GedConsoleTargetsTree", 'Format', "", 'SelectionBind', "SelectedTarget", }), PlaceObj('XTemplateWindow', { '__class', "XPanelSizer", }), PlaceObj('XTemplateWindow', { '__context', function (parent, context) return "SelectedTarget" end, '__class', "GedListPanel", 'Id', "idSaves", 'Title', "Target Saves", 'ActionContext', "SavesPanelContext", 'Format', "", 'SelectionBind', "SelectedSave", 'EmptyText', "No saves available.Target is powered off.", }), PlaceObj('XTemplateWindow', { '__class', "XPanelSizer", }), PlaceObj('XTemplateWindow', { '__context', function (parent, context) return "SelectedSave" end, '__class', "GedPropPanel", 'Id', "idSave", 'Title', "Selected Save", 'RootObjectBindName', "SelectedSave", }), PlaceObj('XTemplateAction', { 'ActionId', "PowerOn", 'ActionTranslate', false, 'ActionName', "Power On", 'ActionIcon', "CommonAssets/UI/Ged/poweroff.png", 'ActionToolbar', "main", 'OnAction', function (self, host, source, ...) if host.idTargets:GetSelection() then host:Op("GedInvokeMethod", "SelectedTarget", "PowerOn") end end, 'ActionContexts', { "TargetsPanelContext", }, }), PlaceObj('XTemplateAction', { 'ActionId', "Refresh", 'ActionTranslate', false, 'ActionName', "Refresh", 'ActionIcon', "CommonAssets/UI/Ged/undo.tga", 'ActionToolbar', "main", 'ActionToolbarSplit', true, 'ActionShortcut', "F5", 'OnAction', function (self, host, source, ...) host:Op("GedOpPlayStationRefreshTarget") end, 'ActionContexts', { "SavesPanelContext", }, }), PlaceObj('XTemplateAction', { 'ActionId', "NewSave", 'ActionTranslate', false, 'ActionName', "New Save", 'ActionIcon', "CommonAssets/UI/Ged/new.tga", 'ActionToolbar', "main", 'ActionShortcut', "Ctrl-N", 'OnAction', function (self, host, source, ...) if host.idTargets:GetSelection() then host:Op("GedOpConsoleTargetNewSave", "SelectedTarget") end end, 'ActionContexts', { "SavesPanelContext", }, }), }), })