Finding match improvements

This commit is contained in:
thepaperpilot 2023-02-18 21:37:18 -06:00
parent 9df4161adb
commit 3f21039ba4
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
.game-container {
display: flex;
flex-direction: column;
height: 100%;
}
.modifier-toggle {
padding-right: 10px;
transform: translateY(-1px);

View file

@ -103,7 +103,8 @@ export const main = createLayer("main", function (this: BaseLayer) {
minimizable: false,
display: jsx(() => (
<div
style="display: flex; flex-direction: column; height: 100%"
class="game-container"
style={findingMatch.value ? "pointer-events: none" : ""}
onClick={() => {
selectedCharacter.value = null;
selectedShopItem.value = null;

View file

@ -94,6 +94,9 @@ function setupSocket(socket: Socket<ServerToClientEvents, ClientToServerEvents>)
socket.on("info", message => {
toast.info(message);
if (message === "Failed to start streaming") {
main.findingMatch.value = false;
}
});
socket.on("nickname", nick => {
nickname.value = nick;