Graphic upgrade 2

This commit is contained in:
GRL 2021-07-13 11:00:32 +02:00
parent e2e94c11ff
commit f7127bfb5a
7 changed files with 112 additions and 34 deletions

View file

@ -100,3 +100,19 @@ function createChatMessagesStore() {
};
}
export const chatMessagesStore = createChatMessagesStore();
function createChatSubMenuVisibilityStore() {
const { subscribe, update } = writable<string>("");
return {
subscribe,
openSubMenu(playerName: string, index: number) {
const id = playerName + index;
update((oldValue) => {
return oldValue === id ? "" : id;
});
},
};
}
export const chatSubMenuVisbilityStore = createChatSubMenuVisibilityStore();