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

protected field instead of private for easy extending? #246

Open
fishBone000 opened this issue Aug 2, 2024 · 1 comment
Open

protected field instead of private for easy extending? #246

fishBone000 opened this issue Aug 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@fishBone000
Copy link

Just tried to extend WButton, because I want to make the button display foreground icon only, not background. But some fields of WButton is private, because of this I have to write a WButton on my own, or copy its code and worry about licensing before that (at least i need to search it), or workaround it in other ways.
I believe this happens to other widgets and classes as well.

Is it possible to make the fields protected instead of private? So that if modders want to modify the behavior of widgets provided by libgui, it would be much easier.

Thx!

@fishBone000 fishBone000 added the enhancement New feature or request label Aug 2, 2024
@Juuxel
Copy link
Member

Juuxel commented Aug 2, 2024

All the fields of WButton have public getters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants