mirror of
https://github.com/thepaperpilot/Super-Auto-Coots.git
synced 2024-11-22 08:31:34 +00:00
Finding match improvements
This commit is contained in:
parent
9df4161adb
commit
3f21039ba4
3 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
.game-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.modifier-toggle {
|
||||
padding-right: 10px;
|
||||
transform: translateY(-1px);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue