Update
This commit is contained in:
		@@ -51,7 +51,8 @@ local function clickRepairButton()
 | 
			
		||||
	local button = repairableComponent.RepairButton
 | 
			
		||||
	if button then
 | 
			
		||||
		MyModGlobal.debugPrint("Clicking repair button")
 | 
			
		||||
		button.OnClicked(button, repairableComponent)
 | 
			
		||||
		-- button.OnClicked(button, repairableComponent)
 | 
			
		||||
		button.OnButtonDown()
 | 
			
		||||
	end
 | 
			
		||||
	-- MyModGlobal.debugPrint("StartRepairing result: " .. tostring(result))
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,20 +1,28 @@
 | 
			
		||||
-- Numbers indicate the maximum number of items that can be loaded
 | 
			
		||||
-- The limit is either the stack size (cramming in as many as fit)
 | 
			
		||||
-- Or this number
 | 
			
		||||
 | 
			
		||||
local harpoonGun = {
 | 
			
		||||
	spear = 999,
 | 
			
		||||
	batterycell = 1
 | 
			
		||||
}
 | 
			
		||||
local battery = { batterycell = 1 }
 | 
			
		||||
local oxygen = { oxygentank = 1 }
 | 
			
		||||
 | 
			
		||||
local LOAD_MAP = {
 | 
			
		||||
	plasmacutter = { oxygentank = 1 },
 | 
			
		||||
	weldingtool = { weldingfueltank = 1 },
 | 
			
		||||
	anechoicdivingsuit = oxygen,
 | 
			
		||||
	autocpr = battery,
 | 
			
		||||
	defibrillator = battery,
 | 
			
		||||
	divingmask = oxygen,
 | 
			
		||||
	divingsuit = oxygen,
 | 
			
		||||
	flashlight = battery,
 | 
			
		||||
	handheldsonar = battery,
 | 
			
		||||
	harpooncoilrifle = harpoonGun,
 | 
			
		||||
	harpoongun = harpoonGun,
 | 
			
		||||
	plasmacutter = oxygen,
 | 
			
		||||
	revolver = { revolverround = 999 },
 | 
			
		||||
	harpooncoilrifle = {
 | 
			
		||||
		spear = 999,
 | 
			
		||||
		batterycell = 1
 | 
			
		||||
	},
 | 
			
		||||
	anechoicdivingsuit = { oxygentank = 1, },
 | 
			
		||||
	handheldsonar = { batterycell = 1 },
 | 
			
		||||
	underwaterscooter = { batterycell = 1 },
 | 
			
		||||
	divingsuit = { oxygentank = 1, },
 | 
			
		||||
	flashlight = { batterycell = 1 },
 | 
			
		||||
	divingmask = { oxygentank = 1, },
 | 
			
		||||
	underwaterscooter = battery,
 | 
			
		||||
	weldingtool = { weldingfueltank = 1 },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
return LOAD_MAP
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<QuickInteractionsUI Absolute="[-12,-399,,]" Anchor="[0,1]" BackgroundColor="255,255,255,255" BackgroundSprite="{ Path: CUI.png, SourceRect: [128,32,32,32] }" FitContent="[True,True]" IgnoreEvents="true" OutlineColor="0,0,0,0" Relative="[-0.5,0,,]" ResizibleLeft="false" ResizibleRight="false" Visible="false">
 | 
			
		||||
<QuickInteractionsUI Absolute="[2,-457,,]" Anchor="[0,1]" BackgroundColor="255,255,255,255" BackgroundSprite="{ Path: CUI.png, SourceRect: [128,32,32,32] }" FitContent="[True,True]" IgnoreEvents="true" OutlineColor="0,0,0,0" Relative="[-0.5,0,,]" ResizibleLeft="false" ResizibleRight="false" Visible="false">
 | 
			
		||||
  <CUIVerticalList AKA="layout" BottomGap="0" BreakSerialization="true" FitContent="[True,True]" IgnoreEvents="true" Relative="[0,0,1,1]" Scrollable="true" Visible="false" />
 | 
			
		||||
</QuickInteractionsUI>
 | 
			
		||||
		Reference in New Issue
	
	Block a user