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

PlaceObj('XTemplate', {
	group = "GedApps",
	id = "LightmodelEditor",
	save_in = "Ged",
	PlaceObj('XTemplateTemplate', {
		'__template', "PresetEditor",
	}, {
		PlaceObj('XTemplateFunc', {
			'name', "ReloadImage",
			'func', function (self, ...)
				local texture = ...
				print("Reloading " .. texture)
				FindXImagesAndReload(texture)
				local result = UIL.ReloadImage(texture)
				print("Reloaded", texture, result)
			end,
		}),
		PlaceObj('XTemplateAction', {
			'ActionId', "Lightmodel",
			'ActionSortKey', "2",
			'ActionName', T(827990586334, --[[XTemplate LightmodelEditor ActionName]] "Light model"),
			'ActionMenubar', "main",
			'ActionToolbar', "main",
			'OnActionEffect', "popup",
		}, {
			PlaceObj('XTemplateAction', {
				'ActionId', "take_screenshots",
				'ActionName', T(791247269670, --[[XTemplate LightmodelEditor ActionName]] "Take Screenshots"),
				'ActionIcon', "CommonAssets/UI/Ged/camera",
				'ActionToolbar', "main",
				'ActionToolbarSplit', true,
				'OnAction', function (self, host, source, ...)
					host:Send("GedCustomEditorAction", "SelectedPreset", "LightmodelEditorTakeScreenshots")
				end,
			}),
			PlaceObj('XTemplateAction', {
				'ActionId', "histogram",
				'ActionName', T(185656301873, --[[XTemplate LightmodelEditor ActionName]] "Histograms"),
				'ActionIcon', "CommonAssets/UI/Ged/camera",
				'ActionToolbar', "main",
				'ActionToolbarSplit', true,
				'OnAction', function (self, host, source, ...)
					host:Send("GedToggleHistogram")
				end,
			}),
			}),
		}),
})