File size: 2,783 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
-- ========== 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', "<EditorView>",
			'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', "<if(savedata_display)><savedata_display></if><if(not(savedata_display))><savedata_directory></if>",
			'SelectionBind', "SelectedSave",
			'EmptyText', "<if(power_on)>No saves available.</if><if(not(power_on))>Target is powered off.</if>",
		}),
		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",
			},
		}),
		}),
})