Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature: Digit Formats #13

Merged
merged 45 commits into from
Oct 23, 2021
Merged

Feature: Digit Formats #13

merged 45 commits into from
Oct 23, 2021

Conversation

adrian-miasik
Copy link
Owner

@adrian-miasik adrian-miasik commented Oct 21, 2021

Additions

  • Created a new class DigitSeparator.cs
    • Created a new prefab Separator.prefab
  • Created a new class DigitFormat.cs
    • Added support for multiple timer formats:
      • DD_HH_MM_SS_MS - Full
      • HH_MM_SS_MS - Detail
      • HH_MM_SS - Default / Standard
      • MM_SS - Simple
      • SS - Bare
    • Fixed support for copying and pasting timer values (specifically for copying and pasting to other digit formats)
    • Fixed support for navigation / digit selection (specifically when generating the different formats)
  • Added hotkey binds to quickly swap between the new formats in HotkeyDetector.cs
    • F1 swaps digit format to Full
    • F2 swaps digit format to Detail
    • F3 swaps digit format to Default / Standard
    • F4 swaps digit format to Simple
    • F5 swaps digit format to Bare
  • Modified InformationPanel.cs to only update it's color components when visible

Refactors

  • Refactored flow and readability of PomodoroTimer.cs
  • Refactored flow and readability of DoubleDigit.cs
  • Moved all digit logic in PomodoroTimer.cs to DigitFormat.cs

Coding Style

  • Modified BooleanToggleEditor.cs to follow our coding style
  • Renamed & re-hooked up a couple Unity Events to follow our coding style
  • Removed whitespace

- Created separator prefab, created digit separator class.
- I've broken functionality in regards to digit selection, we'll have to address in a future commit but for the most part, the core logic for digits has been moved to it's own class instead of living in the main class. We'll still have to work on improving readability and reworking a couple questionable methods (probably those related to our enums)
We've changed the flow and layout a bit so it'd be wise to take another look at this from top to bottom to understand how the application is currently running. Almost done with the refactor, have a couple bugs to still iron out but should be working for the most part using different formats too! :D
This is because when the timer is running, it's constantly spamming the animation which hides the values from view. The tick animation is intended for seconds and upwards since those will tick less and not as frequently
This way we can invoke the regeneration via context menu too
Arrow keys (Horizontal Input) works again with nothing / everything selected
@adrian-miasik adrian-miasik self-assigned this Oct 21, 2021
@adrian-miasik adrian-miasik added this to the 1.3.0 milestone Oct 21, 2021
@adrian-miasik adrian-miasik marked this pull request as ready for review October 23, 2021 18:49
@adrian-miasik adrian-miasik merged commit 7257902 into develop Oct 23, 2021
@adrian-miasik adrian-miasik deleted the feature/digit-formats branch October 23, 2021 19:33
@adrian-miasik adrian-miasik added 2. Priority: High High Priority PR - This needs te be prioritized over Normal, and Low priority based labels. Status: Completed / Ready to Merge This PR has passed all our requirements and is ready to be merged in. labels Dec 20, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
2. Priority: High High Priority PR - This needs te be prioritized over Normal, and Low priority based labels. Status: Completed / Ready to Merge This PR has passed all our requirements and is ready to be merged in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant