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

Show import/export in commodity description in commodity market #5082

Merged

Conversation

impaktor
Copy link
Member

This should maybe be shown in a separate column (but green/blue icons would look strange here?), and could be placed better,
but it's a start.

2020-12-19-103834_1600x900_scrot

Open questions

It feels like the if-else statement to check if something is import/export keeps popping up everywhere (tradeship, spacestion, here, system econ view). Feels like there should be a method that gets that information for us somewhere?

At least which numbers for price modification should be the threshold for major/minor export import?

  • system econ view sets 4/10 for minor/major
  • Tradeship lua: 2/10 for minor/major
  • Spacestation: 2/10 for minor/major
  • commodity market (this PR): 2/10

@impaktor impaktor force-pushed the commodity_market_show_import_export branch 2 times, most recently from bc21dee to c926ef6 Compare December 19, 2020 10:07
Economy widget in system-econ-view.lua, shown in sector view, changed
price alteration threshold for showing icon for minor import/export from
 +/- 2 to +/- 4. This changes space station (amount in stock), and
what trader ships haul.
This should maybe be shown in a separate column, and could be placed better,
but it's a start.
@impaktor impaktor force-pushed the commodity_market_show_import_export branch from c926ef6 to 4c777d8 Compare December 19, 2020 10:13
@bszlrd
Copy link
Contributor

bszlrd commented Dec 19, 2020

I think icons wouldn't look much out of place.
market_icons

@impaktor
Copy link
Member Author

impaktor commented Dec 19, 2020

@nozmajner, yeah, that could work. I assume we still want the text description as in the original (and your) screenshot. Both belt and suspenders!

EDIT implementing that is outside the scope of my current ambition level as it's not quite as low hanging fruit as this was, and is left as an exercise to anyone wanting to have a crack at it.

@sturnclaw sturnclaw merged commit 705525b into pioneerspacesim:master Dec 19, 2020
@impaktor impaktor deleted the commodity_market_show_import_export branch December 21, 2020 10:43
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.

3 participants