This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class UIHelperExtensions | |
{ | |
public static UISlider AddSliderWithLabel(this UIHelperBase uIHelper, string text, float min, float max, float step, float defaultValue, OnValueChanged eventCallback) | |
{ | |
float spaceBetweenLabelAndSlider = 8f; | |
float marginBottom = 16f; | |
var sliderControl = uIHelper.AddSlider(text, min, max, step, defaultValue, value => { }) as UISlider; | |
var rootPanel = sliderControl.parent as UIPanel; | |
rootPanel.autoLayout = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Harmony; | |
using ICities; | |
using System; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
namespace ShadowSettingsAdjuster | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Harmony; | |
using ICities; | |
using System; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
namespace ShadowSettingsAdjuster | |
{ | |
/// <summary> |