mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-24 08:19:49 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
35 lines
606 B
C#
35 lines
606 B
C#
using Sandbox.UI;
|
|
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace Editor
|
|
{
|
|
/// <summary>
|
|
/// A generic widget.
|
|
/// </summary>
|
|
public partial class Widget
|
|
{
|
|
bool _debugModeEnabled;
|
|
|
|
/// <summary>
|
|
/// Enable debug mode on this widget.
|
|
/// </summary>
|
|
public bool DebugModeEnabled
|
|
{
|
|
get => _debugModeEnabled;
|
|
|
|
set
|
|
{
|
|
if ( _debugModeEnabled == value ) return;
|
|
_debugModeEnabled = value;
|
|
Update();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// If true then this widget has a debug mode that can be activated
|
|
/// </summary>
|
|
public virtual bool ProvidesDebugMode => false;
|
|
}
|
|
}
|