Skip to content

publicize defaultTerminalFontSize#131

Closed
darmuh wants to merge 1 commit into
IAmBatby:mainfrom
darmuh:patch-1
Closed

publicize defaultTerminalFontSize#131
darmuh wants to merge 1 commit into
IAmBatby:mainfrom
darmuh:patch-1

Conversation

@darmuh

@darmuh darmuh commented Jul 30, 2024

Copy link
Copy Markdown

would allow for other mods to access/modify this value to change terminal font size

specifically re: the below issue

hey @IAmBatby (On Semi-Cooldown), low priority but I've got an issue to report. There's a feature in my terminal mod that allows for changing the terminal font & font size that is failing to update (Terminal instance).screenText.textComponent.fontSize with LLL present. I'm assuming it's because LLL caches the default font size at StartOfRound Awake and is setting the font size to this whenever RefreshMoonsCataloguePage is called. Is there any way I can build soft compatibility to LLL to either A) Update the cached font size to the user's configured size from my mod or B) subscribe to an event where RefreshMoonsCataloguePage is called to update the font size to the user's configured size from my mod after?

would allow for other mods to access/modify this value to change terminal font size
@darmuh

darmuh commented Jul 31, 2024

Copy link
Copy Markdown
Author

I guess the main concern re: this is how different values would affect the below code?

Terminal.screenText.textComponent.fontSize = defaultTerminalFontSize - (0.1f * (currentMoonsCataloguePage.ExtendedLevels.Count - OriginalContent.MoonsCatalogue.Count));

I'm guessing it's just to make the moon catalogue page look better?

@darmuh

darmuh commented Aug 8, 2024

Copy link
Copy Markdown
Author

also, kinda wild idea but if you are only trying to modify the font size for the moons catalogue it turns out you can use the tag in the displaytext output to modify the font size.

so you could do something like

moonTerminalNode.displayText = moonTerminalNode.displayText.Insert(0, "<size=newSize>");
moonTerminalNode.displayText = moonTerminalNode.displayText.Insert(moonTerminalNode.displayText.length -1, "</size>");

The below user of my terminal mod tested this tag with the below results:
image
http://digitalnativestudios.com/textmeshpro/docs/rich-text/#size

@darmuh

darmuh commented Jan 18, 2025

Copy link
Copy Markdown
Author

this was completed in 1.3.12 release I believe

@darmuh darmuh closed this Jan 18, 2025
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.

1 participant