HomeWildfire Games

Refactor trade dialog and barter panel buttons to use object orientation, refs…
AuditedrP23072

Description

Refactor trade dialog and barter panel buttons to use object orientation, refs #23, #2311, #4366, #5387, rP10588, rP14417, rP17553, rP19354.

Differential Revision: https://code.wildfiregames.com/D2369

Event Timeline

bb raised a concern with this commit.Sep 23 2020, 8:13 PM
bb added a subscriber: bb.
bb added inline comments.
/ps/trunk/binaries/data/mods/public/gui/session/trade/TradeButtonManager.js
11

We can't assume that, since the values should be visible for observers too and they don't change the simstate. Therefore observers never saw changes here (they inherited the initial gaia settings) and since D2810 they show undefined (since initially there is no player interface, which is fine since the trade dialog can't be opened). We probably should update the values on update then...

This commit now has outstanding concerns.Sep 23 2020, 8:13 PM
bb accepted this commit.Sep 26 2020, 12:07 AM

Fixed by rP24071

All concerns with this commit have now been addressed.Sep 26 2020, 12:07 AM