midinous 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/midinous/points.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0465ccde0544c218a58e9e552a3cf932c438803627af51c36946024617fe35a4
|
4
|
+
data.tar.gz: b4c1ac7aff5b1939bd86690746a8123dee8a51be31b437f5c31577ef4e75019c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fea92aec8f720e755b204641af2bac6bee2624b50e4c3ec7c6bc4dcc15c929289db027e0bb91a00bb4e15d6749a5d9960b4b0b4b2457a086dd2496661cdc220
|
7
|
+
data.tar.gz: 2c403dcf59a8681a14c1b8ae645bdb6c3838fede943c19116f3e09148dd091266a5580ed35c60fd7f7714c79ee8317e05598f4fe7073e213c1a0609cfe6d5616
|
data/lib/midinous/points.rb
CHANGED
@@ -387,6 +387,12 @@ class Point_Logic
|
|
387
387
|
UI::canvas.queue_draw
|
388
388
|
end
|
389
389
|
end
|
390
|
+
def play_mode_set(mode)
|
391
|
+
return unless ["robin","portal","split","random"].find {|f| f = mode}
|
392
|
+
CC.nouspoints.find_all(&:selected).each do |n|
|
393
|
+
n.play_modes.rotate!(1) until n.play_modes[0] == mode
|
394
|
+
end
|
395
|
+
end
|
390
396
|
def path_rotate(dir)
|
391
397
|
CC.nouspoints.find_all(&:selected).each do |n|
|
392
398
|
case dir
|
@@ -422,7 +428,7 @@ class Point_Logic
|
|
422
428
|
points.find_all {|f| !f.path_to.length.zero? && f.selected == true}.each {|n| n.path_to.each {|b| b.path_from.reject! {|g| g == n }}}
|
423
429
|
points.find_all {|f| !f.path_to.length.zero? && f.selected == true}.each do |n|
|
424
430
|
n.path_to = []
|
425
|
-
|
431
|
+
play_mode_set("robin")
|
426
432
|
end
|
427
433
|
UI::canvas.queue_draw
|
428
434
|
end
|