Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
OH296 committed Jan 19, 2025
1 parent 3a3f988 commit dd69afc
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions scripts/scr_creation_draw_slides/scr_creation_draw_slides.gml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit dd69afc

Please sign in to comment.