mirror of
				https://github.com/the-sane/lug-helper.git
				synced 2025-11-04 13:33:27 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			431df4aabd
			...
			7ae0bcf330
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					7ae0bcf330 | ||
| 
						 | 
					8ce1a9a8ea | 
@@ -807,17 +807,17 @@ lutris_restart() {
 | 
				
			|||||||
#------------------------- begin download functions ----------------------------#
 | 
					#------------------------- begin download functions ----------------------------#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Display post download message or instructions if needed
 | 
					# Display post download message or instructions if needed
 | 
				
			||||||
# Expects the variables message_heading, post_download_msg1,
 | 
					# Expects the variables message_heading, post_download_msg_text,
 | 
				
			||||||
# post_download_msg2, and downloaded_item_name
 | 
					# post_download_msg_italics, and downloaded_item_name
 | 
				
			||||||
post_download() {
 | 
					post_download() {
 | 
				
			||||||
    if [ "$trigger_post_download" = "true" ]; then
 | 
					    if [ "$trigger_post_download" = "true" ]; then
 | 
				
			||||||
        message_heading="Download Complete"
 | 
					        message_heading="Download Complete"
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        if [ "$use_zenity" -eq 1 ]; then
 | 
					        if [ "$use_zenity" -eq 1 ]; then
 | 
				
			||||||
            message_heading="<b>$message_heading</b>"
 | 
					            message_heading="<b>$message_heading</b>"
 | 
				
			||||||
            post_download_msg2="<i>$post_download_msg2</i>"
 | 
					            post_download_msg_italics="<i>$post_download_msg_italics</i>"
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
        message info "$message_heading\n\n$post_download_msg1\n\n$post_download_msg2\n$downloaded_item_name"
 | 
					        message info "$message_heading\n\n$post_download_msg_text\n\n$post_download_msg_italics\n$downloaded_item_name"
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    trigger_post_download="false"
 | 
					    trigger_post_download="false"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -1240,11 +1240,11 @@ runner_manage() {
 | 
				
			|||||||
    # Set the post download instructions
 | 
					    # Set the post download instructions
 | 
				
			||||||
    # Format:
 | 
					    # Format:
 | 
				
			||||||
    # A header is automatically displayed that reads: Download Complete
 | 
					    # A header is automatically displayed that reads: Download Complete
 | 
				
			||||||
    # msg1 is displayed below the header
 | 
					    # msg_text is displayed below the header
 | 
				
			||||||
    # msg2 is displayed below that in italics when zenity is in use
 | 
					    # msg_italics is displayed below that in italics when zenity is in use
 | 
				
			||||||
    # Lastly, the downloaded directory name is automatically displayed
 | 
					    # Lastly, the downloaded directory name is automatically displayed
 | 
				
			||||||
    post_download_msg1="Select the runner in Lutris from the dropdown menu"
 | 
					    post_download_msg_text="Select the runner in Lutris from the dropdown menu"
 | 
				
			||||||
    post_download_msg2="Configure->Runner Options->Wine version"
 | 
					    post_download_msg_italics="Configure->Runner Options->Wine version"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Call the download_manage function with the above configuration
 | 
					    # Call the download_manage function with the above configuration
 | 
				
			||||||
    # The argument passed to the function is used for special handling
 | 
					    # The argument passed to the function is used for special handling
 | 
				
			||||||
@@ -1271,11 +1271,11 @@ dxvk_manage() {
 | 
				
			|||||||
    # Set the post download instructions
 | 
					    # Set the post download instructions
 | 
				
			||||||
    # Format:
 | 
					    # Format:
 | 
				
			||||||
    # A header is automatically displayed that reads: Download Complete
 | 
					    # A header is automatically displayed that reads: Download Complete
 | 
				
			||||||
    # msg1 is displayed below the header
 | 
					    # msg_text is displayed below the header
 | 
				
			||||||
    # msg2 is displayed below that in italics when zenity is in use
 | 
					    # msg_italics is displayed below that in italics when zenity is in use
 | 
				
			||||||
    # Lastly, the downloaded directory name is automatically displayed
 | 
					    # Lastly, the downloaded directory name is automatically displayed
 | 
				
			||||||
    post_download_msg1="Type the DXVK folder name in your Lutris settings"
 | 
					    post_download_msg_text="Type the DXVK folder name in your Lutris settings"
 | 
				
			||||||
    post_download_msg2="Configure->Runner Options->DXVK version"
 | 
					    post_download_msg_italics="Configure->Runner Options->DXVK version"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Call the download_manage function with the above configuration
 | 
					    # Call the download_manage function with the above configuration
 | 
				
			||||||
    # The argument passed to the function is used for special handling
 | 
					    # The argument passed to the function is used for special handling
 | 
				
			||||||
@@ -1431,7 +1431,7 @@ maintenance_menu() {
 | 
				
			|||||||
# Get a random Penguin's Star Citizen referral code
 | 
					# Get a random Penguin's Star Citizen referral code
 | 
				
			||||||
referral_randomizer() {
 | 
					referral_randomizer() {
 | 
				
			||||||
    # Populate the referral codes array
 | 
					    # Populate the referral codes array
 | 
				
			||||||
    referral_codes=("STAR-4TZD-6KMM" "STAR-4XM2-VM99" "STAR-2NPY-FCR2" "STAR-T9Z9-7W6P" "STAR-VLBF-W2QR" "STAR-BYR6-YHMF" "STAR-3X2H-VZMX" "STAR-BRWN-FB9T" "STAR-FG6Y-N4Q4" "STAR-VLD6-VZRG" "STAR-T9KF-LV77" "STAR-4XHB-R7RF" "STAR-9NVF-MRN7" "STAR-3Q4W-9TC3" "STAR-3SBK-7QTT" "STAR-XFBT-9TTK" "STAR-F3H9-YPHN" "STAR-BYK6-RCCL" "STAR-XCKH-W6T7" "STAR-H292-39WK" "STAR-ZRT5-PJB7" "STAR-GMBP-SH9Y" "STAR-PLWB-LMFY" "STAR-TNZN-H4ZT" "STAR-T5G5-L2GJ" "STAR-6TPV-7QH2" "STAR-THHD-TV3Y" "STAR-7ZFS-PK2L" "STAR-SRQN-43TB" "STAR-9TDG-D4H9" "STAR-BPH3-THJC" "STAR-HL3M-R5KC" "STAR-GBS5-LTVB" "STAR-CJ3Y-KZZ4" "STAR-5GRM-7HBY" "STAR-G2GX-Y2QJ" "STAR-YWY3-H4XX" "STAR-6VGM-PTKC" "STAR-T6MZ-QFHX" "STAR-T2K6-LXFW" "STAR-XN25-9CJJ" "STAR-47V3-4QGB")
 | 
					    referral_codes=("STAR-4TZD-6KMM" "STAR-4XM2-VM99" "STAR-2NPY-FCR2" "STAR-T9Z9-7W6P" "STAR-VLBF-W2QR" "STAR-BYR6-YHMF" "STAR-3X2H-VZMX" "STAR-BRWN-FB9T" "STAR-FG6Y-N4Q4" "STAR-VLD6-VZRG" "STAR-T9KF-LV77" "STAR-4XHB-R7RF" "STAR-9NVF-MRN7" "STAR-3Q4W-9TC3" "STAR-3SBK-7QTT" "STAR-XFBT-9TTK" "STAR-F3H9-YPHN" "STAR-BYK6-RCCL" "STAR-XCKH-W6T7" "STAR-H292-39WK" "STAR-ZRT5-PJB7" "STAR-GMBP-SH9Y" "STAR-PLWB-LMFY" "STAR-TNZN-H4ZT" "STAR-T5G5-L2GJ" "STAR-6TPV-7QH2" "STAR-THHD-TV3Y" "STAR-7ZFS-PK2L" "STAR-SRQN-43TB" "STAR-9TDG-D4H9" "STAR-BPH3-THJC" "STAR-HL3M-R5KC" "STAR-GBS5-LTVB" "STAR-CJ3Y-KZZ4" "STAR-5GRM-7HBY" "STAR-G2GX-Y2QJ" "STAR-YWY3-H4XX" "STAR-6VGM-PTKC" "STAR-T6MZ-QFHX" "STAR-T2K6-LXFW" "STAR-XN25-9CJJ" "STAR-47V3-4QGB" "STAR-YD4Z-TQZV")
 | 
				
			||||||
    # Pick a random array element. Scale a floating point number for
 | 
					    # Pick a random array element. Scale a floating point number for
 | 
				
			||||||
    # a more random distribution than simply calling RANDOM
 | 
					    # a more random distribution than simply calling RANDOM
 | 
				
			||||||
    random_code="${referral_codes[$(awk '{srand($2); print int(rand()*$1)}' <<< "${#referral_codes[@]} $RANDOM")]}"
 | 
					    random_code="${referral_codes[$(awk '{srand($2); print int(rand()*$1)}' <<< "${#referral_codes[@]} $RANDOM")]}"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user