diff --git a/locale/en/locale.cfg b/locale/en/locale.cfg index 803d487..b6c33d2 100644 --- a/locale/en/locale.cfg +++ b/locale/en/locale.cfg @@ -96,7 +96,7 @@ signal-target-south-east=South-east corner of the snapshot target signal-target-south-west=South-west corner of the snapshot target [stats] -all-paused=All cameras paused -disabled=Disabled -transition=Transitioning -recording=Recording \ No newline at end of file +all-paused=[color=1, 0.8, 0]All cameras paused[/color] +disabled=[color=1,0,0]Disabled[/color] +transition=[color=0, 0.75, 1]Transitioning (__1__ __plural_for_parameter_1_{1=tick|rest=ticks}__)[/color] +recording=[color=0,1,0]Recording[/color] diff --git a/scripts/camera.lua b/scripts/camera.lua index a2f7cf4..4ffa631 100644 --- a/scripts/camera.lua +++ b/scripts/camera.lua @@ -15,6 +15,8 @@ local targetBox = { nw = { name = "signal-target-north-west", type = "virtual" }, } +local Camera = {} + --- @class Camera.camera --- @field centerPos table --- @field enabled boolean @@ -41,8 +43,6 @@ local targetBox = { --- @field transitionTicks number Time (in ticks) a transition should take (calculated from transitionPeriod) --- @field transitionData Camera.cameraTransition|nil When set, a transition is active -local Camera = {} - --- @class Camera.cameraTransition --- @field ticks integer Number of ticks (screenshots) the transitions takes --- @field transitionTicksLeft integer Number of ticks (screenshots) left of the transition @@ -371,11 +371,11 @@ function Camera.recordingSensor(player) local cameraStatuses = {} for _, camera in pairs(playerSettings.cameras) do table.insert(cameraStatuses, ", ") - table.insert(cameraStatuses, camera.name .. ": ") + table.insert(cameraStatuses, camera.name .. " = ") if not camera.enabled then table.insert(cameraStatuses, { "stats.disabled" }) elseif camera.transitionData ~= nil then - table.insert(cameraStatuses, { "stats.transition" }) + table.insert(cameraStatuses, { "stats.transition", camera.transitionData.transitionTicksLeft }) else table.insert(cameraStatuses, { "stats.recording" }) end