by Player701 » Tue Mar 21, 2023 2:59 am
Clarification: latch CVARs
can be changed, the actual problem is that there is no way to retrieve the pending value from user code - thus, you always see only the current value in the menu, and this is indeed confusing. This likely stems from the fact that latch CVARs were not designed to work with menus in the first place. I believe this issue has been brought up multiple times before, and the only workaround I know of is to use non-latch CVARs instead and implement the "latching" mechanism manually in ZScript, which is exactly what I did in
my own project.
Clarification: latch CVARs [i]can[/i] be changed, the actual problem is that there is no way to retrieve the pending value from user code - thus, you always see only the current value in the menu, and this is indeed confusing. This likely stems from the fact that latch CVARs were not designed to work with menus in the first place. I believe this issue has been brought up multiple times before, and the only workaround I know of is to use non-latch CVARs instead and implement the "latching" mechanism manually in ZScript, which is exactly what I did in [url=https://forum.zdoom.org/viewtopic.php?t=63619]my own project[/url].