Remember store buy/sell state.

This commit is contained in:
Mari the Deer 2022-04-12 16:26:41 +02:00
commit fd9ea92966
4 changed files with 7 additions and 4 deletions

View file

@ -82,10 +82,12 @@ Class DemolitionistStoreTab : DemolitionistMenuTab
override void OnSelect()
{
bSell = master.shnd.menustate.At("WasSelling").ToInt();
smofs = ofs;
}
override void OnDeselect()
{
master.shnd.menustate.Insert("WasSelling",String.Format("%d",bSell));
smofs = ofs;
}