private void createButons() { buttonsGroup = new GuiContainer(Width, 200); Add(buttonsGroup, 0, 250); // Sell var sellFrame = new GuiContainer(300, 50); sellFrame.Style = Engine.GetStyleCopy("Frame"); buttonsGroup.Add(sellFrame, 0, 1); sellButton = new GuiButton("Sell", 80); sellFrame.Add(sellButton, 10, 0); sellPrice = new GuiCoinAmount(); sellFrame.Add(sellPrice, 150, 0); // ID var IDFrame = new GuiContainer(300, 50); IDFrame.Style = Engine.GetStyleCopy("Frame"); buttonsGroup.Add(IDFrame, 0, 1 + 48); idButton = new GuiButton("ID", 80); IDFrame.Add(idButton, 10, 0); idPrice = new GuiCoinAmount(); IDFrame.Add(idPrice, 150, 0); sellButton.OnMouseClicked += delegate { SellItem(); }; idButton.OnMouseClicked += delegate { IdItem(); }; buttonsGroup.FitToChildren(); }