Skip to content

Replace old methods with ShipUtils#5151

Merged
Archez merged 2 commits intoHarbourMasters:developfrom
Archez:use-ship-utils
Mar 30, 2025
Merged

Replace old methods with ShipUtils#5151
Archez merged 2 commits intoHarbourMasters:developfrom
Archez:use-ship-utils

Conversation

@Archez
Copy link
Contributor

@Archez Archez commented Mar 19, 2025

This drops some old custom methods that we sprinkled through some of the game source files with ShipUtil variants (that were brought over from 2ship in the menu PR).

The main "change" was the old font width method was applying a scale internally, and then consumers were reverting that scale. Instead I've dropped that and moved the additional scale directly to the Interface_DrawTextLine method.

I didn't bother moving Interface_DrawTextLine as that does a bit more than just "utility" logic (graphics rendering, etc), so that can be done in a follow up PR.

Build Artifacts

@Archez Archez merged commit ae029a3 into HarbourMasters:develop Mar 30, 2025
5 checks passed
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