Please dock the page numbers to the left (next to "LOOT" word), because I have GUI stuff on the top right of the screen
Thank you
Request: Dock page numbers to the left
I will probably do this, but the "Loot" text will show up behind/between. The length of the "Loot" text differs according to client language, so there's no good way to simply offset the buttons after the text.
Seems like you have a sort button issue there as well.
You should really reconsider the placement of whatever that UI widget is.
WhiteThunder
I will probably do this, but the "Loot" text will show up behind/between. The length of the "Loot" text differs according to client language, so there's no good way to simply offset the buttons after the text.
Seems like you have a sort button issue there as well.
You should really reconsider the placement of whatever that UI widget is.
I tried limiting the number of pages, but the page numbers just kept moving right and that's when I realized lol. When it docks to the left, i'll stop just before it gets in the way of anything.
Try the following changes in the code (search for new StatelessLayoutProvider to find this) and let me know if the UI looks OK to you. This will cause the page buttons to overlap the "Loot" text. If you want to move it to the side of that text, you can change the 0 number (e.g., to 50), but keep in mind that it will look different for different language users (which is why I probably won't allow this particular configuration in the plugin).
var buttonLayoutProvider = new StatelessLayoutProvider
{
Options = Layout.Option.AnchorBottom, // <---------- THIS LINE CHANGED ----------
Offset = new Vector2(0, offsetY), // <---------- THIS LINE CHANGED ----------
Size = new Vector2(PageButtonSize, PageButtonSize),
Spacing = PageButtonSpacing
};
for (var i = 0; i < numPages; i++)
{
var visiblePageNumber = i + 1; // <---------- THIS LINE CHANGED ----------
var pageIndex = visiblePageNumber - 1;
var isActivePage = activePageIndex == visiblePageNumber - 1;Even if this is OK for you, I know people will report it as an "issue" to me, so I'm inclined to rather move these buttons to the right side of the container. However, even then, it would overlap with your widget (unless the buttons start at the bottom and flow upward). If there is an option to remove that widget, please pursue that because it's not only conflicting with Backpacks, as seen in your screenshot.
Works great now, thank you sir