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

PlaceObj('XTemplate', {
	group = "GedApps",
	id = "HGIntranet",
	save_in = "Ged",
	PlaceObj('XTemplateWindow', nil, {
		PlaceObj('XTemplateWindow', {
			'Background', RGBA(228, 21, 21, 255),
		}),
		PlaceObj('XTemplateFunc', {
			'name', "Open",
			'func', function (self, ...)
				local slack_ticket = GetAppCmdLine():match("-slack_ticket=(%S+)")
				if slack_ticket then
					CreateRealTimeThread(function ()
						AccountStorage = AccountStorage or {}
						config.SwarmWorld = config.SwarmWorld or "Bacon"
						Sleep(1000)
						local err = NetConnect("intranet-test.haemimontgames.com", 46401,
							"slack", slack_ticket, "Ged client", not "check_updates", "Ged connect")
						if err then
							print("Error connecting Ged to Swarm:", err)
						end
					end)
				end
				XWindow.Open(self)
			end,
		}),
		}),
})