Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@DaCubeKing
Copy link

@DaCubeKing DaCubeKing commented Aug 9, 2021

This pull request will allow you to add math to text boxes in the keyframe and marker GUIs. This allows you to just add -20 or +10 to the end of value and have the value change by that amount.

Changes

  • Make the textboxes bigger to give you more space to write expressions
  • Allow negative numbers in the time field
  • Add EvalEx Dependency to do the math parsing
  • Add GuiExpressionTextField which takes care of parsing and checks if the expression is valid (This class probably needs to be moved to a better place, but I'm not sure where to put it. Would this belong in jGui?)
  • Add checks everywhere to make sure the user can't submit an invalid expression
  • Have the textbox turn red if the expression is invalid

Also change getLong() calls for time parts of keyframes with doubles so that we can have decimal time for the minutes and seconds. We then only conform to an int/long at the very end of the calculations.
@Johni0702 Johni0702 added this to the v2.7.0 milestone Feb 27, 2022
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.

2 participants