mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
fix launcher column sorting (Thanks 123DMWM)
This commit is contained in:
parent
0d5aba3e1b
commit
d4196a1a67
1 changed files with 7 additions and 4 deletions
|
@ -34,18 +34,21 @@ namespace Launcher.Gui.Widgets {
|
|||
|
||||
void TrySortColumns(int mouseX) {
|
||||
int x = X;
|
||||
if (mouseX >= x && mouseX < x + ColumnWidths[0] - 10) {
|
||||
if (mouseX >= x && mouseX < x + ColumnWidths[0]) {
|
||||
SortEntries(nameComp, false); return;
|
||||
}
|
||||
x += ColumnWidths[0];
|
||||
|
||||
x += ColumnWidths[0] + 10;
|
||||
if (mouseX >= x && mouseX < x + ColumnWidths[1]) {
|
||||
SortEntries(playerComp, false); return;
|
||||
}
|
||||
x += ColumnWidths[1];
|
||||
|
||||
x += ColumnWidths[1] + 10;
|
||||
if (mouseX >= x && mouseX < x + ColumnWidths[2]) {
|
||||
SortEntries(uptimeComp, false); return;
|
||||
}
|
||||
x += ColumnWidths[2];
|
||||
|
||||
x += ColumnWidths[2] + 10;
|
||||
if (mouseX >= x) {
|
||||
SortEntries(softwareComp, false); return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue