mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-09 22:06:09 +08:00
ui: improve the display of PieceInfo
This commit is contained in:
@@ -171,7 +171,7 @@ void GameScene::updatePieceInfo() {
|
||||
m_gameUIManager->setLabel("PieceInfoLabel", true);
|
||||
m_gameUIManager->setLabel("PieceInfoLabel", text);
|
||||
|
||||
m_gameUIManager->setLabel("PieceInfoLabel", mouseX, mouseY);
|
||||
m_gameUIManager->setLabel("PieceInfoLabel", mouseX + 5, mouseY + 5);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -184,8 +184,11 @@ void GameUIManager::setupUIComponents() {
|
||||
0
|
||||
);
|
||||
pieceInfoLabel->setVisible(false);
|
||||
pieceInfoLabel->setBackgroundColor({255, 180, 190, 230});
|
||||
pieceInfoLabel->setRect(120, 0, UI::ButtonSize * 4, UI::ButtonSize * 3);
|
||||
m_labels.emplace(pieceInfoLabel->getNameHash(), std::move(pieceInfoLabel));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user