Skip to content

Apply HUD clock time format for any mod language, not just Thai#1

Open
ThatHunky wants to merge 1 commit into
NRTnarathip:masterfrom
ThatHunky:fix/hud-clock-any-mod-language
Open

Apply HUD clock time format for any mod language, not just Thai#1
ThatHunky wants to merge 1 commit into
NRTnarathip:masterfrom
ThatHunky:fix/hud-clock-any-mod-language

Conversation

@ThatHunky

@ThatHunky ThatHunky commented Jul 5, 2026

Copy link
Copy Markdown

The DayTimeMoneyBox draw patch that renders the HUD clock using the
mod language's time format was gated behind a hardcoded check for
ELL.StardewValleyTHAI. Any other custom language (e.g. the Ukrainian
translation Pereclaw.ukrainizacija) fell through to the vanilla mobile
switch, which has no LanguageCode.mod case and renders a 12-hour clock
with no AM/PM marker.

Changes:

  • ModEntry: enable the patch whenever the loaded mod language defines
    a ClockTimeFormat or TimeFormat, instead of matching the Thai pack ID
  • DayTimeMoneyBoxThaiFormat: prefer ClockTimeFormat for the HUD clock
    (matching desktop DayTimeMoneyBox behavior), fall back to TimeFormat

The DayTimeMoneyBox draw patch that renders the HUD clock using the
mod language's time format was gated behind a hardcoded check for
ELL.StardewValleyTHAI. Any other custom language (e.g. the Ukrainian
translation Pereclaw.ukrainizacija) fell through to the vanilla mobile
switch, which has no LanguageCode.mod case and renders a 12-hour clock
with no AM/PM marker.

Changes:
- ModEntry: enable the patch whenever the loaded mod language defines
  a ClockTimeFormat or TimeFormat, instead of matching the Thai pack ID
- DayTimeMoneyBoxThaiFormat: prefer ClockTimeFormat for the HUD clock
  (matching desktop DayTimeMoneyBox behavior), fall back to TimeFormat
@ThatHunky ThatHunky marked this pull request as ready for review July 5, 2026 15:14
@NRTnarathip

Copy link
Copy Markdown
Owner

Nice!, i will check it within 1-2 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants