예제 #1
0
        /// <summary>
        /// Set up numSegments field controls
        /// </summary>
        private void setupNumSegmentsControls()
        {
            var numSegmentsField = Fields[nameof(numSegments)];

            numSegmentsField.OnValueModified += onNumSegmentsChange;
            if (numSegmentsField.uiControlEditor is UI_FloatRange numSegmentsControlEditor)
            {
                numSegmentsControlEditor.maxValue = MaxSegments;
            }
            if (numSegmentsField.uiControlFlight is UI_FloatRange numSegmentsControlFlight)
            {
                numSegmentsControlFlight.maxValue = MaxSegments;
            }
            numSegmentsField.guiActive = GLB.TestingMode;
#if NIGHTBUILD
            GlobalsReloader.AddListener(onGlobalsLoaded);
#endif
        }