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