Advertisement
Lethrial

Kevinteenbucks Note Colours

Sep 22nd, 2023
1,092
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 1.44 KB | Source Code | 0 0
  1. function onCreatePost()
  2. {
  3.     // mimi and req note alpha is handled in 'thezoomisfuckinwme.lua'
  4.     // comment out the onUpdatePost code to make them fully opaque
  5.  
  6.     for (i in 0 ... game.unspawnNotes.length) {
  7.         var note:Note = game.unspawnNotes[i];
  8.  
  9.         switch (note.noteType) {
  10.             case 'mimi':
  11.                 // mimi
  12.                 note.rgbShader.r = 0xFFc24b69;
  13.                 note.rgbShader.b = 0xFF561f4f;
  14.             case 'GF Sing':
  15.                 // req
  16.                 note.rgbShader.r = 0xFFc2984b;
  17.                 note.rgbShader.b = 0xFF56221f;
  18.             default:
  19.                 if (note.mustPress) {
  20.                     // bf
  21.                     note.rgbShader.r = 0xFF4b90c2;
  22.                     note.rgbShader.b = 0xFF1f2356;
  23.                 }
  24.                 else {
  25.                     // kevin
  26.                     note.rgbShader.r = 0xFF834bc2;
  27.                     note.rgbShader.b = 0xFF22173d;
  28.                 }
  29.         }
  30.  
  31.         note.rgbShader.g = 0xFFFFFFFF;
  32.     }
  33. }
  34.  
  35. function opponentNoteHit(note:Note)
  36. {
  37.     changeStrumColour(game.opponentStrums.members[note.noteData], note);
  38. }
  39.  
  40. function goodNoteHit(note:Note)
  41. {
  42.     changeStrumColour(game.playerStrums.members[note.noteData], note);
  43. }
  44.  
  45. function changeStrumColour(strum:StrumNote, note:Note)
  46. {
  47.     strum.rgbShader.r = note.rgbShader.r;
  48.     strum.rgbShader.g = note.rgbShader.g;
  49.     strum.rgbShader.b = note.rgbShader.b;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement