move pos marker textures. will this help #90?

This commit is contained in:
Starbeamrainbowlabs 2023-06-27 20:16:04 +01:00
parent 141ea2f0a7
commit 61e04952e0
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
22 changed files with 10 additions and 10 deletions

View File

@ -14,12 +14,12 @@ local WEAPositionMarker = {
static_save = false,
textures = {
"worldeditadditions_bg.png",
"worldeditadditions_bg.png",
"worldeditadditions_bg.png",
"worldeditadditions_bg.png",
"worldeditadditions_bg.png",
"worldeditadditions_bg.png",
"worldeditadditions_core_bg.png",
"worldeditadditions_core_bg.png",
"worldeditadditions_core_bg.png",
"worldeditadditions_core_bg.png",
"worldeditadditions_core_bg.png",
"worldeditadditions_core_bg.png",
}
},
@ -89,17 +89,17 @@ local function set_number(entity, display_number)
if display_number < 100 then
local number_right = display_number % 10
local number_left = (display_number - number_right) / 10
texture_name = texture_name.."worldeditadditions_l"..number_left..".png"
texture_name = texture_name.."^worldeditadditions_r"..number_right..".png"
texture_name = texture_name .. "worldeditadditions_core_l" .. number_left .. ".png"
texture_name = texture_name .. "^worldeditadditions_core_r" .. number_right .. ".png"
-- print("DEBUG:set_number number_left", number_left, "number_right", number_right)
local colour_id = ((display_number - 1) % 12) + 1 -- Lua starts from 1, not 0 :-/
texture_name = "("..texture_name..")^[colorize:"..number_colours[colour_id]..":255"
end
if #texture_name > 0 then
texture_name = "worldeditadditions_bg.png^("..texture_name..")"
texture_name = "worldeditadditions_core_bg.png^(" .. texture_name .. ")"
else
texture_name = "worldeditadditions_bg.png"
texture_name = "worldeditadditions_core_bg.png"
end
-- print("DEBUG:set_number texture_name", texture_name)

View File

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 512 B

View File

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 506 B

View File

Before

Width:  |  Height:  |  Size: 511 B

After

Width:  |  Height:  |  Size: 511 B

View File

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 505 B

View File

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 513 B

View File

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 513 B

View File

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 513 B

View File

Before

Width:  |  Height:  |  Size: 522 B

After

Width:  |  Height:  |  Size: 522 B

View File

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 507 B

View File

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 506 B

View File

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 512 B

View File

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 506 B

View File

Before

Width:  |  Height:  |  Size: 511 B

After

Width:  |  Height:  |  Size: 511 B

View File

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 507 B

View File

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 513 B

View File

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 513 B

View File

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 513 B

View File

Before

Width:  |  Height:  |  Size: 521 B

After

Width:  |  Height:  |  Size: 521 B

View File

Before

Width:  |  Height:  |  Size: 509 B

After

Width:  |  Height:  |  Size: 509 B

View File

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 505 B

View File

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 512 B