Skip to content

Commit ae9522f

Browse files
committed
Rename function
1 parent 8306d4f commit ae9522f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

objects/obj_main_menu_buttons/Draw_64.gml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if (room_get_name(room)="Creation"){
3636
}
3737
if (scr_click_left()) {
3838
button=1;
39-
screen_fade_out(room_goto, [Main_Menu]);
39+
screen_fade_transition(room_goto, [Main_Menu]);
4040
}
4141
} else {
4242
if (hover[0]>0){
@@ -94,7 +94,7 @@ if (instance_exists(obj_main_menu)) and (!instance_exists(obj_saveload)) and (!i
9494
ini_close();
9595
button=1;
9696

97-
screen_fade_out(room_goto, [Creation]);
97+
screen_fade_transition(room_goto, [Creation]);
9898

9999
// else {
100100
// var pop;
@@ -116,7 +116,7 @@ if (instance_exists(obj_main_menu)) and (!instance_exists(obj_saveload)) and (!i
116116
instance_create(0,0,obj_ingame_menu);
117117
break;
118118
case 3:
119-
screen_fade_out(game_end);
119+
screen_fade_transition(game_end);
120120
break;
121121
}
122122
}

scripts/scr_ui_controller_helpers/scr_ui_controller_helpers.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function screen_fade_in() {
44
show_debug_message("Fading-in switched ON! 1");
55
}
66

7-
function screen_fade_out(cycle_end_function = undefined, cycle_end_function_args = []) {
7+
function screen_fade_transition(cycle_end_function = undefined, cycle_end_function_args = []) {
88
instance_create_depth(0, 0, -9999, obj_screen_fade)
99
obj_screen_fade.fading_out = true;
1010
obj_screen_fade.cycle_end_function = cycle_end_function;

0 commit comments

Comments
 (0)