Skip to content

Use an empty string instead of "NORMAL" for EditBox font flags#4

Open
Exoridus wants to merge 1 commit intoalexqu0822:masterfrom
Exoridus:master
Open

Use an empty string instead of "NORMAL" for EditBox font flags#4
Exoridus wants to merge 1 commit intoalexqu0822:masterfrom
Exoridus:master

Conversation

@Exoridus
Copy link
Copy Markdown

@Exoridus Exoridus commented Jan 30, 2023

It seems that the Wrath Classic 3.4.1 patch made the flags parameter in EditBox:SetFont(font, size, flags); mandatory and only accepts comma-delimited combinations of "OUTLINE", "THICKOUTLINE" and "MONOCHROME". The "NORMAL" flag is invalid and throws an error. This should be fixed by replacing it with an empty string.

The api changes of the 10.0.0 client also mention this:

Functions such as Region:GetPoint() and FontInstance:SetFont() will error in cases where nil values are supplied in-place of expected parameters.

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