2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 04:27:42 +00:00

CHudVisorBeamMenu: Dehardcode array sizes

Same behavior, but queries the container for the size rather than
hardcoding it in loop bounds.
This commit is contained in:
Lioncash
2020-03-29 02:45:22 -04:00
parent 413483a996
commit fda08db9b1
2 changed files with 46 additions and 33 deletions

View File

@@ -45,7 +45,7 @@ private:
float x7c_animDur;
bool x80_24_swapBeamControls : 1;
void UpdateMenuWidgetTransform(int, CGuiWidget& w, float);
void UpdateMenuWidgetTransform(size_t idx, CGuiWidget& w, float t);
public:
CHudVisorBeamMenu(CGuiFrame& baseHud, EHudVisorBeamMenu type, const rstl::reserved_vector<bool, 4>& enables);
@@ -53,7 +53,7 @@ public:
void UpdateHudAlpha(float alpha);
void SetIsVisibleGame(bool v);
void SetPlayerHas(const rstl::reserved_vector<bool, 4>& enables);
void SetSelection(int, int, float);
void SetSelection(int selection, int pending, float interp);
};
} // namespace urde