pt dict
This commit is contained in:
@@ -118,7 +118,7 @@ function createLobby()
|
|||||||
{
|
{
|
||||||
const errorDiv = document.createElement('div');
|
const errorDiv = document.createElement('div');
|
||||||
errorDiv.id = 'lobby-error';
|
errorDiv.id = 'lobby-error';
|
||||||
errorDiv.innerHTML = localeString('error-bold') + localeString('error-lobby-name-required');
|
errorDiv.innerHTML = localeString('error-bold') + ' ' + localeString('error-lobby-name-required');
|
||||||
errorDiv.classList.add('red');
|
errorDiv.classList.add('red');
|
||||||
CreateLobbyBlock.appendChild(errorDiv);
|
CreateLobbyBlock.appendChild(errorDiv);
|
||||||
return;
|
return;
|
||||||
@@ -162,10 +162,10 @@ socket.on('lobby-create-error', obj => {
|
|||||||
|
|
||||||
const errorDiv = document.createElement('div');
|
const errorDiv = document.createElement('div');
|
||||||
errorDiv.id = 'lobby-error';
|
errorDiv.id = 'lobby-error';
|
||||||
errorDiv.innerHTML = localeString('error-bold') + localeString('error-creating-lobby') + ' ' + JSON.stringify(args);
|
errorDiv.innerHTML = localeString('error-bold') + ' ' + localeString('error-creating-lobby') + ' ' + JSON.stringify(args);
|
||||||
errorDiv.classList.add('red');
|
errorDiv.classList.add('red');
|
||||||
CreateLobbyBlock.appendChild(errorDiv);
|
CreateLobbyBlock.appendChild(errorDiv);
|
||||||
pageLog(localeString('error-bold') + localeString('error-creating-lobby') + ' ' + JSON.stringify(args));
|
pageLog(localeString('error-bold') + ' ' + localeString('error-creating-lobby') + ' ' + JSON.stringify(args));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ function joinLobby()
|
|||||||
{
|
{
|
||||||
const errorDiv = document.createElement('div');
|
const errorDiv = document.createElement('div');
|
||||||
errorDiv.id = 'lobby-error';
|
errorDiv.id = 'lobby-error';
|
||||||
errorDiv.innerHTML = localeString('error-bold') + localeString('error-lobby-id-required');
|
errorDiv.innerHTML = localeString('error-bold') + ' ' + localeString('error-lobby-id-required');
|
||||||
errorDiv.classList.add('red');
|
errorDiv.classList.add('red');
|
||||||
JoinLobbyBlock.appendChild(errorDiv);
|
JoinLobbyBlock.appendChild(errorDiv);
|
||||||
return;
|
return;
|
||||||
@@ -223,10 +223,10 @@ socket.on('lobby-join-error', obj => {
|
|||||||
|
|
||||||
const errorDiv = document.createElement('div');
|
const errorDiv = document.createElement('div');
|
||||||
errorDiv.id = 'lobby-error';
|
errorDiv.id = 'lobby-error';
|
||||||
errorDiv.innerHTML = localeString('error-bold') + localeString('error-lobby-joining') + ' ' + JSON.stringify(obj);
|
errorDiv.innerHTML = localeString('error-bold') + ' ' + + localeString('error-lobby-joining') + ' ' + JSON.stringify(obj);
|
||||||
errorDiv.classList.add('red');
|
errorDiv.classList.add('red');
|
||||||
JoinLobbyBlock.appendChild(errorDiv);
|
JoinLobbyBlock.appendChild(errorDiv);
|
||||||
pageLog(localeString('error-bold') + localeString('error-lobby-joining') + ' ' + JSON.stringify(obj));
|
pageLog(localeString('error-bold') + ' ' + + localeString('error-lobby-joining') + ' ' + JSON.stringify(obj));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
43998
data/pt-dictionary.dict
Normal file
43998
data/pt-dictionary.dict
Normal file
File diff suppressed because it is too large
Load Diff
@@ -48,6 +48,7 @@ function StartGame(lobby)
|
|||||||
|
|
||||||
// populate users tile drawer
|
// populate users tile drawer
|
||||||
|
|
||||||
|
|
||||||
ActiveGames[lobby.uid] = {
|
ActiveGames[lobby.uid] = {
|
||||||
lobbyuid: lobby.uid,
|
lobbyuid: lobby.uid,
|
||||||
locale: gameowner.locale,
|
locale: gameowner.locale,
|
||||||
@@ -65,6 +66,12 @@ function ExchangeTiles(tileset, tilesToExchange)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// does not alter tileset
|
||||||
|
function SelectTilesFromBag(tileset, num)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
StartGame: StartGame,
|
StartGame: StartGame,
|
||||||
|
|||||||
@@ -143,8 +143,7 @@ function ClientIdentify(socket, args)
|
|||||||
{
|
{
|
||||||
socket.emit('identify-success', {connected: true, user: user});
|
socket.emit('identify-success', {connected: true, user: user});
|
||||||
return;
|
return;
|
||||||
}
|
} else if (status === 'error-taken-user-connection')
|
||||||
else if (status === 'error-taken-user-connection')
|
|
||||||
{
|
{
|
||||||
err.addError(500, 'Internal Server Error', 'error-taken-user-connection');
|
err.addError(500, 'Internal Server Error', 'error-taken-user-connection');
|
||||||
socket.emit('identify-error', err.toError);
|
socket.emit('identify-error', err.toError);
|
||||||
|
|||||||
Reference in New Issue
Block a user