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

ASRS Balance update bug #2059

Closed
MetalSage opened this issue May 3, 2024 · 2 comments · Fixed by space-wizards/RobustToolbox#5111
Closed

ASRS Balance update bug #2059

MetalSage opened this issue May 3, 2024 · 2 comments · Fixed by space-wizards/RobustToolbox#5111

Comments

@MetalSage
Copy link
Contributor

Description

If StartingDollarsPerMarine in RequisitionsAccountComponent is greater than the value of the item, the item still remains locked until the Balance value is updated

Reproduction

  1. Set StartingDollarsPerMarine in RequisitionsAccountComponent for example to 15000
  2. Try to buy anything
  3. Realize that all buttons for buying are deactivated and not clickable
  4. Refresh Balance by selling anything
  5. See how the buy buttons are unlocked

Screenshots

Скриншот 03-05-2024 222632
Скриншот 03-05-2024 222659

Additional context

@MetalSage
Copy link
Contributor Author

Upd. It turns out that the buttons are always locked and unlocked only when the elevator changes its state. For example, if you call the elevator and click on any category with goods, the button to buy goods will be unlocked.

@DrSmugleaf
Copy link
Contributor

This is an upstream engine issue after BUI prediction, the State property is never set in bound user interfaces.
Fixed in space-wizards/RobustToolbox#5111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants