fix all warnings and breaking changes for CS (#2061)

This commit is contained in:
wolfcomp 2024-11-05 06:14:51 +01:00 committed by GitHub
parent b570564258
commit 30d56e4d11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 24 additions and 14 deletions

View file

@ -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();
}
}

View file

@ -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");

View file

@ -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)
{

View file

@ -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();