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

cargo gauge - EconTrade.lua #2648

Closed
radius75 opened this issue Jan 13, 2014 · 6 comments
Closed

cargo gauge - EconTrade.lua #2648

radius75 opened this issue Jan 13, 2014 · 6 comments

Comments

@radius75
Copy link
Contributor

https://github.com/pioneerspacesim/pioneer/blob/master/data/ui/InfoView/EconTrade.lua#L81
https://github.com/pioneerspacesim/pioneer/blob/master/data/ui/InfoView/EconTrade.lua#L107

it seems to me that there should be:
player.usedCargo/(player.freeCapacity+player.usedCargo) % calculated for total space for cargo

@radius75
Copy link
Contributor Author

@radius75
Copy link
Contributor Author

and yet here
https://github.com/pioneerspacesim/pioneer/blob/master/data/ui/InfoView/EconTrade.lua#L78
("%d/%dt", player.usedCargo, (player.freeCapacity+player.usedCargo)) actual cargo/total space for cargo

@impaktor
Copy link
Member

I've looked into this (code, and tested its behaviour in game)

L81, and L107 are, as you point out, definitley wrong, and should have the form you suggest.

L78 is good as it is, since we want to show just this, i.e. how much cargo space is in use vs. how much cargo space is free.

I'd suggest you make a pull request fixing L81, and L107.

@radius75
Copy link
Contributor Author

since we want to show just this, i.e. how much cargo space is in use vs. how much cargo space is free.

I think the label "Cargo space" should be more understandable: "Cargo/Free space"
The player has to guess what is (for example) 1/1 :)
screenshot-20140116-194154

@impaktor
Copy link
Member

On second thoughts, I withdraw my statement about L78. Maybe it should be as it is now used / free, or maybe it should show used / total. I don't know which is of most value to the user.

@robn
Copy link
Member

robn commented Jan 18, 2014

Closed by #2657.

@robn robn closed this as completed Jan 18, 2014
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

No branches or pull requests

3 participants