mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
fix all warnings and breaking changes for CS (#2061)
This commit is contained in:
parent
b570564258
commit
30d56e4d11
10 changed files with 24 additions and 14 deletions
|
|
@ -300,7 +300,7 @@ internal unsafe class UiDebug
|
|||
{
|
||||
ImGui.Image(
|
||||
new IntPtr(kernelTexture->D3D11ShaderResourceView),
|
||||
new Vector2(kernelTexture->Width, kernelTexture->Height));
|
||||
new Vector2(kernelTexture->ActualWidth, kernelTexture->ActualHeight));
|
||||
ImGui.TreePop();
|
||||
}
|
||||
}
|
||||
|
|
@ -312,8 +312,8 @@ internal unsafe class UiDebug
|
|||
ImGui.Image(
|
||||
new IntPtr(textureInfo->AtkTexture.KernelTexture->D3D11ShaderResourceView),
|
||||
new Vector2(
|
||||
textureInfo->AtkTexture.KernelTexture->Width,
|
||||
textureInfo->AtkTexture.KernelTexture->Height));
|
||||
textureInfo->AtkTexture.KernelTexture->ActualWidth,
|
||||
textureInfo->AtkTexture.KernelTexture->ActualHeight));
|
||||
ImGui.TreePop();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ internal class FateTableWidget : IDataWindowWidget
|
|||
}
|
||||
|
||||
ImGui.TableNextColumn(); // HasExpBonus
|
||||
ImGui.TextUnformatted(fate.HasExpBonus.ToString());
|
||||
ImGui.TextUnformatted(fate.HasBonus.ToString());
|
||||
|
||||
ImGui.TableNextColumn(); // Position
|
||||
DrawCopyableText(fate.Position.ToString(), "Click to copy Position");
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ internal class ContextMenuAgingStep : IAgingStep
|
|||
OnClicked = (IMenuItemClickedArgs a) =>
|
||||
{
|
||||
SeString name;
|
||||
uint count;
|
||||
int count;
|
||||
var targetItem = (a.Target as MenuTargetInventory)!.TargetItem;
|
||||
if (targetItem is { } item)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ public abstract class Window
|
|||
|
||||
this.IsFocused = false;
|
||||
|
||||
if (doSoundEffects && !this.DisableWindowSounds) UIModule.PlaySound(this.OnCloseSfxId, 0, 0, 0);
|
||||
if (doSoundEffects && !this.DisableWindowSounds) UIGlobals.PlaySoundEffect(this.OnCloseSfxId);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
@ -307,7 +307,7 @@ public abstract class Window
|
|||
this.internalLastIsOpen = this.internalIsOpen;
|
||||
this.OnOpen();
|
||||
|
||||
if (doSoundEffects && !this.DisableWindowSounds) UIModule.PlaySound(this.OnOpenSfxId, 0, 0, 0);
|
||||
if (doSoundEffects && !this.DisableWindowSounds) UIGlobals.PlaySoundEffect(this.OnOpenSfxId);
|
||||
}
|
||||
|
||||
this.PreDraw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue