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

[0.49.x-0.50.0+] Game Options ignores textbox value changes when in Search #5972

Closed
ObviousTech opened this issue Sep 5, 2024 · 0 comments · Fixed by #6121
Closed

[0.49.x-0.50.0+] Game Options ignores textbox value changes when in Search #5972

ObviousTech opened this issue Sep 5, 2024 · 0 comments · Fixed by #6121
Labels

Comments

@ObviousTech
Copy link
Contributor

ObviousTech commented Sep 5, 2024

Environment

megamek 0.49.11, 0.50.0, at least several versions before. the mekhq versions, but this should not matter
Windows
java 17

Description

When in the Game Options menu, if you use the Search tab to find options, the textbox fields value updates are ignored when okaying out of the menu. Checkbox value changes do get applied properly. For example, if you search for "Lance", some of the options are "TacOps Vehicle Lance Movement" and "Number of vehicles per lance". If you change the lance movement checkbox and hit ok, the change is applied and you see a line of text in the chat window stating such. If you change the number in the box (from say, 4 to 2,) and hit ok, the change is ignored and there is no line of text in chat.

This seems to apply to any textbox field. Other examples fields: "% BV to Destroy", "Year the game takes place in", "(Unofficial) Specify the area in terms of number of hexes for artillery autohit predesignation hexes."

Example:

Before:
search lance

After updating the values:
search lance edit

After hitting Okay, then loading the game options again (note that the checkbox toggle was applied, but changing 4 to 2 was not):
search lance after ok

Current workaround: you can still set the textbox values from their normal tabs (you just have to go look for them on their original tabs)

Files

no files should be needed, this is entirely in the game options menu. megamek.log doesn't appear to have anything relevant in it

@ObviousTech ObviousTech changed the title [0.49.x-0.50.0+] Game Options ignore textbox value changes when in Search [0.49.x-0.50.0+] Game Options ignores textbox value changes when in Search Sep 5, 2024
@repligator repligator added the Bug label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants