diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 199:f5e9db793dd3

Minor missing translations + MOD/END/EAD in translation table. + ON/OFF (French). + Desat in logbook. + Set date/time menu positionning. + Simulator menu positionning.
author JeanDo
date Mon, 14 Feb 2011 17:23:08 +0100
parents caf6153b26cb
children aad4f6e25c2d
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Sun Feb 13 19:46:42 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Mon Feb 14 17:23:08 2011 +0100
@@ -505,23 +505,29 @@
 	call	PLED_standard_color
 	return
 
+;=============================================================================
+; Update simulator menu with time/depth
+; Note: because translations might change a bit the string length, we reprint
+;       that part of the mask to be sure the numbers fit in the right places.
 PLED_simulator_data:
+	WIN_LEFT	.20
 	WIN_TOP		.65
-	WIN_LEFT	.112                    ; +7 for spanish.
 	WIN_FONT 	FT_SMALL
 	call	PLED_standard_color
 	lfsr	FSR2,letter
-	movff	logbook_temp1,lo
+	OUTPUTTEXTH .277                    ; Bottom Time:
+	
+	movff	logbook_temp1,lo            
 	bsf		leftbind
 	output_8
 	bcf		leftbind
 	STRCAT_PRINT  "min "
 
+	WIN_LEFT	.20
 	WIN_TOP		.95
-	WIN_LEFT	.100
-	WIN_FONT 	FT_SMALL
-	call	PLED_standard_color
 	lfsr	FSR2,letter
+	OUTPUTTEXTH .278                    ; Max. Depth:
+
 	movff	logbook_temp2,lo
 	bsf		leftbind
 	output_8
@@ -529,6 +535,8 @@
 	STRCAT_PRINT  "m "
 	return
 
+;=============================================================================
+
 PLED_display_velocity:
 ;	btfsc	multi_gf_display			; Is the Multi-GF Table displayed?
 ;	return							; Yes, No update and return!