GUI scrollbar updates (#447)

This commit is contained in:
Turánszki János
2022-05-19 22:42:49 +02:00
committed by GitHub
parent 782c326652
commit f7d28b1127
28 changed files with 508 additions and 172 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ void SoundWindow::Create(EditorComponent* editor)
SetSize(XMFLOAT2(440, 220));
float x = 20;
float y = 10;
float y = 0;
float hei = 18;
float step = hei + 2;
reverbComboBox.Create("Reverb: ");
reverbComboBox.SetPos(XMFLOAT2(x + 80, y += step));
reverbComboBox.SetPos(XMFLOAT2(x + 80, y));
reverbComboBox.SetSize(XMFLOAT2(180, hei));
reverbComboBox.OnSelect([&](wi::gui::EventArgs args) {
wi::audio::SetReverb((wi::audio::REVERB_PRESET)args.iValue);