for(c = 0; c<Letters::blank; c++)
{
list.AddRow().SetData(field, c);
for(c = 0; c<Letters::blank; c++)
{
list.AddRow().SetData(field, c);
- surface.WriteText(x + 5, y, &ch, 1);
+ surface.WriteText(x + 5, y, &ch, 1);
- surface.Area(x + 2, y + 2, x + TileSize - 1, y + TileSize - 1);
+ surface.Area(x + 2, y + 2, x + TileSize - 1, y + TileSize - 1);
- surface.Area(x + 2, y + 2, x + TileSize - 1, y + TileSize - 1);
- }
+ surface.Area(x + 2, y + 2, x + TileSize - 1, y + TileSize - 1);
+ }
surface.HLine(BoardX, BoardX + TileSize * 15, BoardY + y * TileSize);
surface.HLine(BoardX, BoardX + TileSize * 15, BoardY + y * TileSize+1);
}
surface.HLine(BoardX, BoardX + TileSize * 15, BoardY + y * TileSize);
surface.HLine(BoardX, BoardX + TileSize * 15, BoardY + y * TileSize+1);
}
if(y < TileSize && y > -TileSize && moveX + TileSize >= 0 && moveX <= TrayWidth)
{
qsort(ordered, numLetters, sizeof(int), ComparePositions);
if(y < TileSize && y > -TileSize && moveX + TileSize >= 0 && moveX <= TrayWidth)
{
qsort(ordered, numLetters, sizeof(int), ComparePositions);
memmove(ordered + dragPos + 1, ordered + dragPos, (pos - dragPos) * sizeof(int));
ordered[dragPos] = dragLetter;
}
memmove(ordered + dragPos + 1, ordered + dragPos, (pos - dragPos) * sizeof(int));
ordered[dragPos] = dragLetter;
}
for(c = 0; c<numLetters; c++)
ordered[c] = c;
qsort(ordered, numLetters, sizeof(int), ComparePositions);
for(c = 0; c<numLetters; c++)
ordered[c] = c;
qsort(ordered, numLetters, sizeof(int), ComparePositions);
{
this, text = "Play", bevel = false, position = { 520, 540 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
{
this, text = "Play", bevel = false, position = { 520, 540 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!numThrowLetters && gameStarted && turn == playerID)
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!numThrowLetters && gameStarted && turn == playerID)
this, text = "Throw / Pass", bevel = false, position = { 430, 622 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
this, text = "Throw / Pass", bevel = false, position = { 430, 622 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
bool placed = false;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
bool placed = false;
this, text = "Connect", bevel = false, position = { 520, 122 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
this, text = "Connect", bevel = false, position = { 520, 122 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!server)
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!server)
int y = move.tiles[c].y;
scrabble.boardLetters[y][x] = move.tiles[c].letter;
scrabble.blankValues[y][x] = move.tiles[c].blankValue;
int y = move.tiles[c].y;
scrabble.boardLetters[y][x] = move.tiles[c].letter;
scrabble.blankValues[y][x] = move.tiles[c].blankValue;
scrabble.playerScores[move.player] += move.score;
scrabble.scores.AddRow().SetData(scrabble.scoreFields[move.player], scrabble.playerScores[move.player]);
scrabble.Update(null);
memcpy(scrabble.lastBoard, scrabble.boardLetters, sizeof(scrabble.lastBoard));
scrabble.playerScores[move.player] += move.score;
scrabble.scores.AddRow().SetData(scrabble.scoreFields[move.player], scrabble.playerScores[move.player]);
scrabble.Update(null);
memcpy(scrabble.lastBoard, scrabble.boardLetters, sizeof(scrabble.lastBoard));
this, text = "Start", bevel = false, position = { 520, 222 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
this, text = "Start", bevel = false, position = { 520, 222 };
font = { "Arial", 20, true };
opacity = 0; drawBehind = true;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(scrabbleGame)
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(scrabbleGame)
this, text = "Host (Français)", bevel = false, position = { 520, 322 };
font = { "Arial", 16, true };
opacity = 0; drawBehind = true;
this, text = "Host (Français)", bevel = false, position = { 520, 322 };
font = { "Arial", 16, true };
opacity = 0; drawBehind = true;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!scrabbleGame || !scrabbleGame.gameStarted)
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!scrabbleGame || !scrabbleGame.gameStarted)
this, text = "Host (English)", bevel = false, position = { 520, 362 };
font = { "Arial", 16, true };
opacity = 0; drawBehind = true;
this, text = "Host (English)", bevel = false, position = { 520, 362 };
font = { "Arial", 16, true };
opacity = 0; drawBehind = true;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!scrabbleGame || !scrabbleGame.gameStarted)
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(!scrabbleGame || !scrabbleGame.gameStarted)