Skip to content
Snippets Groups Projects
Commit 6bedfe8b authored by kopareigns's avatar kopareigns
Browse files

display fix

parent c04fea04
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ window.renderFamilyTree = function(slaves, filterID) {
node.append('circle')
.attr('r', function(d){ return d.r })
.attr('stroke', function(d) {
if(d.id == filterID) {
if(d.ID == filterID) {
return '#ffff20';
} else {
return '#5a5a5a';
......@@ -131,8 +131,14 @@ window.renderFamilyTree = function(slaves, filterID) {
.text(function(d) {
var ssym;
if(d.ID == -1) {
ssym = '';
} else if(d.dick > 0 && d.vagina > -1) {
if(d.dick == 1 && d.vagina == 1) {
ssym = '☿'
} else if (d.dick == 1) {
ssym = '♂';
} else if (d.vagina == 1) {
ssym = '♀';
}
} else if (d.dick > 0 && d.vagina > -1) {
ssym = '☿'
} else if (d.dick > 0) {
ssym = '♂';
......@@ -384,7 +390,7 @@ window.buildFamilyTree = function(slaves = State.variables.slaves, filterID) {
}
node_lookup[char_id] = family_graph.nodes.length;
var char_obj = {
id: char_id,
ID: char_id,
name: character.slaveName,
dick: character.dick,
unborn: !!unborn[char_id],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment