Skip to content

Commit 4ffde97

Browse files
- Improved feedback after executing a command.
- Fixed a failsafe incrorrectly set.
1 parent a15e40b commit 4ffde97

10 files changed

+33
-11
lines changed

Project_debuger.project.gmx

+8-6
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@
5858
<script>scripts\console_debug_instance_visible.gml</script>
5959
<script>scripts\console_all_instance_visible.gml</script>
6060
</scripts>
61-
<script>scripts\console_count.gml</script>
62-
<script>scripts\console_create.gml</script>
63-
<script>scripts\console_kill.gml</script>
64-
<script>scripts\console_watch.gml</script>
65-
<script>scripts\console_set.gml</script>
66-
<script>scripts\console_track.gml</script>
61+
<scripts name="commands">
62+
<script>scripts\console_count.gml</script>
63+
<script>scripts\console_create.gml</script>
64+
<script>scripts\console_kill.gml</script>
65+
<script>scripts\console_watch.gml</script>
66+
<script>scripts\console_set.gml</script>
67+
<script>scripts\console_track.gml</script>
68+
</scripts>
6769
</scripts>
6870
</scripts>
6971
</scripts>

scripts/__spse_logs_update.gml

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ with(object_main_console){
1919

2020
}
2121

22+
//Duplicate the log on the compiler window
23+
show_debug_message(string_upper(string(argument1)) + " : " + string(argument0));
24+

scripts/console_all_instance_visible.gml

+3
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ else{
2525
__spse_logs_update("Failed to change the visibility state of all instances.","red");
2626
}
2727
}
28+
29+
//Give some feedback
30+
__spse_logs_update("global instance visibility set to: " + string(Force_all_instances_visible), "white");
2831

2932

scripts/console_create.gml

+3
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ repeat(Number){
4141
instance_create(xx,yy,Object);
4242
}
4343

44+
//Give some feedback
45+
__spse_logs_update("Created " + string(Number) + "instance(s) of " + argument0, "white");
46+
4447

4548

scripts/console_debug_instance_visible.gml

+3
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ else{
2525
__spse_logs_update("Failed to change the visibility state of debug instances.","red");
2626
}
2727
}
28+
29+
//Give some feedback
30+
__spse_logs_update("tracked instance visibility set to: " + string(Force_debug_instances_visible), "white");

scripts/console_followers_persistence.gml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ else{
2626
__spse_logs_update("Failed to change the behavior of instances followers.","red");
2727
}
2828
}
29-
29+
30+
//Give some feedback
31+
__spse_logs_update("Auto destroy state set to: " + string(Auto_destroy_instance_follower), "white");
3032

3133

scripts/console_init.gml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ if !instance_exists(object_main_console){
44
instance_create(0,0,object_main_console);
55
}
66
else{
7-
__spse_logs_update("Attempt to create multiple console detected !","red");
7+
__spse_logs_update("Attempt to create multiple consoles detected","red");
88
}

scripts/console_overlay_drawing.gml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ else{
2525
__spse_logs_update("Failed to change overlay drawing state","red");
2626
}
2727
}
28-
28+
29+
//Give some feedback
30+
__spse_logs_update("Drawing overlay state set to: " + string(Overlay_drawing), "white");
2931

3032

3133

scripts/console_track.gml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//This script will tell the concerned instances follower to track their tracked instance.
33

44
//Failsafe
5-
if(!__spse_failsafe(argument_count, 3, 4)) exit;
5+
if(!__spse_failsafe(argument_count, 1, 2)) exit;
66

77
var Scope = __spse_is_scope_global(argument0);
88
var StringObject;
@@ -51,5 +51,6 @@ if Scope{
5151
}
5252
}
5353

54-
54+
//Give some feedback
55+
__spse_logs_update("Started tracking " + StringObject, "white");
5556

scripts/console_watch.gml

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ if Scope{
8484
}
8585

8686
}
87+
88+
//Give some feedback
89+
__spse_logs_update("Started watching " + Variable_to_watch + " from " + Tracked_object, "white");
8790

8891

8992

0 commit comments

Comments
 (0)