evee fix and some other junk

This commit is contained in:
bryanthaboi
2026-07-25 15:21:49 -04:00
parent 3069b2e2a9
commit f6b29e6caa
9 changed files with 243 additions and 22 deletions
+5 -1
View File
@@ -9,6 +9,7 @@
-- opts.onCancel: fired when the menu closes without a pick (B)
-- Pops itself on B.
local Assets = require("src.render.Assets")
local Font = require("src.render.Font")
local Logger = require("src.core.Logger")
local Runtime = require("src.mods.Runtime")
@@ -96,7 +97,10 @@ local function drawIcon(game, mon, x, y, selected, counter)
end
if not path then return end
if iconImages[path] == nil then
local ok, img = pcall(love.graphics.newImage, path)
-- resolve through Assets so an overrides/ or transform-derived icon
-- (e.g. a per-species image at assets/generated/icons/<name>.png) is
-- picked up the same way battle sprites are
local ok, img = pcall(love.graphics.newImage, Assets.resolve(path))
iconImages[path] = ok and img or false
end
local img = iconImages[path]