diff options
| -rw-r--r-- | dragon/numeric.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dragon/numeric.rb b/dragon/numeric.rb index 6d8b84d..5485ff8 100644 --- a/dragon/numeric.rb +++ b/dragon/numeric.rb @@ -9,6 +9,11 @@ class Numeric alias_method :gte, :>= alias_method :lte, :<= + + # Converts numeric value to distance from top of stage + def from_top + $gtk.args.grid.h - self + end # Converts a numeric value representing seconds into frames. # |
