mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: comment out scrolling child for images
This commit is contained in:
parent
d23ed9020a
commit
f0fe84230c
1 changed files with 39 additions and 33 deletions
|
|
@ -191,6 +191,8 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
private void DrawFooter()
|
||||
{
|
||||
Log.Verbose(ImGui.GetWindowSize().X.ToString());
|
||||
|
||||
var windowSize = ImGui.GetWindowContentRegionMax();
|
||||
var placeholderButtonSize = GetButtonSize("placeholder");
|
||||
|
||||
|
|
@ -562,7 +564,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
this.DrawPluginImages(manifest, index);
|
||||
|
||||
ImGuiHelpers.ScaledDummy(10);
|
||||
ImGuiHelpers.ScaledDummy(5);
|
||||
|
||||
ImGui.Unindent();
|
||||
}
|
||||
|
|
@ -740,7 +742,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
this.DrawPluginImages(manifest, index);
|
||||
|
||||
ImGuiHelpers.ScaledDummy(10);
|
||||
ImGuiHelpers.ScaledDummy(5);
|
||||
|
||||
ImGui.Unindent();
|
||||
}
|
||||
|
|
@ -1019,11 +1021,16 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
return;
|
||||
|
||||
const float thumbFactor = 2.7f;
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.ScrollbarSize, 15);
|
||||
|
||||
var scrollBarSize = 15;
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.ScrollbarSize, scrollBarSize);
|
||||
ImGui.PushStyleColor(ImGuiCol.ScrollbarBg, Vector4.Zero);
|
||||
|
||||
if (ImGui.BeginChild($"plugin{index}ImageScrolling", new Vector2(0, (PluginImageHeight / thumbFactor) + ImGui.GetStyle().ScrollbarSize), false, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoScrollWithMouse | ImGuiWindowFlags.NoBackground))
|
||||
{
|
||||
var width = ImGui.GetWindowWidth();
|
||||
|
||||
// TODO: This doesn't work, seems like a bug
|
||||
// if (ImGui.BeginChild($"plugin{index}ImageScrolling", new Vector2(width, (PluginImageHeight / thumbFactor) + scrollBarSize), false, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoScrollWithMouse | ImGuiWindowFlags.NoBackground))
|
||||
// {
|
||||
if (images.Textures != null && images.Textures is { Length: > 0 })
|
||||
{
|
||||
for (var i = 0; i < images.Textures.Length; i++)
|
||||
|
|
@ -1047,10 +1054,9 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.FramePadding, Vector2.Zero);
|
||||
|
||||
if (ImGui.ImageButton(image.ImGuiHandle, new Vector2(image.Width / thumbFactor, image.Height / thumbFactor)))
|
||||
{
|
||||
if (ImGui.ImageButton(image.ImGuiHandle,
|
||||
new Vector2(image.Width / thumbFactor, image.Height / thumbFactor)))
|
||||
ImGui.OpenPopup(popupId);
|
||||
}
|
||||
|
||||
ImGui.PopStyleVar();
|
||||
|
||||
|
|
@ -1062,8 +1068,8 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
}
|
||||
}
|
||||
|
||||
ImGui.EndChild();
|
||||
}
|
||||
// ImGui.EndChild();
|
||||
// }
|
||||
|
||||
ImGui.PopStyleVar();
|
||||
ImGui.PopStyleColor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue