-
Notifications
You must be signed in to change notification settings - Fork 39
xHudFontMeter Progress #648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…method commented to be a stub.
|
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .data |
0.00% | 68.38% | +38 |
| 📈 | .rodata |
0.00% | 46.88% | +26 |
| ✅ | .sbss |
0.00% | 100.00% | +8 |
| 📈 | .sdata2 |
0.00% | 68.75% | +16 |
| 📈 | .text |
0.00% | 40.98% | +572 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | xhud::font_meter_widget::load(xBase&, xDynAsset&, unsigned long) |
0.00% | 4.55% | +4 |
| ✅ | xhud::font_meter_widget::destruct() |
0.00% | 100.00% | +32 |
| ✅ | xhud::font_meter_widget::destroy() |
0.00% | 100.00% | +32 |
| 📈 | xhud::font_meter_widget::update(float) |
0.00% | 60.99% | +300 |
| ✅ | xhud::font_meter_widget::render() |
0.00% | 100.00% | +192 |
| ✅ | xhud::font_meter_asset::type_name() |
0.00% | 100.00% | +12 |
src/SB/Core/x/xHudFontMeter.cpp
Outdated
|
|
||
| void xhud::font_meter_widget::destruct() | ||
| { | ||
| ((xhud::meter_widget*)this)->destruct(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer xhud::meter_widget::destruct() to call a base class virtual function over manually casting the this pointer.
src/SB/Core/x/xHudFontMeter.cpp
Outdated
| (*this).updater(dt); | ||
| this->xf.id = (this->font).id; | ||
| this->xf.space = (this->font).space; | ||
| a = (*this).rc.size.x; | ||
| this->font.w = a; | ||
| this->xf.width = a; | ||
| a = (*this).rc.size.y; | ||
| this->font.h = a; | ||
| this->xf.height = a; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(*this). is the same as this->, you should use the arrow operator here for consistency and readability. Additionally the redundant parentheses should be cleaned up (i.e this->font.id instead of (this->font).id. Same goes for the rest of the additions in this file.
|
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .data |
0.00% | 68.38% | +38 |
| 📈 | .rodata |
0.00% | 46.88% | +26 |
| ✅ | .sbss |
0.00% | 100.00% | +8 |
| 📈 | .sdata2 |
0.00% | 68.75% | +16 |
| 📈 | .text |
0.00% | 40.98% | +572 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | xhud::font_meter_widget::load(xBase&, xDynAsset&, unsigned long) |
0.00% | 4.55% | +4 |
| ✅ | xhud::font_meter_widget::destruct() |
0.00% | 100.00% | +32 |
| ✅ | xhud::font_meter_widget::destroy() |
0.00% | 100.00% | +32 |
| 📈 | xhud::font_meter_widget::update(float) |
0.00% | 60.99% | +300 |
| ✅ | xhud::font_meter_widget::render() |
0.00% | 100.00% | +192 |
| ✅ | xhud::font_meter_asset::type_name() |
0.00% | 100.00% | +12 |
* xHudFontMeter overhead * Method for converting color32u to iColor_tag * Generally okay matches for xHudFontMeter * Seeing if it builds with new commented out * Other build fix (thanks Sway) * Revert, this was fine * My redefinition of the load method was breaking things. Reverted and method commented to be a stub. * Square tweaks Work DO NOT PR xEntBoulder progress xEntBoulder progress Mostly match xEntBoulder_Update Match more stuff
* xHudFontMeter overhead * Method for converting color32u to iColor_tag * Generally okay matches for xHudFontMeter * Seeing if it builds with new commented out * Other build fix (thanks Sway) * Revert, this was fine * My redefinition of the load method was breaking things. Reverted and method commented to be a stub. * Square tweaks Work DO NOT PR xEntBoulder progress xEntBoulder progress Mostly match xEntBoulder_Update Match more stuff
* xHudFontMeter overhead * Method for converting color32u to iColor_tag * Generally okay matches for xHudFontMeter * Seeing if it builds with new commented out * Other build fix (thanks Sway) * Revert, this was fine * My redefinition of the load method was breaking things. Reverted and method commented to be a stub. * Square tweaks
* xHudFontMeter overhead * Method for converting color32u to iColor_tag * Generally okay matches for xHudFontMeter * Seeing if it builds with new commented out * Other build fix (thanks Sway) * Revert, this was fine * My redefinition of the load method was breaking things. Reverted and method commented to be a stub. * Square tweaks Work DO NOT PR xEntBoulder progress xEntBoulder progress Mostly match xEntBoulder_Update Match more stuff
Useful groundwork for xHudFontMeter, all methods for this file.