midinous 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/midinous/points.rb +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89ce42f2e2944cfdff16e619467accf34d03027a47151f67c21793fe9f794c6d
4
- data.tar.gz: 89f30cf29078a6c1800015a9daff0573364623819b6f372de03e4b63a9ffe20a
3
+ metadata.gz: 0465ccde0544c218a58e9e552a3cf932c438803627af51c36946024617fe35a4
4
+ data.tar.gz: b4c1ac7aff5b1939bd86690746a8123dee8a51be31b437f5c31577ef4e75019c
5
5
  SHA512:
6
- metadata.gz: e52a3bf73a9e77ba7f7e5ca0d968c227c6ec090c4da2982fc77edf4c23030ffce31bc6696788f22349dd2aea8756e3735df7405d15673685935be9036cebd72b
7
- data.tar.gz: e7d4013eb378bfb232c3bdc0bebc22bfbc8f9396d72097f61ef94ed6816e89264c0a017e8f34b9b669cdb7a26eb5f8a6cd23d40a4cf8e1cc5aff4bbd4c83a9ce
6
+ metadata.gz: 0fea92aec8f720e755b204641af2bac6bee2624b50e4c3ec7c6bc4dcc15c929289db027e0bb91a00bb4e15d6749a5d9960b4b0b4b2457a086dd2496661cdc220
7
+ data.tar.gz: 2c403dcf59a8681a14c1b8ae645bdb6c3838fede943c19116f3e09148dd091266a5580ed35c60fd7f7714c79ee8317e05598f4fe7073e213c1a0609cfe6d5616
@@ -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
- play_mode_rotate(1)
431
+ play_mode_set("robin")
426
432
  end
427
433
  UI::canvas.queue_draw
428
434
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midinous
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James "Nornec" Ratliff