Beispiel #1
0
 internal static DebugUI.Widget CreateLightingFeatures(DebugDisplaySettingsLighting data) => new DebugUI.BitField
 {
     nameAndTooltip = Strings.LightingFeatures,
     getter         = () => data.DebugLightingFeatureFlagsMask,
     setter         = (value) => data.DebugLightingFeatureFlagsMask = (DebugLightingFeatureFlags)value,
     enumType       = typeof(DebugLightingFeatureFlags),
 };
Beispiel #2
0
 internal static DebugUI.Widget CreateLightingDebugMode(DebugDisplaySettingsLighting data) => new DebugUI.EnumField
 {
     nameAndTooltip = Strings.LightingDebugMode,
     autoEnum       = typeof(DebugLightingMode),
     getter         = () => (int)data.DebugLightingMode,
     setter         = (value) => {},
     getIndex       = () => (int)data.DebugLightingMode,
     setIndex       = (value) => data.DebugLightingMode = (DebugLightingMode)value
 };
Beispiel #3
0
 public SettingsPanel(DebugDisplaySettingsLighting data)
 {
     AddWidget(new DebugUI.Foldout
     {
         displayName = "Lighting Debug Modes",
         isHeader    = true,
         opened      = true,
         children    =
         {
             WidgetFactory.CreateLightingDebugMode(data),
             WidgetFactory.CreateLightingFeatures(data)
         }
     });
 }