Last active
August 29, 2015 14:06
-
-
Save aldrik/4e44b7bbc975721dbc20 to your computer and use it in GitHub Desktop.
PA mod: dBetterSystemView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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 */; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add an extra view for metal spot count | |
$('.div_planet_list_item_left:last').append('<div data-bind="attr: { \'data-metalSpots\': $data.metalSpots }"></div>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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