MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / updateBottomButton

Method updateBottomButton

source/frontend/StarChat.cpp:449–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void Chat::updateBottomButton() {
450 auto assets = Root::singleton().assets();
451 auto bottomConfig = assets->json("/interface/chat/chat.config:bottom");
452 if (m_historyOffset == 0)
453 m_bottomButton->setImages(bottomConfig.get("atbottom").getString("base"), bottomConfig.get("atbottom").getString("hover"));
454 else
455 m_bottomButton->setImages(bottomConfig.get("scrolling").getString("base"), bottomConfig.get("scrolling").getString("hover"));
456}
457
458}

Callers

nothing calls this directly

Calls 6

singletonClass · 0.85
assetsMethod · 0.80
jsonMethod · 0.80
getStringMethod · 0.80
setImagesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected