Bläddra i källkod

Re-jigged disco menu with menu from school.

Jack Truman 2 år sedan
förälder
incheckning
2031b35d42
1 ändrade filer med 25 tillägg och 8 borttagningar
  1. 25 8
      build.sh

+ 25 - 8
build.sh

@@ -30,21 +30,31 @@ if $ARGS[0] = 'classmates':
 	'<center><b><font color="maroon">Disco</font></b></center>'
 	'<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>'
 
-	'<center><table border=0 cellspacing=0 cellpadding=5><TR>'
+	'<center><table cellspacing="3">'
+	'<tr>'
 	i = 1
+	killvar 'table_count'
+	table_count = 0
 	:discopop_loop
+		
 		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>'
+			table_count += 1
+			*p '<td bgcolor=<<$bcolor2>> align="center"><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>'
+			if (table_count mod 6) = 0 :
+				*p '</tr><tr>'
+			end
 		end
 		i += 1
 	if i <= aarraynumber:jump 'discopop_loop'
 
-	'<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>'
+			*p '<td bgcolor=<<$bcolor2>> align="center"><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>'
+			table_count += 1
+			if (table_count mod 6) = 0 :
+				*p '</tr><tr>'
+			end
 		end
 		i += 1
 	if i <= aarraynumber:jump 'discojock_loop'
@@ -53,15 +63,22 @@ if $ARGS[0] = 'classmates':
 
 	'<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>'
 	
-	'<center><table border=0 cellspacing=0 cellpadding=5><TR>'
+	'<center><table cellspacing="3">'
+	'<tr>'
 	i = 1
+	table_count = 0
 	:discogop_loop
 		if npc_grupTipe['A<<i>>'] = 4 and discoenable['A<<i>>'] = 1:
 			$loopname = $npc_nickname['A<<i>>']
 			$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>'
+			*p '<td bgcolor=<<$bcolor2>> align="center"><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>'
+			table_count += 1
+			if (table_count mod 6) = 0 :
+				*p '</tr><tr>'
+			end
 		end
-		if i = 144: '<TR>'
+
+		if i = 144: ''
 		i += 1
 	if i <= aarraynumber:jump 'discogop_loop'