2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 16:06:08 +00:00

CGuiWidget: Provide names for all function prototypes

Makes parameter introspection nicer with IDEs and also renames ambiguous
"v" names to something more self-descriptive.
This commit is contained in:
Lioncash
2020-03-29 01:49:27 -04:00
parent 0db6f96a17
commit 59fbefbd58
2 changed files with 31 additions and 26 deletions

View File

@@ -122,24 +122,24 @@ public:
const zeus::CColor& GetGeometryColor() const { return xa8_color2; }
void SetIdlePosition(const zeus::CVector3f& pos, bool reapply);
void ReapplyXform();
virtual void SetIsVisible(bool);
void SetIsActive(bool);
virtual void SetIsVisible(bool visible);
void SetIsActive(bool active);
bool GetIsSelectable() const { return xb6_27_isSelectable; }
void SetIsSelectable(bool v) { xb6_27_isSelectable = v; }
void SetMouseActive(bool v) { m_mouseActive = v; }
void SetIsSelectable(bool selectable) { xb6_27_isSelectable = selectable; }
void SetMouseActive(bool mouseActive) { m_mouseActive = mouseActive; }
void ParseBaseInfo(CGuiFrame* frame, CInputStream& in, const CGuiWidgetParms& parms);
void AddChildWidget(CGuiWidget* widget, bool makeWorldLocal, bool atEnd);
void SetVisibility(bool, ETraversalMode);
void RecalcWidgetColor(ETraversalMode);
void SetVisibility(bool visible, ETraversalMode mode);
void RecalcWidgetColor(ETraversalMode mode);
void SetColor(const zeus::CColor& color);
void InitializeRGBAFactor();
CGuiWidget* FindWidget(s16 id);
bool GetIsFinishedLoading();
void DispatchInitialize();
void SetDepthGreater(bool v) { xb6_30_depthGreater = v; }
void SetDepthTest(bool v) { xb6_31_depthTest = v; }
void SetDepthWrite(bool v) { xb7_24_depthWrite = v; }
void SetDepthGreater(bool depthGreater) { xb6_30_depthGreater = depthGreater; }
void SetDepthTest(bool depthTest) { xb6_31_depthTest = depthTest; }
void SetDepthWrite(bool depthWrite) { xb7_24_depthWrite = depthWrite; }
CGuiFrame* GetGuiFrame() const { return xb0_frame; }
};