feat: expose Device and WindowHandle on UiBuilder

This commit is contained in:
goat 2021-01-21 14:16:26 +01:00
parent 3fe6e45b68
commit 0cea6ffe10
4 changed files with 21 additions and 3 deletions

View file

@ -19,6 +19,16 @@ namespace Dalamud.Interface
public class UiBuilder : IDisposable {
private readonly string namespaceName;
/// <summary>
/// The game's active Direct3D device.
/// </summary>
public Device Device => this.dalamud.InterfaceManager.Device;
/// <summary>
/// The game's main window handle.
/// </summary>
public IntPtr WindowHandlePtr => this.dalamud.InterfaceManager.WindowHandlePtr;
/// <summary>
/// The default Dalamud font based on Noto Sans CJK Medium in 17pt - supporting all game languages and icons.
/// </summary>