Browse Source

[changed] Split up the cool kids and jocks and split gopniks from after Anushka so they'll fit on lower res screens, plus centred everything so it looks a bit neater

Kevin_Smarts 2 years ago
parent
commit
fc2026445f
1 changed files with 20 additions and 12 deletions
  1. 20 12
      locations/pav_disco_coolkids.qsrc

+ 20 - 12
locations/pav_disco_coolkids.qsrc

@@ -28,25 +28,32 @@ if $ARGS[0] = 'classmates':
 	end
 
 	'<center><b><font color="maroon">Disco</font></b></center>'
-	'<table><TR><TD>Most of the cool kids and jocks are gathered around some tables and couches near the dance floor while the others dance. Some of the other students are hanging around near them or are out dancing.</TD></table>'
+	'<center><table><TR><TD>Most of the cool kids and jocks are gathered around some tables and couches near the dance floor while the others dance. Some of the other students are hanging around near them or are out dancing.</TD></table></center>'
 
-	'<table border=0 cellspacing=0 cellpadding=5><TR>'
+	'<center><table border=0 cellspacing=0 cellpadding=5><TR>'
 	i = 1
 	:discopop_loop
-		if (npc_grupTipe['A<<i>>'] = 1 or npc_grupTipe['A<<i>>'] = 2 or $npc_nickname['A<<i>>'] = 'Natasha') and discoenable['A<<i>>'] = 1:
-			if npc_grupTipe['A<<i>>'] = 2:
-				*p '<TD><a href="exec: i = <<i>> & gt ''pav_disco_coolkids'', ''jocks_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></br><<$npc_firstname[''A<<i>>'']>></TD>'
-			else
-				*p '<TD><a href="exec: i = <<i>> & gt ''pav_disco_coolkids'', ''cool_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></br><<$npc_firstname[''A<<i>>'']>></TD>'
-			end
+		if (npc_grupTipe['A<<i>>'] = 1 or $npc_nickname['A<<i>>'] = 'Natasha') and discoenable['A<<i>>'] = 1:
+			*p '<TD><a href="exec: i = <<i>> & gt ''pav_disco_coolkids'', ''cool_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></br><<$npc_firstname[''A<<i>>'']>></TD>'
 		end
 		i += 1
 	if i <= aarraynumber:jump 'discopop_loop'
-	'</table>'
 
-	'<table><TR><TD>The gopniks are lounging in the darkest corner of the hall. They''re mostly keeping to themselves, but a few of them are out dancing.</TD></table>'
+	'<TR>'
+
+	i = 1
+	:discojock_loop
+		if npc_grupTipe['A<<i>>'] = 2 and discoenable['A<<i>>'] = 1:
+			*p '<TD><a href="exec: i = <<i>> & gt ''pav_disco_coolkids'', ''jocks_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></br><<$npc_firstname[''A<<i>>'']>></TD>'
+		end
+		i += 1
+	if i <= aarraynumber:jump 'discojock_loop'
+	
+	'</table></center>'
+
+	'<center><table><TR><TD>The gopniks are lounging in the darkest corner of the hall. They''re mostly keeping to themselves, but a few of them are out dancing.</TD></table></center>'
 	
-	'<table border=0 cellspacing=0 cellpadding=5><TR>'
+	'<center><table border=0 cellspacing=0 cellpadding=5><TR>'
 	i = 1
 	:discogop_loop
 		if npc_grupTipe['A<<i>>'] = 4 and discoenable['A<<i>>'] = 1:
@@ -54,11 +61,12 @@ if $ARGS[0] = 'classmates':
 			$loopname = $lcase($loopname)
 			*p '<TD><a href="exec: i = <<i>> & gt ''pav_disco_coolkids'', ''gop_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></br><<$npc_firstname[''A<<i>>'']>></TD>'
 		end
+		if i = 144: '<TR>'
 		i += 1
 	if i <= aarraynumber:jump 'discogop_loop'
 	
 	if soniaPS > 0 and discoenable['A25'] = 1: *p '<a href="exec:gt ''pav_disco_coolkids'', ''sonia_outcast''"><img  height="100" src="images/characters/shared/headshots_main/25.jpg"></a><br>'
-	'</table>'
+	'</table></center>'
 	*nl
 	
 	!!display of their headshots in a table like the above $args has.