feat(VoxelGrid): add BTL-OFF rung to V-GRID setting

V-GRID now cycles OFF / ON / BTL-OFF.
BTL-OFF keeps the wireframe off during battles while leaving it
available in the overworld. ON preserves the original behaviour
(wireframe forced on in battles regardless of the row).
This commit is contained in:
MrPingu07
2026-08-07 04:40:14 -03:00
committed by Hans Kokx
parent 1fa3f4f855
commit 80933ad1e3
4 changed files with 17 additions and 6 deletions
+4
View File
@@ -643,6 +643,10 @@ function BattleScene.render(state, arena, textures, token)
-- the world (see VoxelGrid): the arena is drawn a unit per voxel like
-- everything else, so the seams follow the one toggle and a player who
-- turned them off does not get them back for the length of a fight.
local gridWas = VoxelGrid.override
if VoxelGrid.battleForced() then
VoxelGrid.override = true
end
local out = nil
local ok, err = pcall(function()
-- its own canvas slot: this renders at the window's pixel size and the