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>
26 lines
927 B
C#
26 lines
927 B
C#
using System.Runtime.InteropServices;
|
|
using Decal.Interop.Controls;
|
|
using Decal.Interop.Inject;
|
|
|
|
namespace Decal.DecalControls
|
|
{
|
|
[ComVisible(true)]
|
|
[Guid("4887101C-A9F9-495B-921B-EF22822CFB97")]
|
|
[ClassInterface(ClassInterfaceType.None)]
|
|
[ComSourceInterfaces("Decal.Interop.Inject.IControlEvents\0\0")]
|
|
[ProgId("DecalControls.StaticText")]
|
|
public class StaticTextImpl : ControlBase, IStatic
|
|
{
|
|
public event IControlEvents_DestroyEventHandler Destroy;
|
|
|
|
private IFontCache _font;
|
|
private string _text = "";
|
|
private int _textColor;
|
|
|
|
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(); } }
|
|
|
|
protected override void OnDestroy() => Destroy?.Invoke(ID);
|
|
}
|
|
}
|