Merge pull request #248 from lioncash/slider

CGuiSliderGroup: Make use of std::array where applicable
This commit is contained in:
Luke Street 2020-03-18 01:05:30 -04:00 committed by GitHub
commit 44325a5ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include <array>
#include <functional>
#include <memory>
@ -18,7 +19,7 @@ private:
float xc0_roundedCurVal;
float xc4_curVal;
float xc8_increment;
CGuiWidget* xcc_sliderRangeWidgets[2] = {};
std::array<CGuiWidget*, 2> xcc_sliderRangeWidgets{};
std::function<void(CGuiSliderGroup*, float)> xd8_changeCallback;
EState xf0_state = EState::None;
union {