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

PlaceObj('XTemplate', {
	__is_kind_of = "XRolloverWindow",
	group = "GedControls",
	id = "GedImageRollover",
	save_in = "Ged",
	PlaceObj('XTemplateWindow', {
		'__class', "XRolloverWindow",
		'MaxWidth', 400,
	}, {
		PlaceObj('XTemplateWindow', {
			'__class', "XImage",
			'MaxWidth', 1366,
			'MaxHeight', 768,
			'ImageFit', "scale-down",
		}, {
			PlaceObj('XTemplateCode', {
				'run', function (self, parent, context)
					parent:SetImage(context.control:GetRolloverText())
				end,
			}),
			}),
		PlaceObj('XTemplateWindow', {
			'__class', "XText",
		}, {
			PlaceObj('XTemplateCode', {
				'run', function (self, parent, context)
					local text = context.control:GetRolloverText()
					local width, height = UIL.MeasureImage(text)
					parent:SetText(tostring(width) .. "x" .. tostring(height))
				end,
			}),
			}),
		}),
})