Skip to content

Commit

Permalink
skill display tweak - show skill rank + remove entitylink prisoner te…
Browse files Browse the repository at this point in the history
…xt (escaped from the prisons of)
  • Loading branch information
Kromtec committed Jan 11, 2016
1 parent fb13cdd commit da94f08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LegendsViewer/Controls/HTML/HTMLPrinter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected string SkillToString(SkillDescription desc)
+ "' title='" + desc.Token
+ " | " + desc.Rank
+ " | " + desc.Points
+ "'>" + desc.Name + "</li>";
+ "'>" + desc.Rank + " "+ desc.Name + "</li>";
}

protected void PrintPopulations(List<Population> populations)
Expand Down
3 changes: 2 additions & 1 deletion LegendsViewer/Controls/HTML/Styles/legends.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ td {
height: 20px;
position: relative;
overflow: hidden;
cursor: default;
}

.skills li:before {
Expand Down Expand Up @@ -175,7 +176,7 @@ li.unkno:before {
text-shadow: -1px 0 0 #000, 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000;
}

.skills li:hover, li.unk, li.non {background-color: #ffffff;}
.skills li:hover, li.unk, li.non {opacity:0.8;}
li.stn, li.pmp {background-color: #c0c0c0;}
li.doc, li.msc {background-color: #c49e9f;}
li.frm, li.mlk {background-color: #dab587;}
Expand Down
2 changes: 1 addition & 1 deletion LegendsViewer/Legends/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,7 @@ public override string Print(bool link = true, DwarfObject pov = null)
switch (LinkType)
{
case HfEntityLinkType.Prisoner:
eventString += " was released from ";
eventString += " escaped from the prisons of ";
break;
case HfEntityLinkType.Slave:
eventString += " fled from ";
Expand Down

0 comments on commit da94f08

Please sign in to comment.