-t and -c now bind to the appropriate colour in love-js.sh

This commit is contained in:
Alexander Griffith 2022-03-16 20:45:46 -04:00
parent 07061532da
commit 24294b9095

View file

@ -68,7 +68,6 @@ height=600
release="compat" release="compat"
love_version="11.4" love_version="11.4"
canvas_colour="54,69,79" canvas_colour="54,69,79"
page_colour=$canvas_colour
text_colour="240,234,214" text_colour="240,234,214"
initial_memory=0 initial_memory=0
module_size=$(du -b $love_file | awk '{print $1}') module_size=$(du -b $love_file | awk '{print $1}')
@ -94,10 +93,10 @@ case $i in
-h=*|--height=*) -h=*|--height=*)
height="${i#*=}" height="${i#*=}"
;; ;;
-c=*|--text-colour=*) -t=*|--text-colour=*)
text_colour="${i#*=}" text_colour="${i#*=}"
;; ;;
-t=*|--canvas-colour=*) -c=*|--canvas-colour=*)
canvas_colour="${i#*=}" canvas_colour="${i#*=}"
;; ;;
-a=*|--author=*) -a=*|--author=*)
@ -121,6 +120,7 @@ case $i in
esac esac
done done
page_colour=$canvas_colour
file_name=$output_dir/$name$dash_version-web file_name=$output_dir/$name$dash_version-web