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

Automatic display of values in Imperial/International system #269

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

PhillipDaisySeventh
Copy link

Allow to change the system of units displayed in the interface with the toggle of an option (for some parts of the game).

A new option to change between the imperial and International system has been added. Its default state is for the use of the imperial system (inches, feet, pounds, ...) and once toggled the values displayed to the user are in the International System (centimeters, meters, grams, kilograms, liter, ...).

A new class is in charge of displaying values in the correct system of units [classes/Units/UnitSystem.as].

As a first step towards complete adaptation, a few scripts have been change to use the automatic conversion of units :

  • the character creation scene [includes/creation.as]
  • characters appearance [includes/creation.as]
  • personal statistics [includes/gameStats.as]

Some sort of conversion was already in place for the personal statistics, but it has been supplanted by the new system.

The next step would be to adapt the rest of the project to use the unit system manager.

The "unit system" uses the correct system based on the options. It
either displays values in the Imperial system (default) or in the
International system.
The PC creation phase has been adapted to use this feature.
Replaced written occurrences of inch(es) and foot/feet to use the Unit
System instead.
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.

1 participant