WKLib
0.2.3
A modding library for White Knuckle
Loading...
Searching...
No Matches
QuickPopupWindow.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Text;
4
using
Imui.Controls;
5
using
Imui.Core;
6
7
namespace
WKLib.Core.UI.Windows
;
8
9
internal
static
class
QuickPopupWindow
10
{
11
public
static
void
Draw(ImGui gui,
string
text)
12
{
13
if
(text.Trim() ==
string
.Empty)
14
return
;
15
16
var textSize = gui.MeasureTextSize(text);
17
gui.BeginWindow(
"Popup"
,
new
ImSize(textSize.x * 1.5f, gui.GetRowHeight() * 5f), ImWindowFlag.None);
18
19
gui.Text(text);
20
21
gui.EndWindow();
22
}
23
}
WKLib.Core.UI.Windows
Definition
ChangeLogWindow.cs:5
Core
UI
Windows
QuickPopupWindow.cs
Generated by
1.12.0