mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 06:17:43 +01:00
Update text-related ImGui calls (#2337)
* Update text-related ImGui calls * Use ImU8String for SafeTextColored * Restore wrapped calls * Update MenuItem call * Use ImGui.Text over ImGui.TextUnformatted * Add ImGui.TextColoredWrapped * Obsolete SafeText helpers * Fix obsoleted calls * SafeTextColored didn't exist before imgui-bindings * Remove %% replacements
This commit is contained in:
parent
f0021bc8f9
commit
58fbff7c56
126 changed files with 1433 additions and 1406 deletions
|
|
@ -37,12 +37,12 @@ internal class VfsWidget : IDataWindowWidget
|
|||
var service = Service<ReliableFileStorage>.Get();
|
||||
var dalamud = Service<Dalamud>.Get();
|
||||
|
||||
ImGui.InputInt("Num bytes", ref this.numBytes);
|
||||
ImGui.InputInt("Reps", ref this.reps);
|
||||
ImGui.InputInt("Num bytes"u8, ref this.numBytes);
|
||||
ImGui.InputInt("Reps"u8, ref this.reps);
|
||||
|
||||
var path = Path.Combine(dalamud.StartInfo.WorkingDirectory!, "test.bin");
|
||||
|
||||
if (ImGui.Button("Write"))
|
||||
if (ImGui.Button("Write"u8))
|
||||
{
|
||||
Log.Information("=== WRITING ===");
|
||||
var data = new byte[this.numBytes];
|
||||
|
|
@ -61,7 +61,7 @@ internal class VfsWidget : IDataWindowWidget
|
|||
Log.Information("Took {Ms}ms in total", acc);
|
||||
}
|
||||
|
||||
if (ImGui.Button("Read"))
|
||||
if (ImGui.Button("Read"u8))
|
||||
{
|
||||
Log.Information("=== READING ===");
|
||||
var stopwatch = new Stopwatch();
|
||||
|
|
@ -79,7 +79,7 @@ internal class VfsWidget : IDataWindowWidget
|
|||
Log.Information("Took {Ms}ms in total", acc);
|
||||
}
|
||||
|
||||
if (ImGui.Button("Test Config"))
|
||||
if (ImGui.Button("Test Config"u8))
|
||||
{
|
||||
var config = Service<DalamudConfiguration>.Get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue