Zircon icon indicating copy to clipboard operation
Zircon copied to clipboard

Confirmation for Sorting Button

Open phoenixvdp opened this issue 1 year ago • 0 comments

OCD is real... I think a small check for this is warranted lol

private void SortButton_MouseClick(object sender, MouseEventArgs e) { if (GameScene.Game.Observer) return;

DXMessageBox box = new DXMessageBox("Are you sure you want to sort your inventory? This action cannot be undone.", "Confirm Sort", DXMessageBoxButtons.YesNo);

box.YesButton.MouseClick += (o1, e1) =>
{
    // User confirmed, proceed with sorting
    C.ItemSort packet = new C.ItemSort { Grid = GridType.Inventory };
    CEnvir.Enqueue(packet);
};

}

phoenixvdp avatar Feb 26 '24 11:02 phoenixvdp