CLOSES #1590, CLOSES #1592, CLOSES #1625, CLOSES #1657, CLOSES #1698, CLOSES #1699, CLOSES #1700, CLOSES #1843, CLOSES #1875, CLOSES #1898, CLOSES #1902, CLOSES #1905, CLOSES #1906, CLOSES #1907, CLOSES #1908, CLOSES #1909, CLOSES #1912, CLOSES #1915, CLOSES #1917, CLOSES #1919, CLOSES #1920, CLOSES #1921, CLOSES #1922, CLOSES #1923, CLOSES #1924, CLOSES #1925, CLOSES #1926, CLOSES #1927

This commit is contained in:
bryanthaboi
2026-08-29 06:59:38 -04:00
parent 71200f21dc
commit 36ad59bdbb
116 changed files with 6157 additions and 426 deletions
+12 -6
View File
@@ -338,6 +338,17 @@ function TextBox:sfxHeld()
return false
end
-- TextCommand_PROMPT_BUTTON's LoadBlinkingCursor (home/text.asm:749)
function TextBox:arrowVisible()
if self.sfxWait then return false end
if self.waiting then return true end
return not not (self.done and not self.choice
and (not self.auto
or (self.auto.promptFirst and not self.autoPrompted))
and (not self.stay
or (self.stay.prompt and not self.stayShown)))
end
function TextBox:update(dt)
local input = self.game.input
self.blink = (self.blink + 1) % 60
@@ -632,12 +643,7 @@ function TextBox:draw()
pen = pen + Font.advanceOf(code)
end
end
if (self.waiting or (self.done and not self.choice
and (not self.auto
or (self.auto.promptFirst and not self.autoPrompted))
and (not self.stay
or (self.stay.prompt and not self.stayShown))))
and self.blink < 30 then
if self:arrowVisible() and self.blink < 30 then
-- page-advance cursor: glyph $EE by default, the blinking down arrow
-- the original prints via `ld a, "▼"` (home/text.asm)
drawGlyph(Theme.moreArrow or 0xEE,