MCPcopy Create free account
hub / github.com/axmolengine/axmol / setScale9Scale

Method setScale9Scale

core/ui/UILoadingBar.cpp:391–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void LoadingBar::setScale9Scale()
392{
393 float width = (float)(_percent) / 100.0f * _totalLength;
394 _barRenderer->setPreferredSize(Vec2(width, _contentSize.height));
395}
396
397std::string LoadingBar::getDescription() const
398{

Callers 1

Calls 2

Vec2Function · 0.50
setPreferredSizeMethod · 0.45

Tested by

no test coverage detected