Skip to content

Instantly share code, notes, and snippets.

@aldrik
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aldrik/4e44b7bbc975721dbc20 to your computer and use it in GitHub Desktop.
Save aldrik/4e44b7bbc975721dbc20 to your computer and use it in GitHub Desktop.
PA mod: dBetterSystemView
.div_planet_list_item_left {
position: relative;
}
.div_planet_list_item_left [data-metalSpots]::before {
position: absolute;
top: 5px;
left: -1px;
width: 24px;
text-align: center;
font-size: 12px;
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
content: attr(data-metalSpots);
}
.div_planet_list_item_left :not([src$="/gas.png"]) + [data-metalSpots="0"] {
display: none;
}
.div_planet_list_item_left [data-metalSpots="0"]::before {
top: 1px;
font-size: 16px;
content: "\221e" /* infinity */;
}
//Add an extra view for metal spot count
$('.div_planet_list_item_left:last').append('<div data-bind="attr: { \'data-metalSpots\': $data.metalSpots }"></div>');
{
"context": "client",
"identifier": "com.pa.danzel.dBetterSystemView",
"display_name": "Better System View",
"description": "Adds a Metal Spot count to the System View.",
"author": "danzel",
"version": "1.5",
"build": "71937",
"date": "2014/09/16",
"signature": "not yet implemented",
"forum": "https://forums.uberent.com/threads/rel-better-system-view-55089.52922/",
"category": [
"in-game",
"ui"
],
"scenes": {
"live_game_planets": [
"coui://ui/mods/dBetterSystemView/live_game_planets/dBetterSystemView.css",
"coui://ui/mods/dBetterSystemView/live_game_planets/dBetterSystemView.js"
]
},
"id": "dBetterSystemView",
"priority": 100,
"enabled": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment