forked from Yonokid/YataiDONNijiiro
34 lines
1.8 KiB
Lua
34 lines
1.8 KiB
Lua
-- YataiDON-HSS override of PyTaikoGreen/global/entry_overlay.lua
|
|
-- Arcade entry top-right status row (entry/entry.nulm instances, 1080p px):
|
|
-- numberofstage_instance -> common/numberofstage 「1プレイ 4曲」 plate 240x64 @ (1200,45) (= banapass_or)
|
|
-- cardicon_instance -> common/banapass__check 「IC Card NG/OK」 chip 106x106 @ (1460,38) (= banapass_card 0/1)
|
|
-- qricon_instance -> common/qr__check (drawn by coin_overlay.lua, shared with song select)
|
|
-- 「段位道場 NG」 chip (grey, 106x106 @ (1040,38)) -> banapass_no: the arcade row is
|
|
-- 段位道場 | 1プレイ4曲 | IC Card | QR (x 1040..1676). No lumen sprite draws this chip in
|
|
-- 000_default (searched every lumen_sprites/*/*.json, entry/*.lua, common/*.lua: it is
|
|
-- native UI), so it is baked from the IC Card NG chip base + grey label + skin-font text.
|
|
-- banapass_osaifu_keitai (QR chip) and camera (2P bubble) are drawn by coin_overlay.lua.
|
|
-- Textures are positioned by texture.json; the engine passes (0, entry_overlay_entry.y) -> override y = 0.
|
|
EntryOverlay = {}
|
|
EntryOverlay.__index = EntryOverlay
|
|
|
|
function EntryOverlay.new(online)
|
|
local self = setmetatable({}, EntryOverlay)
|
|
self.online = online
|
|
self.stage_plate = tex.load_texture("global/overlay/banapass_or")
|
|
self.card_chip = tex.load_texture("global/overlay/banapass_card")
|
|
self.dani_chip = tex.load_texture("global/overlay/banapass_no")
|
|
return self
|
|
end
|
|
|
|
function EntryOverlay:update(current_ms, online)
|
|
self.online = online
|
|
end
|
|
|
|
function EntryOverlay:draw(x, y)
|
|
local frame = self.online and 1 or 0
|
|
tex.draw_texture(self.stage_plate, { frame = frame, x = x, y = y })
|
|
tex.draw_texture(self.card_chip, { frame = frame, x = x, y = y })
|
|
tex.draw_texture(self.dani_chip, { x = x, y = y })
|
|
end
|