Fixed operate with oven and some ui stuff

This commit is contained in:
Pao
2023-01-23 10:05:32 +01:00
parent 6b39ff83fd
commit 489ea548a0
5 changed files with 7 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ end
Commands["OperateLimb"] = function(arg) Commands["OperateLimb"] = function(arg)
local arg = arg["toSend"] local arg = arg["toSend"]
TheOnlyCure.OperateLimb(arg[1], arg[2], arg[3]) TocOperateLimb(arg[1], arg[2], arg[3])
end end

View File

@@ -88,7 +88,7 @@ TocContextMenus.CreateOperateWithOvenMenu = function(player, context, worldObjec
is_main_menu_already_created = true is_main_menu_already_created = true
end end
subMenu:addOption(getText('UI_ContextMenu_' .. v_bodypart), worldObjects, TocOperateLocal, subMenu:addOption(getText('UI_ContextMenu_' .. v_bodypart), worldObjects, TocOperateLocal,
getSpecificPlayer(player), getSpecificPlayer(player), v_bodypart, true) getSpecificPlayer(player), v_bodypart,true)
end end
end end
end end

View File

@@ -604,11 +604,11 @@ end
function ISHealthPanel:createChildren() function ISHealthPanel:createChildren()
ISHealthPanel_createChildren(self) ISHealthPanel_createChildren(self)
self.fitness:setWidth(self.fitness:getWidth() / 1.2) self.fitness:setWidth(self.fitness:getWidth() / 1.4)
self.TOCButton = ISButton:new(self.fitness:getRight() + 10, self.healthPanel.y, 70, 20, "The Only Cure", self, self.TOCButton = ISButton:new(self.fitness:getRight() + 10, self.healthPanel.y, 60, 20, "", self,
ISNewHealthPanel.onClick_TOC) ISNewHealthPanel.onClick_TOC)
--self.TOCButton:setImage(getTexture("media/ui/TOC/iconForMenu.png")) self.TOCButton:setImage(getTexture("media/ui/TOC/iconForMenu.png"))
self.TOCButton.anchorTop = false self.TOCButton.anchorTop = false
self.TOCButton.anchorBottom = true self.TOCButton.anchorBottom = true
self.TOCButton:initialise() self.TOCButton:initialise()

View File

@@ -309,7 +309,7 @@ function TheOnlyCure.CutLimb(part_name, surgeon_factor, bandage_table, painkille
end end
function TheOnlyCure.OperateLimb(part_name, surgeon_factor, use_oven) function TocOperateLimb(part_name, surgeon_factor, use_oven)
local player = getPlayer() local player = getPlayer()
local limbs_data = player:getModData().TOC.Limbs local limbs_data = player:getModData().TOC.Limbs

View File

@@ -59,7 +59,7 @@ function ISOperateLimb:perform()
if self.patient ~= self.surgeon and isClient() then if self.patient ~= self.surgeon and isClient() then
SendOperateLimb(self.patient, self.part_name, surgeon_factor, use_oven) SendOperateLimb(self.patient, self.part_name, surgeon_factor, use_oven)
else else
TheOnlyCure.OperateLimb(self.part_name, surgeon_factor, use_oven) TocOperateLimb(self.part_name, surgeon_factor, use_oven)
end end
self.surgeon:getXp():AddXP(Perks.Doctor, 400) self.surgeon:getXp():AddXP(Perks.Doctor, 400)