public void UpdateValue(int v)
 {
     //if (notePlacement.atsc.IsPlaying) return;
     //if (!customStandaloneInputModule.IsPointerOverGameObject<GraphicRaycaster>(-1, true)) return; // not sure what these do?
     notePlacement.IsActive     = true;
     bombPlacement.IsActive     = false;
     obstaclePlacement.IsActive = false;
     delete = false;
     notePlacement.UpdateType(v);
 }
Example #2
0
 private void UpdateValue(int v, bool isChroma = false, int chromaType = 0)
 {
     //if (notePlacement.atsc.IsPlaying) return;
     //if (!customStandaloneInputModule.IsPointerOverGameObject<GraphicRaycaster>(-1, true)) return; // not sure what these do?
     notePlacement.IsActive     = true;
     bombPlacement.IsActive     = false;
     obstaclePlacement.IsActive = false;
     delete = false;
     notePlacement.ChangeChromaToggle(isChroma);
     notePlacement.UpdateType(v);
     if (isChroma)
     {
         notePlacement.UpdateChromaValue(chromaType);
     }
 }
Example #3
0
 private void UpdateValue(int v, bool isChroma = false, int chromaType = 0)
 {
     if (notePlacement.atsc.IsPlaying)
     {
         return;
     }
     notePlacement.IsActive     = true;
     bombPlacement.IsActive     = false;
     obstaclePlacement.IsActive = false;
     notePlacement.ChangeChromaToggle(isChroma);
     notePlacement.UpdateType(v);
     if (isChroma)
     {
         notePlacement.UpdateChromaValue(chromaType);
     }
 }
Example #4
0
 public void UpdateValue(int type)
 {
     notePlacement.UpdateType(type);
     UpdateUI();
 }
Example #5
0
    void NotesKeybinds()
    {
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            notePlacement.UpdateType(BN.NOTE_TYPE_A);
        }
        else if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            notePlacement.UpdateType(BN.NOTE_TYPE_B);
        }
        else if (Input.GetKeyDown(KeyCode.Alpha3))
        {
            notePlacement.IsActive = false;
            bombPlacement.IsActive = true;
        }
        else if (Input.GetKeyDown(KeyCode.Alpha4))
        {
            notePlacement.IsActive     = false;
            obstaclePlacement.IsActive = true;
        }

        if (!notePlacement.IsValid)
        {
            return;
        }

        if (Input.GetKeyDown(KeyCode.Keypad8) || Input.GetKeyDown(KeyCode.W))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_UP : BN.NOTE_CUT_DIRECTION_DOWN);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad9) || (Input.GetKey(KeyCode.W) && Input.GetKey(KeyCode.D)))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_UP_RIGHT : BN.NOTE_CUT_DIRECTION_DOWN_LEFT);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad6) || Input.GetKeyDown(KeyCode.D))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_RIGHT : BN.NOTE_CUT_DIRECTION_LEFT);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || (Input.GetKey(KeyCode.S) && Input.GetKey(KeyCode.D)))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_DOWN_RIGHT : BN.NOTE_CUT_DIRECTION_UP_LEFT);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.S))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_DOWN : BN.NOTE_CUT_DIRECTION_UP);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad1) || (Input.GetKey(KeyCode.S) && Input.GetKey(KeyCode.A)))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_DOWN_LEFT : BN.NOTE_CUT_DIRECTION_UP_RIGHT);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.A))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_LEFT : BN.NOTE_CUT_DIRECTION_RIGHT);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad7) || (Input.GetKey(KeyCode.W) && Input.GetKey(KeyCode.A)))
        {
            notePlacement.UpdateCut(InvertNoteKeybinds ? BN.NOTE_CUT_DIRECTION_UP_LEFT : BN.NOTE_CUT_DIRECTION_DOWN_RIGHT);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad5) || Input.GetKeyDown(KeyCode.F))
        {
            notePlacement.UpdateCut(BN.NOTE_CUT_DIRECTION_ANY);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad0) || Input.GetKeyDown(KeyCode.E))
        {
            notePlacement.ChangeChromaToggle(true);
            notePlacement.UpdateChromaValue(BeatmapChromaNote.DEFLECT);
        }
        else if (Input.GetKeyDown(KeyCode.KeypadPeriod) || Input.GetKeyDown(KeyCode.Q))
        {
            notePlacement.ChangeChromaToggle(true);
            notePlacement.UpdateChromaValue(BeatmapChromaNote.BIDIRECTIONAL);
        }
        if (Input.GetKeyDown(KeyCode.R))
        {
            notePlacement.ChangeChromaToggle(false);
        }
    }