Пример #1
0
        /// <summary>Renders a slider to Unity Mod Manager for the custom mundane crafting rate.</summary>
        /// <param name="currentSetting">Current setting to display on the control</param>
        /// <returns>The selection that the UI currently has registered</returns>
        public int Evaluate_MundaneCraftingRateSlider(int currentSetting)
        {
            var maxMundaneRate = ((currentSetting + 10) / 10) * 10;

            return(UmmUiRenderer.RenderIntSlider("Mundane Item Crafting Rate", currentSetting, 1, maxMundaneRate));
        }
Пример #2
0
        /// <summary>Renders a slider to Unity Mod Manager for the custom magic crafting rate.</summary>
        /// <param name="currentSetting">Current setting to display on the control</param>
        /// <returns>The selection that the UI currently has registered</returns>
        public int Evaluate_MagicCraftingRateSlider(int currentSetting)
        {
            var maxMagicRate = ((currentSetting + 1000) / 1000) * 1000;

            return(UmmUiRenderer.RenderIntSlider("Magic Item Crafting Rate", currentSetting, 1, maxMagicRate));
        }