POC for new UI

This commit is contained in:
ZioPao
2023-11-06 18:23:34 +01:00
parent d0dae7dfe2
commit 8ec28be2b6
9 changed files with 136 additions and 37 deletions

View File

@@ -5,8 +5,6 @@ local CutLimbAction = require("TimedActions/TOC_CutLimbAction")
local CutLimbHandler = BaseHandler:derive("CutLimbHandler")
local contextMenuCutLimb = "Cut"
---Creates new CutLimbHandler
---@param panel any
---@param bodyPart any
@@ -28,7 +26,7 @@ end
function CutLimbHandler:addToMenu(context)
local types = self:getAllItemTypes(self.items.ITEMS)
if #types > 0 then
local option = context:addOption(contextMenuCutLimb, self, self.onMenuOptionSelected)
context:addOption(getText("ContextMenu_Amputate"), self, self.onMenuOptionSelected)
end
end