mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
feat: swap SplitBox panels on double-click
This commit is contained in:
parent
3d60777a12
commit
aeb8acb7c9
2 changed files with 9 additions and 0 deletions
|
|
@ -59,6 +59,14 @@ void SplitBox::refresh() {
|
|||
}
|
||||
}
|
||||
|
||||
void SplitBox::doubleClick(GUI*, int x, int y) {
|
||||
if (nodes.size() < 2) {
|
||||
return;
|
||||
}
|
||||
std::swap(nodes[0], nodes[1]);
|
||||
refresh();
|
||||
}
|
||||
|
||||
void SplitBox::fullRefresh() {
|
||||
refresh();
|
||||
reposition();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue