All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using System.Runtime.InteropServices;
|
|
using Decal.Interop.Controls;
|
|
using Decal.Interop.Inject;
|
|
|
|
namespace Decal.DecalControls
|
|
{
|
|
[ComVisible(true)]
|
|
[Guid("5AE37451-F79C-478A-834E-EDCF95F01B0E")]
|
|
[ClassInterface(ClassInterfaceType.None)]
|
|
[ComSourceInterfaces("Decal.Interop.Controls.ICheckboxEvents\0\0")]
|
|
[ProgId("DecalControls.Checkbox")]
|
|
public class CheckboxImpl : ControlBase, ICheckbox
|
|
{
|
|
public event ICheckboxEvents_DestroyEventHandler Destroy;
|
|
public event ICheckboxEvents_ChangeEventHandler Change;
|
|
|
|
private IFontCache _font;
|
|
private string _text = "";
|
|
private int _textColor;
|
|
private bool _checked;
|
|
private bool _rightToLeft;
|
|
|
|
public IFontCache Font { get => _font; set { _font = value; Invalidate(); } }
|
|
public string Text { get => _text; set { _text = value; Invalidate(); } }
|
|
public int TextColor { get => _textColor; set { _textColor = value; Invalidate(); } }
|
|
|
|
public bool Checked
|
|
{
|
|
get => _checked;
|
|
set
|
|
{
|
|
if (_checked != value)
|
|
{
|
|
_checked = value;
|
|
Invalidate();
|
|
Change?.Invoke(ID, _checked);
|
|
}
|
|
}
|
|
}
|
|
|
|
public bool RightToLeft { get => _rightToLeft; set { _rightToLeft = value; Invalidate(); } }
|
|
|
|
protected override void OnDestroy() => Destroy?.Invoke(ID);
|
|
}
|
|
}
|