osb 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/osb/commandable.rb +8 -8
- data/lib/osb.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 980e34cc00ef3f8142dbc6822035f28264324006ec8ec89192e8505c1cb242cf
|
4
|
+
data.tar.gz: 2aa3495b686ae9b93ec8fce0fd8e240d3d363abafb83c8f080c0de4895cae4d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bcb0418f74689d8c49fce3471ed59cda8900a90875e5f3c3b499d086623aaf24921c48bdffd900045b1fc603c69834ebea1c56a623e487f1e5508ef2a8793ed
|
7
|
+
data.tar.gz: a85a9feea55408ea18498e1355c317e9d7ddd6376cded2946153958151280699953dd2aed4fc6c7351466576fe011b045c05e81ff09c68ed30bff536738f6121
|
data/lib/osb/commandable.rb
CHANGED
@@ -63,7 +63,7 @@ module Osb
|
|
63
63
|
|
64
64
|
end_time = "" if start_time == end_time
|
65
65
|
tabs = " " * self.tab_level
|
66
|
-
command = "#{tabs}F,#{start_time},#{end_time},#{start_opacity}"
|
66
|
+
command = "#{tabs}F,#{easing},#{start_time},#{end_time},#{start_opacity}"
|
67
67
|
command += ",#{end_opacity}" if end_opacity != start_opacity
|
68
68
|
@commands << command
|
69
69
|
end
|
@@ -103,7 +103,7 @@ module Osb
|
|
103
103
|
end_time = "" if start_time == end_time
|
104
104
|
tabs = " " * self.tab_level
|
105
105
|
command =
|
106
|
-
"#{tabs}M,#{start_time},#{end_time},#{start_position.x},#{start_position.y}"
|
106
|
+
"#{tabs}M,#{easing},#{start_time},#{end_time},#{start_position.x},#{start_position.y}"
|
107
107
|
if end_position != start_position
|
108
108
|
command += ",#{end_position.x},#{end_position.y}"
|
109
109
|
end
|
@@ -133,7 +133,7 @@ module Osb
|
|
133
133
|
|
134
134
|
end_time = "" if start_time == end_time
|
135
135
|
tabs = " " * self.tab_level
|
136
|
-
command = "#{tabs}MX,#{start_time},#{end_time},#{start_x}"
|
136
|
+
command = "#{tabs}MX,#{easing},#{start_time},#{end_time},#{start_x}"
|
137
137
|
command += ",#{end_x}" if end_x
|
138
138
|
@commands << command
|
139
139
|
end
|
@@ -161,7 +161,7 @@ module Osb
|
|
161
161
|
|
162
162
|
end_time = "" if start_time == end_time
|
163
163
|
tabs = " " * self.tab_level
|
164
|
-
command = "#{tabs}MY,#{start_time},#{end_time},#{start_y}"
|
164
|
+
command = "#{tabs}MY,#{easing},#{start_time},#{end_time},#{start_y}"
|
165
165
|
command += ",#{end_y}" if end_y != start_y
|
166
166
|
@commands << command
|
167
167
|
end
|
@@ -205,7 +205,7 @@ module Osb
|
|
205
205
|
raise InvalidValueError,
|
206
206
|
"start_scale and end_scale must be either both Numeric values or Vector2-like values."
|
207
207
|
end
|
208
|
-
command = "#{tabs}S,#{start_time},#{end_time},#{start_scale}"
|
208
|
+
command = "#{tabs}S,#{easing},#{start_time},#{end_time},#{start_scale}"
|
209
209
|
command += ",#{end_scale}" if end_scale != start_scale
|
210
210
|
@commands << command
|
211
211
|
else
|
@@ -218,7 +218,7 @@ module Osb
|
|
218
218
|
end_scale = Osb::Vector2.new(end_scale) if end_scale.is_a?(Array)
|
219
219
|
|
220
220
|
command =
|
221
|
-
"#{tabs}V,#{start_time},#{end_time},#{start_scale.x},#{start_scale.y}"
|
221
|
+
"#{tabs}V,#{easing},#{start_time},#{end_time},#{start_scale.x},#{start_scale.y}"
|
222
222
|
command += ",#{end_scale.x},#{end_scale.y}" if end_scale
|
223
223
|
@commands << command
|
224
224
|
end
|
@@ -247,7 +247,7 @@ module Osb
|
|
247
247
|
|
248
248
|
end_time = "" if start_time == end_time
|
249
249
|
tabs = " " * self.tab_level
|
250
|
-
command = "#{tabs}R,#{start_time},#{end_time},#{start_angle}"
|
250
|
+
command = "#{tabs}R,#{easing},#{start_time},#{end_time},#{start_angle}"
|
251
251
|
command += ",#{end_angle}" if end_angle != start_angle
|
252
252
|
@commands << command
|
253
253
|
end
|
@@ -287,7 +287,7 @@ module Osb
|
|
287
287
|
end_time = "" if start_time == end_time
|
288
288
|
tabs = " " * self.tab_level
|
289
289
|
command =
|
290
|
-
"#{tabs}C,#{start_time},#{end_time},#{start_color.r},#{start_color.g},#{start_color.b}"
|
290
|
+
"#{tabs}C,#{easing},#{start_time},#{end_time},#{start_color.r},#{start_color.g},#{start_color.b}"
|
291
291
|
if end_color != start_color
|
292
292
|
command += ",#{end_color.r},#{end_color.g},#{end_color.b}"
|
293
293
|
end
|
data/lib/osb.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dinh Vu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple framework for building osu! storyboard.
|
14
14
|
email: dinhvu2509@gmail.com
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
|
-
rubygems_version: 3.
|
58
|
+
rubygems_version: 3.1.6
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: osu! storyboard framework
|