private static void ToysMenu(Toy toy)
        {
            switch (toy.name)
            {
            case "Edge":
                EdgeRadials(toy);
                break;

            case "Max":
                MaxRadials(toy);
                break;

            case "Nora":
                NoraRadials(toy);
                break;

            default:
                VibrateRadial(toy, toy.name);
                break;
            }
        }
Example #2
0
        // TODO find a way to use radial button
        // See with gompo#6956 if he found anything interesting for that

        private static void PercentageMenu(Toy toy, int purcent, Texture2D logo = null)
        {
            actionMenuApi.AddPedalToCustomMenu(() => { toy.setSpeed(purcent / 5); }, "", logo);
        }
Example #3
0
        private static void NoraRadials(Toy toy)
        {
            VibrateRadial(toy, $"{toy.name} Vibration");

            AMAPI.AddButtonPedalToSubMenu($"{toy.name} Rotate", () => { toy.rotate(); }, toy_icons[toy.name]);
        }
        private static void NoraRadials(Toy toy)
        {
            VibrateRadial(toy, toy.name + " Vibration");

            CustomSubMenu.AddButton(toy.name + " Rotate", () => { toy.rotate(); }, toy.GetTexture());
        }