Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarCharSelection.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-05-23 11:43:15 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-05-23 11:43:15 +1000
commitf42031dc9ee89d58232442320ae44447cd0acda5 (patch)
tree681a56d2bb25ee5e26ebd68041e1b78acf0f9f99 /source/frontend/StarCharSelection.cpp
parent3addf35a2c421bd99d5f081bb940253a8fdc68cc (diff)
make text anchors in LargeCharPlate configurable
also gave the char previews some animation!
Diffstat (limited to 'source/frontend/StarCharSelection.cpp')
-rw-r--r--source/frontend/StarCharSelection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/frontend/StarCharSelection.cpp b/source/frontend/StarCharSelection.cpp
index aac3e89..ba750b6 100644
--- a/source/frontend/StarCharSelection.cpp
+++ b/source/frontend/StarCharSelection.cpp
@@ -77,7 +77,9 @@ void CharSelectionPane::updateCharacterPlates() {
auto updatePlayerLine = [this](String name, unsigned scrollPosition) {
auto charSelector = fetchChild<LargeCharPlateWidget>(name);
if (auto playerUuid = m_playerStorage->playerUuidAt(scrollPosition)) {
- charSelector->setPlayer(m_playerStorage->loadPlayer(*playerUuid));
+ auto player = m_playerStorage->loadPlayer(*playerUuid);
+ player->humanoid()->setFacingDirection(Direction::Right);
+ charSelector->setPlayer(player);
charSelector->enableDelete([this, playerUuid](Widget*) { m_deleteCallback(*playerUuid); });
} else {
charSelector->setPlayer(PlayerPtr());