Make the opponent level matter in the cup
This commit is contained in:
1 parent
058636fae3
commit
bfc70d7388
8 files changed
+80
-19
No files matched your search
+5
-1
@@ -2368,7 +2368,7 @@ function modalRows(m, inner, skipBody) {
|
||||
const rows = [];
|
||||
const push = r => { rows.push(r); return r; };
|
||||
if (m.foe) {
|
||||
push({ kind: 'split', h: 26 });
|
||||
push({ kind: 'split', h: m.foe.peer ? 38 : 26 });
|
||||
const sub = [];
|
||||
for (const l of m.foe.sub || []) sub.push(...wrapText(l, F(8, 0), inner));
|
||||
if (sub.length) push({ kind: 'text', lines: sub, dim: true, h: sub.length * 12 + 2 });
|
||||
@@ -2494,6 +2494,10 @@ function drawModal(m) {
|
||||
shadowText('LEVEL ' + f.lvl, inX, y + 9, f.lvl > f.mine ? col : UI.pick);
|
||||
ctx.textAlign = 'right';
|
||||
shadowText('YOURS ' + f.mine, x + L.boxW - pad, y + 9, UI.dim);
|
||||
if (f.peer) {
|
||||
ctx.font = F(8, 700); ctx.textAlign = 'left';
|
||||
shadowText(f.peer, inX, y + 25, f.lvl > f.mine ? col : UI.pick);
|
||||
}
|
||||
ctx.textAlign = 'left';
|
||||
}
|
||||
y += r.h + MODAL_GAP;
|
||||
|
||||
Reference in new issue
Block a user