Ejemplo n.º 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),
 };
Ejemplo n.º 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
 };
Ejemplo n.º 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)
         }
     });
 }