Exemplo n.º 1
0
        public static void MoveThroughPartList(int step, PartList partList)
        {
            if (partList.parts.Count <= 0)
            {
                Logger.log.Debug("Part list is empty! Ensure mod part lists are installed in ../BeatSaber/SaberForgeParts");
                return;
            }

            partList.index += step;

            if (partList.index >= partList.parts.Count)
            {
                partList.index = 0;
            }

            else if (partList.index < 0)
            {
                partList.index = partList.parts.Count - 1;
            }

            //set text
            UIFunctions.UpdateAllPartLabels();

            if (step != 0)
            {
                onPartModelChange();
            }
        }
Exemplo n.º 2
0
 public static void ReloadAssets()
 {
     AssetLoader.Init();
     SaberForgeConfig.LoadConfig();
     PartEditor.UpdateSabers();
     UIFunctions.UpdateAllPartLabels();
     UIFunctions.UpdateAllMatLabels();
 }