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

Address various minor highdpi TODOs #6812

Merged
merged 3 commits into from Jul 1, 2022
Merged

Conversation

mesilliac
Copy link
Contributor

Mostly these just involved checking if something was okay.

A couple unused things were removed.

  1. The hex_brightening config option. This was not used, and from the looks of it has not been for quite some time. It was added in 2010 for testing the mouseover effect. The current effect is hardcoded and ignores this value.
  2. There was a function dealing with "report" images, which actively analyzed them for transparency and automatically clipped them. This is ridiculous and i removed it some time ago. No adverse effect has been reported.

I originally thought "reports" were maybe some automatically generated graphs or something. But no. It is just the name for the automatically updated UI sections of the game display, such as the amount of village gold etc.. The icon images do not need clipping, and even if they do, it should be done via IPF.

It is not used, and appears to have been unused for a long time.
It was related to mouseover hex brightening, but the brightening
amount is hardcoded. There were associated hex_semi_brightening,
mouseover_image and selected_image keys, but that info is also
hardcoded, and those keys appear to have been removed already.
@github-actions github-actions bot added Help In-game Help functions Schema UI User interface issues, including both back-end and front-end issues. labels Jun 30, 2022
@cooljeanius
Copy link
Contributor

A couple unused things were removed.

  1. The hex_brightening config option. This was not used, and from the looks of it has not been for quite some time. It was added in 2010 for testing the mouseover effect. The current effect is hardcoded and ignores this value.

Wait this sounds like it could be used to address the "high contrast mode" part of #6133 perhaps? Or actually I guess that's #6149 now...

@mesilliac
Copy link
Contributor Author

It doesn't actually do anything. It was just a variable, sitting there.

From the sounds of it all it was ever used for was tweaking the brightness of the hex underneath the mouse cursor, and it seems from the original commit in 2010 like it was for testing the effect.

@mesilliac mesilliac merged commit 613f047 into wesnoth:master Jul 1, 2022
@mesilliac mesilliac deleted the todo_tidy branch July 1, 2022 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help In-game Help functions Schema UI User interface issues, including both back-end and front-end issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants