Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have GuiTextBox/GuiTextBoxMulti respect BORDER_WIDTH #260

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

shadeops
Copy link
Contributor

@shadeops shadeops commented Mar 6, 2023

This PR allows users to control the BORDER_WIDTH of the text boxes (GuiTextBox and GuiTextBoxMulti) via GuiSetStyle.

Currently, the BORDER_WIDTH of the text boxes is taken into account when in the 'focused' or 'pressed' state. In the 'normal' state this is hard coded to 1. This change replaces the hard coded value and instead does a GuiGetStyle lookup.

By being able to control the TextBox's border we can achieve effects like -
noborder

However currently with the value hard coded to 1 you get this -
border

If this change is counter to Raygui's design or intent please feel free to close.

Thanks for your time.

GuiTextBox and GuiTextBoxMulti's focused and pressed state respect
the BORDER_WIDTH style setting, however in normal state this was
hard coded to 1. This change now allows users control over the borders
when in a normal state.
@raysan5 raysan5 merged commit 9f9b822 into raysan5:master Mar 6, 2023
@raysan5
Copy link
Owner

raysan5 commented Mar 6, 2023

@shadeops Thanks for the review! :)

@shadeops shadeops deleted the textbox_border_width branch March 6, 2023 13:27
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