Chess: Improved chess figurines for notation
4
LICENSE
@ -7,6 +7,10 @@
|
||||
│ Textures (radio and speaker) by │
|
||||
│ MCL <temp1@cubesoftware.xyz> (CC BY 4.0 Int'l) │
|
||||
│ │
|
||||
│ Textures (Chess icons for the Chess notation) │
|
||||
│ originally by Wikimedia user Cbnurnett, │
|
||||
│ scaled down and edited by Wuzzy (CC BY-SA 3.0 Unported) │
|
||||
│ │
|
||||
│ Textures (hanging candle) by │
|
||||
│ Wuzzy (CC0) │
|
||||
│ │
|
||||
|
@ -802,7 +802,7 @@ local pieces_str, x = "", 0
|
||||
for i = 1, #pieces do
|
||||
local p = pieces[i]:match(":(%w+_%w+)")
|
||||
if pieces[i]:find(":(%w+)_(%w+)") and not pieces_str:find(p) then
|
||||
pieces_str = pieces_str .. x .. "=" .. p .. ".png,"
|
||||
pieces_str = pieces_str .. x .. "=chess_figurine_" .. p .. ".png,"
|
||||
x = x + 1
|
||||
end
|
||||
end
|
||||
@ -900,9 +900,9 @@ local function get_moves_formstring(meta)
|
||||
if pieceFrom:sub(11,14) == "pawn" then
|
||||
pieceFrom_si_id = MOVES_LIST_SYMBOL_EMPTY
|
||||
else
|
||||
pieceFrom_si_id = pieces_str:match("(%d+)=" .. pieceFrom_s)
|
||||
pieceFrom_si_id = pieces_str:match("(%d+)=chess_figurine_" .. pieceFrom_s)
|
||||
end
|
||||
local pieceTo_si_id = pieceTo_s ~= "" and pieces_str:match("(%d+)=" .. pieceTo_s) or ""
|
||||
local pieceTo_si_id = pieceTo_s ~= "" and pieces_str:match("(%d+)=chess_figurine_" .. pieceTo_s) or ""
|
||||
|
||||
local coordFrom = index_to_notation(from_idx)
|
||||
local coordTo = index_to_notation(to_idx)
|
||||
|
BIN
textures/chess_figurine_bishop_black.png
Normal file
After Width: | Height: | Size: 200 B |
BIN
textures/chess_figurine_bishop_white.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
textures/chess_figurine_king_black.png
Normal file
After Width: | Height: | Size: 210 B |
BIN
textures/chess_figurine_king_white.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
textures/chess_figurine_knight_black.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
textures/chess_figurine_knight_white.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
textures/chess_figurine_pawn_black.png
Normal file
After Width: | Height: | Size: 161 B |
BIN
textures/chess_figurine_pawn_white.png
Normal file
After Width: | Height: | Size: 162 B |
BIN
textures/chess_figurine_queen_black.png
Normal file
After Width: | Height: | Size: 213 B |
BIN
textures/chess_figurine_queen_white.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
textures/chess_figurine_rook_black.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
textures/chess_figurine_rook_white.png
Normal file
After Width: | Height: | Size: 164 B |