mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-24 03:39:56 -04:00
remove updateBar calls from slider stuff (its called implicitly by setValue)
This commit is contained in:
parent
f0c75d113a
commit
9b361b11b8
5 changed files with 0 additions and 8 deletions
loader/src/ui
|
@ -227,7 +227,6 @@ void ModsStatusNode::updateState() {
|
|||
|
||||
m_progressBar->setVisible(true);
|
||||
m_progressBar->setValue(percentage / 100.f);
|
||||
m_progressBar->updateBar();
|
||||
} break;
|
||||
}
|
||||
|
||||
|
|
|
@ -273,7 +273,6 @@ void ModItem::updateState() {
|
|||
m_downloadWaiting->setVisible(false);
|
||||
m_downloadBarContainer->setVisible(true);
|
||||
m_downloadBar->setValue(prog->percentage / 100.f);
|
||||
m_downloadBar->updateBar();
|
||||
}
|
||||
else {
|
||||
m_downloadBarContainer->setVisible(false);
|
||||
|
|
|
@ -333,7 +333,6 @@ bool ModList::init(ModListSource* src, CCSize const& size) {
|
|||
m_statusLoadingBar->setID("status-loading-bar");
|
||||
m_statusLoadingBar->m_touchLogic->m_thumb->setVisible(false);
|
||||
m_statusLoadingBar->setValue(0);
|
||||
m_statusLoadingBar->updateBar();
|
||||
m_statusLoadingBar->setAnchorPoint({ 0, 0 });
|
||||
m_statusContainer->addChild(m_statusLoadingBar);
|
||||
|
||||
|
@ -617,7 +616,6 @@ void ModList::showStatus(ModListStatus status, std::string const& message, std::
|
|||
// Update progress bar
|
||||
if (auto per = std::get_if<ModListProgressStatus>(&status)) {
|
||||
m_statusLoadingBar->setValue(per->percentage / 100.f);
|
||||
m_statusLoadingBar->updateBar();
|
||||
}
|
||||
|
||||
// Update layout to automatically rearrange everything neatly in the status
|
||||
|
|
|
@ -170,7 +170,6 @@ void IntSettingNode::updateSlider() {
|
|||
setting()->castDefinition(),
|
||||
m_uncommittedValue
|
||||
));
|
||||
m_slider->updateBar();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -255,7 +254,6 @@ void FloatSettingNode::updateSlider() {
|
|||
setting()->castDefinition(),
|
||||
m_uncommittedValue
|
||||
));
|
||||
m_slider->updateBar();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -146,7 +146,6 @@ bool ColorPickPopup::setup(ccColor4B const& color, bool isRGBA) {
|
|||
Slider::create(this, menu_selector(ColorPickPopup::onOpacitySlider), .75f);
|
||||
m_opacitySlider->setPosition(winSize.width / 2 - 30.f, winSize.height / 2 - 95.f);
|
||||
m_opacitySlider->setValue(color.a / 255.f);
|
||||
m_opacitySlider->updateBar();
|
||||
m_mainLayer->addChild(m_opacitySlider);
|
||||
|
||||
m_opacityInput = InputNode::create(60.f, "0.00");
|
||||
|
@ -187,7 +186,6 @@ void ColorPickPopup::updateState(CCNode* except) {
|
|||
}
|
||||
if (m_opacitySlider) {
|
||||
m_opacitySlider->setValue(m_color.a / 255.f);
|
||||
m_opacitySlider->updateBar();
|
||||
}
|
||||
if (m_picker != except) {
|
||||
m_picker->setDelegate(nullptr);
|
||||
|
|
Loading…
Add table
Reference in a new issue