aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/game/plugins/blind.usdx
blob: 2d2ce44eaa2bfd34a697a10ffcfa7be45b37f68a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function plugin_init()
  register('party mode: blind', '1.00', 'USDX Team', 'http://www.UltrastarDeluxe.org');

  require('Usdx.Party')
  require('Usdx.ScreenSing')

  local Mode = {}

  Mode.Name = 'Blind'
  Mode.CanNonParty = true;
  Mode.CanParty = true;

  Mode.BeforeSing = 'BeforeSing';

  Usdx.Party.Register(Mode)

  return true;
end

function BeforeSing()
  local Settings = {};
  Settings['NotesVisible'] = {}; -- notes hidden for every player

  ScreenSing.SetSettings(Settings);

  return true;
end