|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public bool m_ShowDebugLog = false; |
|
|
|
|
|
|
|
public static List<UIWidgetsPanel> panels = new List<UIWidgetsPanel>(); |
|
|
|
public static bool ShowDebugLog { |
|
|
|
get => _ShowDebugLog; |
|
|
|
set { |
|
|
|
foreach (var panel in panels) { |
|
|
|
panel.m_ShowDebugLog = value; |
|
|
|
} |
|
|
|
|
|
|
|
_ShowDebugLog = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static bool _ShowDebugLog = false; |
|
|
|
|
|
|
|
protected void OnEnable() { |
|
|
|
base.OnEnable(); |
|
|
|
D.assert(_renderTexture == null); |
|
|
|
|
|
|
_ptr = UIWidgetsPanel_constructor((IntPtr) _handle, UIWidgetsPanel_entrypoint); |
|
|
|
|
|
|
|
panels.Add(this); |
|
|
|
_ShowDebugLog = m_ShowDebugLog; |
|
|
|
|
|
|
|
var settings = new Dictionary<string, object>(); |
|
|
|
if (fonts != null && fonts.Length > 0) { |
|
|
|
settings.Add("fonts", fontsToObject(fonts)); |
|
|
|
|
|
|
_handle = default; |
|
|
|
|
|
|
|
_disableUIWidgetsPanel(); |
|
|
|
panels.Remove(this); |
|
|
|
|
|
|
|
D.assert(!isolate.isValid); |
|
|
|
base.OnDisable(); |
|
|
|