From a3066eaa650784933d6adcaa5f5f5b10023addb4 Mon Sep 17 00:00:00 2001 From: TaikoZhong <108016253+GanYiZhong@users.noreply.github.com> Date: Fri, 6 Nov 2026 18:01:45 +0800 Subject: [PATCH] =?UTF-8?q?AI=20battle:=20AI=E3=81=A9=E3=82=93=20plate,=20?= =?UTF-8?q?section=20timer=20position,=20title=20at=20the=20bottom=20right?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ai_plate: the AI lane's "AIどん" plate, drawn with the AI scoreboard (needs the engine's Player::use_ai_lane, which drops the lane's own plate / auto marker, course mark, and switches to the AI lane cover). - Section timer: frame, bar and labels moved to sit on the score plate (frame at 160,154; bar 189,166 150x16, drawn over the frame), bar colours from the timer art. - ai_game_song_info: the AI game's title / song number / genre plate at the bottom right. Co-Authored-By: Claude Opus 5.5 --- Graphics/game/ai_battle/ai_plate.png | 3 +++ Graphics/game/ai_battle/texture.json | 16 ++++++++++------ Graphics/skin_config.json | 4 ++++ Scripts/game/ai_battle.lua | 9 +++++---- 4 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 Graphics/game/ai_battle/ai_plate.png diff --git a/Graphics/game/ai_battle/ai_plate.png b/Graphics/game/ai_battle/ai_plate.png new file mode 100644 index 00000000..8b05427d --- /dev/null +++ b/Graphics/game/ai_battle/ai_plate.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1283383c9e45739c61453d79d8017a6b429a1345ff45d274c0aae337b90a2498 +size 6226 diff --git a/Graphics/game/ai_battle/texture.json b/Graphics/game/ai_battle/texture.json index adf99379..e53137f2 100644 --- a/Graphics/game/ai_battle/texture.json +++ b/Graphics/game/ai_battle/texture.json @@ -354,6 +354,10 @@ "x": 50, "y": 433 }, + "ai_plate": { + "x": -64, + "y": 368 + }, "scoreboard_num": [ { "x": 112, @@ -407,13 +411,13 @@ "y": -432 }, "progress_bar": { - "x": 147, - "y": 150 + "x": 160, + "y": 154 }, "section_text": [ { - "x": 150, - "y": 150, + "x": 165, + "y": 154, "crop": [ [0, 0, 24, 40], [0, 40, 24, 40], @@ -423,8 +427,8 @@ ] }, { - "x": 325, - "y": 150 + "x": 339, + "y": 154 } ], "sections": { diff --git a/Graphics/skin_config.json b/Graphics/skin_config.json index 070ab3a7..9c52c9cc 100644 --- a/Graphics/skin_config.json +++ b/Graphics/skin_config.json @@ -136,6 +136,10 @@ "y": 50, "font_size": 40 }, + "ai_game_song_info": { + "x": -24, + "y": 605 + }, "game_song_info_subtitle": { "y": 88, "font_size": 22 diff --git a/Scripts/game/ai_battle.lua b/Scripts/game/ai_battle.lua index a4fd34a3..adba93d0 100644 --- a/Scripts/game/ai_battle.lua +++ b/Scripts/game/ai_battle.lua @@ -11,7 +11,7 @@ local SECTIONS = 5 local GAUGE_SCALE = 0.5 local GAUGE_X, GAUGE_Y = 10, 15 -local PROGRESS = { x = 177, y = 160, w = 148, h = 20 } +local PROGRESS = { x = 189, y = 166, w = 150, h = 16 } local S = tex.get_screen_scale() local FRAME_MS = 1000 / 60 @@ -313,13 +313,13 @@ end function AIBattleOverlay:draw_front(ms, section, section_count, progress) local scale = tex.get_screen_scale() - local r, g, b, a = 0, 228, 48, 255 + local r, g, b, a = 0, 255, 0, 255 if progress >= 0.75 then r, g, b, a = 253, 249, 0, 255 * flash(ms, 266) end - tex.draw_rect(PROGRESS.x * scale, PROGRESS.y * scale, PROGRESS.w * scale, PROGRESS.h * scale, 130, 130, 130, 255) - tex.draw_rect(PROGRESS.x * scale, PROGRESS.y * scale, progress * PROGRESS.w * scale, PROGRESS.h * scale, r, g, b, a) tex.draw_texture(self:id(DIR .. "progress_bar")) + tex.draw_rect(PROGRESS.x * scale, PROGRESS.y * scale, PROGRESS.w * scale, PROGRESS.h * scale, 95, 94, 95, 255) + tex.draw_rect(PROGRESS.x * scale, PROGRESS.y * scale, progress * PROGRESS.w * scale, PROGRESS.h * scale, r, g, b, a) if section < section_count then tex.draw_texture(self:id(DIR .. "section_text"), { index = 0, frame = section }) @@ -892,6 +892,7 @@ function AIBattleOverlay:draw_finale(ms) end function AIBattleOverlay:draw_scoreboard(is_ai, good, ok, bad, drumroll) + if is_ai then tex.draw_texture(self:id(DIR .. "ai_plate")) end tex.draw_texture(self:id(DIR .. (is_ai and "scoreboard_ai" or "scoreboard"))) local digit = self:id(DIR .. "scoreboard_num") local margin = 8 -- 2.54.1