Alt title display on the character setup menu now looks different. (#9595)

Now displays like this instead of wasting an extra table row per job:
This commit is contained in:
mikomyazaki
2020-08-12 19:59:27 +01:00
committed by GitHub
parent b0ddc5731b
commit 16c17f0e08
2 changed files with 8 additions and 4 deletions

View File

@@ -192,6 +192,8 @@
if(S.name in job.blacklisted_species)
dat += "<del>[dispRank]</del></td><td><b> \[SPECIES RESTRICTED]</b></td></tr>"
continue
if(job.alt_titles && (LAZYLEN(pref.GetValidTitles(job)) > 1))
dispRank = "<span style='background-color: [hex2cssrgba(lastJob.selection_color, 0.4)];' width='60%' align='center'>&nbsp<a href='?src=\ref[src];select_alt_title=\ref[job]'>\[[pref.GetPlayerAltTitle(job)]\]</a></span>"
if((pref.job_civilian_low & ASSISTANT) && (rank != "Assistant"))
dat += "<font color=orange>[dispRank]</font></td><td></td></tr>"
continue
@@ -209,8 +211,6 @@
dat += " <font color=green>\[Yes]</font>"
else
dat += " <font color=red>\[No]</font>"
if(job.alt_titles) //Blatantly cloned from a few lines down.
dat += "</a></td></tr><tr style='background-color: [hex2cssrgba(lastJob.selection_color, 0.4)];'><td width='60%' align='center'>&nbsp</td><td><a href='?src=\ref[src];select_alt_title=\ref[job]'>\[[pref.GetPlayerAltTitle(job)]\]</a></td></tr>"
dat += "</a></td></tr>"
continue
@@ -222,8 +222,6 @@
dat += " <font color=orange>\[Low]</font>"
else
dat += " <font color=red>\[NEVER]</font>"
if(job.alt_titles && (LAZYLEN(pref.GetValidTitles(job)) > 1))
dat += "</a></td></tr><tr style='background-color: [hex2cssrgba(lastJob.selection_color, 0.4)];'><td width='60%' align='center'>&nbsp</td><td><a href='?src=\ref[src];select_alt_title=\ref[job]'>\[[pref.GetPlayerAltTitle(job)]\]</a></td></tr>"
dat += "</a></td></tr>"
dat += "</td'></tr></table>"