@@ -803,15 +803,25 @@ function menu_draw()
803
803
love .graphics .setColor (0 , 0 , 0 , 200 )
804
804
love .graphics .rectangle (" fill" , 241 * scale , 16 * scale , 150 * scale , 180 * scale )
805
805
love .graphics .setColor (255 , 255 , 255 , 255 )
806
+ local asset = onlineassetlist [onlinemappackselection ]
807
+
806
808
local message
807
- if onlineassetlist [ onlinemappackselection ] and onlineassetlist [ onlinemappackselection ] .downloadable then
809
+ if asset and asset .downloadable then
808
810
message = TEXT [" dlc dl instructions" ]
809
811
else
810
812
message = TEXT [" dlc instructions" ]
813
+
814
+ local y = (19 + 10 * (1 + # (message :split (" \n " ))))* scale
815
+ if asset and asset .type == " enemy" then
816
+ properprintF (TEXT [" dlc enemy instructions" ], 244 * scale , y )
817
+ elseif asset and (asset .type == " mappack" or asset .type == " character" ) then
818
+ properprintF (TEXT [" dlc asset instructions" ], 244 * scale , y )
819
+ end
811
820
end
812
821
properprintF (message , 244 * scale , 19 * scale )
813
- -- properprintF("bonus content\nlike enemies\nand characters\nare here too!", 244*scale, 140*scale)
822
+
814
823
love .graphics .setColor (255 , 255 , 255 , 255 )
824
+ -- TODO: these aren't initialized
815
825
if outdated then
816
826
love .graphics .setColor (255 , 0 , 0 , 255 )
817
827
properprintF (" version outdated!\n you have an old\n version of mari0!\n mappacks could not\n be downloaded.\n go to\n stabyourself.net\n to download latest" , 244 * scale , 130 * scale )
@@ -821,19 +831,14 @@ function menu_draw()
821
831
properprintF (" download error!\n something went\n wrong while\n downloading\n your mappack.\n try again.\n sorry." , 244 * scale , 130 * scale )
822
832
love .graphics .setColor (255 , 255 , 255 , 255 )
823
833
end
824
- if onlineassetlist [onlinemappackselection ] and onlineassetlist [onlinemappackselection ].type == " enemy" then
825
- love .graphics .setColor (255 , 150 , 150 , 255 )
826
- properprintF (TEXT [" dlc enemy instructions" ], 244 * scale , 160 * scale )
827
- love .graphics .setColor (255 , 255 , 255 , 255 )
828
- end
829
- if onlineassetlist [onlinemappackselection ] and onlineassetlist [onlinemappackselection ].type == " character" then
830
- -- love.graphics.setColor(255, 150, 150, 255)
831
- -- properprintF(TEXT["dlc character instructions"], 244*scale, 170*scale)
834
+
835
+ if asset and asset .type == " character" then
832
836
love .graphics .setColor (255 , 255 , 255 , 255 )
833
837
opendlcbutton .text = TEXT [" characters folder" ]
834
838
else
835
839
opendlcbutton .text = TEXT [" open dlc folder" ]
836
840
end
841
+
837
842
opendlcbutton :draw ()
838
843
end
839
844
@@ -871,11 +876,11 @@ function menu_draw()
871
876
local qi = 2
872
877
if (not onlinedlc ) then
873
878
qi = 3
874
- elseif asset .type [ i ] == " enemy" then
879
+ elseif asset .type == " enemy" then
875
880
qi = 5
876
- elseif asset .type [ i ] == " character" then
881
+ elseif asset .type == " character" then
877
882
qi = 6
878
- elseif asset .type [ i ] == " video" then
883
+ elseif asset .type == " video" then
879
884
qi = 7
880
885
end
881
886
love .graphics .setColor (0 , 0 , 0 , 150 )
0 commit comments