diff --git a/scripts/scr_creation_draw_slides/scr_creation_draw_slides.gml b/scripts/scr_creation_draw_slides/scr_creation_draw_slides.gml index 81391f5a0..7b4f282eb 100644 --- a/scripts/scr_creation_draw_slides/scr_creation_draw_slides.gml +++ b/scripts/scr_creation_draw_slides/scr_creation_draw_slides.gml @@ -449,28 +449,43 @@ function draw_chapter_trait_select(){ draw_text_transformed(800,211,string_hash_to_newline("Chapter Type"),0.6,0.6,0); draw_set_halign(fa_left); - if (scr_hit(516,242,674,266)){tooltip="Homeworld";tooltip2="Your chapter has a homeworld that they base on. Contained upon it is a massive Fortress Monastery, which provides high levels of defense and automated weapons.";} - if (scr_hit(768,242,866,266)){tooltip="Fleet Based";tooltip2="Rather than a homeworld your chapter begins near their recruiting world. The fleet includes a Battle Barge, which serves as a mobile base, and powerful ship.";} - if (scr_hit(952,242,1084,266)){tooltip="Penitent";tooltip2="As with Fleet Based, but you must crusade and fight until your penitence meter runs out. Note that recruiting is disabled until then.";}// Avoiding fights will result in excomunicatus traitorus. + if (scr_hit(516,242,674,266)){ + tooltip="Homeworld"; + tooltip2="Your chapter has a homeworld that they base on. Contained upon it is a massive Fortress Monastery, which provides high levels of defense and automated weapons."; + } + if (scr_hit(768,242,866,266)){ + tooltip="Fleet Based"; + tooltip2="Rather than a homeworld your chapter begins near their recruiting world. The fleet includes a Battle Barge, which serves as a mobile base, and powerful ship."; + } + if (scr_hit(952,242,1084,266)){ + tooltip="Penitent"; + tooltip2="As with Fleet Based, but you must crusade and fight until your penitence meter runs out. Note that recruiting is disabled until then."; + }// Avoiding fights will result in excomunicatus traitorus. if (custom<2) then draw_set_alpha(0.5); - yar=0;if (fleet_type=1) then yar=1;draw_sprite(spr_creation_check,yar,519,239);yar=0; + yar=0; + if (fleet_type=1) then yar=1; + draw_sprite(spr_creation_check,yar,519,239);yar=0; if (scr_hit(519,239,519+32,239+32)) and (cooldown<=0) and (mouse_left>=1) and (custom=2){cooldown=8000; if (points+20<=maxpoints) and (fleet_type=3){points+=20;fleet_type=1;} if (fleet_type=2){fleet_type=1;} } - draw_text_transformed(551,239,string_hash_to_newline("Homeworld"),0.6,0.6,0); + draw_text_transformed(551,239,"Homeworld",0.6,0.6,0); - yar=0;if (fleet_type=2) then yar=1;draw_sprite(spr_creation_check,yar,771,239);yar=0; + yar=0; + if (fleet_type=2) then yar=1; + draw_sprite(spr_creation_check,yar,771,239);yar=0; if (scr_hit(771,239,771+32,239+32)) and (cooldown<=0) and (mouse_left>=1) and (custom=2){cooldown=8000; if (points+20<=maxpoints) and (fleet_type=3){points+=20;fleet_type=2;} if (fleet_type=1){fleet_type=2;} } - draw_text_transformed(804,239,string_hash_to_newline("Fleet Based"),0.6,0.6,0); + draw_text_transformed(804,239,"Fleet Based",0.6,0.6,0); - yar=0;if (fleet_type=3) then yar=1;draw_sprite(spr_creation_check,yar,958,239);yar=0; + yar=0; + if (fleet_type=3) then yar=1; + draw_sprite(spr_creation_check,yar,958,239);yar=0; if (scr_hit(958,239,958+32,239+32)) and (cooldown<=0) and (mouse_left>=1) and (custom=2){if (fleet_type!=3) then points-=20;fleet_type=3;cooldown=8000;} - draw_text_transformed(990,239,string_hash_to_newline("Penitent"),0.6,0.6,0); + draw_text_transformed(990,239,"Penitent",0.6,0.6,0); draw_set_alpha(1); draw_line(445,289,1125,289); @@ -588,8 +603,10 @@ function draw_chapter_trait_select(){ w: 204, h: 20, } + dis_txt.x2 = dis_txt.x1 + dis_txt.w; dis_txt.y2 = dis_txt.y1 + dis_txt.h; + var max_disadvantage_count = 8; for (var slot =1;slot<=max_disadvantage_count;slot++){ var draw_string = dis_num[slot]==0?"[+]":"[-] "+dis[slot];