Skip to content

stocks: add expand_all to stocks interface#5809

Open
emreduzenli wants to merge 2 commits into
DFHack:developfrom
emreduzenli:expand-all-stocks
Open

stocks: add expand_all to stocks interface#5809
emreduzenli wants to merge 2 commits into
DFHack:developfrom
emreduzenli:expand-all-stocks

Conversation

@emreduzenli

Copy link
Copy Markdown

Fixes #5338

Comment thread plugins/lua/stocks.lua
for idx=0,num_sections-1 do
stocks.current_type_a_expanded[idx] = true
end
stocks.i_height = num_sections * 3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm uncertain that this is the correct thing to do here, but I also don't understand why collapse_all does the same thing. So if someone could explain this to me, it would help me feel better about approving this change.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stocks screen option to "expand all" categories

2 participants