POC for health panels in MP
This commit is contained in:
@@ -23,7 +23,8 @@ CommandsData.server = {
|
||||
},
|
||||
|
||||
Debug = {
|
||||
PrintTocData = "PrintTocData" ---@alias printTocDataParams {username : string}
|
||||
PrintTocData = "PrintTocData", ---@alias printTocDataParams {username : string}
|
||||
PrintAllTocData = "PrintAllTocData"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,4 +35,13 @@ function CommandsData.GetKey(username)
|
||||
return StaticData.MOD_NAME .. "_" .. username
|
||||
end
|
||||
|
||||
-- ---comment
|
||||
-- ---@param key string
|
||||
-- ---@return string
|
||||
-- function CommandsData.GetUsernameFromKey(key)
|
||||
-- local subSize = #StaticData.MOD_NAME + 1
|
||||
-- local username = key:sub(subSize)
|
||||
-- return username
|
||||
-- end
|
||||
|
||||
return CommandsData
|
||||
@@ -28,10 +28,16 @@ function TOC_DEBUG.printTable(table, indent)
|
||||
end
|
||||
end
|
||||
|
||||
function TOC_DEBUG.printGlobalModDataServer(username)
|
||||
local CommandsData = require("TOC/CommandsData")
|
||||
|
||||
---@type printTocDataParams
|
||||
local params = {username = username}
|
||||
sendClientCommand(CommandsData.modules.TOC_DEBUG, CommandsData.server.Debug.PrintTocData, params)
|
||||
|
||||
--* Debug server commands *--
|
||||
|
||||
local CommandsData = require("TOC/CommandsData")
|
||||
|
||||
function TOC_DEBUG.printPlayerServerModData(username)
|
||||
sendClientCommand(CommandsData.modules.TOC_DEBUG, CommandsData.server.Debug.PrintTocData, {username = username})
|
||||
end
|
||||
|
||||
function TOC_DEBUG.printAllServerModData()
|
||||
sendClientCommand(CommandsData.modules.TOC_DEBUG, CommandsData.server.Debug.PrintAllTocData, {})
|
||||
end
|
||||
@@ -92,6 +92,16 @@ StaticData.HEALTH_PANEL_TEXTURES = {
|
||||
ForeArm_L = getTexture("media/ui/ForeArm_L.png"),
|
||||
UpperArm_L = getTexture("media/ui/UpperArm_L.png"),
|
||||
|
||||
Hand_R = getTexture("media/ui/Hand_R.png"),
|
||||
ForeArm_R = getTexture("media/ui/ForeArm_R.png"),
|
||||
UpperArm_R = getTexture("media/ui/UpperArm_R.png")
|
||||
},
|
||||
|
||||
Male = {
|
||||
Hand_L = getTexture("media/ui/Hand_L.png"),
|
||||
ForeArm_L = getTexture("media/ui/ForeArm_L.png"),
|
||||
UpperArm_L = getTexture("media/ui/UpperArm_L.png"),
|
||||
|
||||
Hand_R = getTexture("media/ui/Hand_R.png"),
|
||||
ForeArm_R = getTexture("media/ui/ForeArm_R.png"),
|
||||
UpperArm_R = getTexture("media/ui/UpperArm_R.png")
|
||||
|
||||
Reference in New Issue
Block a user