Ver a proveniência

Merge branch '1794-online-count' into 'master'

Add player count to online list

Closes #1794

See merge request Isleward/isleward!551
tags/v0.10.0^2
Big Bad Waffle há 2 anos
ascendente
cometimento
f73ddaf59a
2 ficheiros alterados com 6 adições e 2 eliminações
  1. +4
    -0
      src/client/ui/templates/online/online.js
  2. +2
    -2
      src/client/ui/templates/online/template.html

+ 4
- 0
src/client/ui/templates/online/online.js Ver ficheiro

@@ -90,6 +90,10 @@ define([
},

build: function () {
let headingText = this.el.find('.heading-text');
let playerCount = this.onlineList.length;
headingText.html(`online players (${playerCount})`);

let container = this.el.find('.list');
container
.children(':not(.heading)')


+ 2
- 2
src/client/ui/templates/online/template.html Ver ficheiro

@@ -1,7 +1,7 @@
<div class="uiOnline hasBorderShadow">
<div class="heading">
<div class="heading-text">online players</div>
</div>
<div class="heading-text">online players</div>
</div>
<div class="bottom">
<div class="list">
<div class="heading">


Carregando…
Cancelar
Guardar