Column heading text and glyphs

This commit is contained in:
David Rowe 2016-08-26 17:24:25 +12:00
parent 1147adae78
commit 6de335e1b1
3 changed files with 14 additions and 12 deletions

View file

@ -863,7 +863,7 @@ textarea:enabled[scrolling="true"]::-webkit-resizer {
#entity-list .glyph { #entity-list .glyph {
font-family: HiFi-Glyphs; font-family: HiFi-Glyphs;
font-size: 14px; font-size: 15px;
} }
#search-area { #search-area {
@ -1124,4 +1124,4 @@ input#reset-to-natural-dimensions {
margin-top:5px; margin-top:5px;
font-size:16px; font-size:16px;
display:none; display:none;
} }

View file

@ -56,12 +56,12 @@
<th id="entity-url">File<span class="sort-order"></span></th> <th id="entity-url">File<span class="sort-order"></span></th>
<th id="entity-locked"><span class="glyph">&#xe006;</span><span class="sort-order"></span></th> <th id="entity-locked"><span class="glyph">&#xe006;</span><span class="sort-order"></span></th>
<th id="entity-visible"><span class="glyph">&#xe007;</span><span class="sort-order"></span></th> <th id="entity-visible"><span class="glyph">&#xe007;</span><span class="sort-order"></span></th>
<th id="entity-verticesCount">V</th> <th id="entity-verticesCount">Verts</th>
<th id="entity-texturesCount">T</th> <th id="entity-texturesCount">Texts</th>
<th id="entity-texturesSize">S</th> <th id="entity-texturesSize">T Size</th>
<th id="entity-hasTransparent">T</th> <th id="entity-hasTransparent"><span class="glyph">'</span></th>
<th id="entity-drawCalls">D</th> <th id="entity-drawCalls">Draws</th>
<th colspan="2" id="entity-hasScript">S</th> <th colspan="2" id="entity-hasScript"><span class="glyph">Q</span></th>
</tr> </tr>
</thead> </thead>
<tbody class="list" id="entity-table-body"> <tbody class="list" id="entity-table-body">
@ -74,9 +74,9 @@
<td class="verticesCount"></td> <td class="verticesCount"></td>
<td class="texturesCount"></td> <td class="texturesCount"></td>
<td class="texturesSize"></td> <td class="texturesSize"></td>
<td class="hasTransparent"></td> <td class="hasTransparent glyph"></td>
<td class="drawCalls"></td> <td class="drawCalls"></td>
<td class="hasScript"></td> <td class="hasScript glyph"></td>
<td class="id" style="display: none">ID</td> <td class="id" style="display: none">ID</td>
</tr> </tr>
</tbody> </tbody>

View file

@ -16,6 +16,8 @@ const ASCENDING_STRING = '&#x25BE;';
const DESCENDING_STRING = '&#x25B4;'; const DESCENDING_STRING = '&#x25B4;';
const LOCKED_GLYPH = "&#xe006;"; const LOCKED_GLYPH = "&#xe006;";
const VISIBLE_GLYPH = "&#xe007;"; const VISIBLE_GLYPH = "&#xe007;";
const TRANSPARENCY_GLYPH = "'";
const SCRIPT_GLYPH = "Q";
const DELETE = 46; // Key code for the delete key. const DELETE = 46; // Key code for the delete key.
const MAX_ITEMS = Number.MAX_VALUE; // Used to set the max length of the list of discovered entities. const MAX_ITEMS = Number.MAX_VALUE; // Used to set the max length of the list of discovered entities.
@ -272,9 +274,9 @@ function loaded() {
newEntities[i].locked ? LOCKED_GLYPH : null, newEntities[i].locked ? LOCKED_GLYPH : null,
newEntities[i].visible ? VISIBLE_GLYPH : null, newEntities[i].visible ? VISIBLE_GLYPH : null,
newEntities[i].verticesCount, newEntities[i].texturesCount, newEntities[i].texturesSize, newEntities[i].verticesCount, newEntities[i].texturesCount, newEntities[i].texturesSize,
newEntities[i].hasTransparent ? "T" : null, newEntities[i].hasTransparent ? TRANSPARENCY_GLYPH : null,
newEntities[i].drawCalls, newEntities[i].drawCalls,
newEntities[i].hasScript ? "T" : null); newEntities[i].hasScript ? SCRIPT_GLYPH : null);
} }
updateSelectedEntities(data.selectedIDs); updateSelectedEntities(data.selectedIDs);
resize(); resize();