This repository has been archived by the owner on Jan 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define alarm_create_minutes | ||
///alarm_create_seconds(alarm_id,minutes) | ||
|
||
alarm_set(argument0, (room_speed * (argument1 * 60))); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#define alarm_dispose_all | ||
///alarm_dispose_all() | ||
|
||
alarm_set(0, -1); | ||
alarm_set(1, -1); | ||
alarm_set(2, -1); | ||
alarm_set(3, -1); | ||
alarm_set(4, -1); | ||
alarm_set(5, -1); | ||
alarm_set(6, -1); | ||
alarm_set(7, -1); | ||
alarm_set(8, -1); | ||
alarm_set(9, -1); | ||
alarm_set(10, -1); | ||
alarm_set(11, -1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#define async_dialog_complete | ||
///async_dialog_complete() [dialog must be in the variable "msg"] | ||
|
||
var i_d = ds_map_find_value(async_load, "id"); | ||
if i_d == msg | ||
{ | ||
if ds_map_find_value(async_load, "status") | ||
{ | ||
return true; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#define draw_text_outline | ||
///draw_text_outline(x, y, text, outline width, text color, border color) | ||
|
||
draw_set_colour(argument5); | ||
|
||
draw_text(argument0-argument3,argument1-argument3,argument2); | ||
draw_text(argument0 ,argument1-argument3,argument2); | ||
draw_text(argument0+argument3,argument1-argument3,argument2); | ||
|
||
draw_text(argument0-argument3,argument1 ,argument2); | ||
draw_text(argument0 ,argument1 ,argument2); | ||
draw_text(argument0+argument3,argument1 ,argument2); | ||
|
||
draw_text(argument0-argument3,argument1+argument3,argument2); | ||
draw_text(argument0 ,argument1+argument3,argument2); | ||
draw_text(argument0+argument3,argument1+argument3,argument2); | ||
|
||
draw_set_colour(argument4); | ||
draw_text(argument0 ,argument1 ,argument2); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#define draw_text_outline_color | ||
///draw_text_outline_color(x, y, text, outline width, bc1, bc2, bc3, bc4, tc1, tc2, tc3, tc4, text alpha) | ||
|
||
//draw_text_colour(x,y,string,c1,c2,c3,c4,alpha); | ||
|
||
draw_text_colour(argument0-argument3,argument1-argument3,argument2,argument4, argument5, argument6, argument7, 100); | ||
draw_text_colour(argument0 ,argument1-argument3,argument2,argument4, argument5, argument6, argument7, 100); | ||
draw_text_colour(argument0+argument3,argument1-argument3,argument2,argument4, argument5, argument6, argument7, 100); | ||
|
||
draw_text_colour(argument0-argument3,argument1 ,argument2, argument4, argument5, argument6, argument7, 100); | ||
draw_text_colour(argument0 ,argument1 ,argument2, argument4, argument5, argument6, argument7, 100); | ||
draw_text_colour(argument0+argument3,argument1 ,argument2, argument4, argument5, argument6, argument7, 100); | ||
|
||
draw_text_colour(argument0-argument3,argument1+argument3,argument2, argument4, argument5, argument6, argument7, 100); | ||
draw_text_colour(argument0 ,argument1+argument3,argument2, argument4, argument5, argument6, argument7, 100); | ||
draw_text_colour(argument0+argument3,argument1+argument3,argument2, argument4, argument5, argument6, argument7, 100); | ||
|
||
|
||
draw_text_colour(argument0 ,argument1 ,argument2,argument8, argument9, argument10, argument11, argument12); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#define draw_text_outline_ext | ||
///draw_text_outline_ext(x, y, text, sep, w, outline width, text color, border color) | ||
|
||
draw_set_colour(argument7); | ||
|
||
draw_text_ext(argument0-argument5,argument1-argument5,argument2,argument3,argument4); | ||
draw_text_ext(argument0 ,argument1-argument5,argument2,argument3,argument4); | ||
draw_text_ext(argument0+argument5,argument1-argument5,argument2,argument3,argument4); | ||
|
||
draw_text_ext(argument0-argument5,argument1 ,argument2,argument3,argument4); | ||
draw_text_ext(argument0 ,argument1 ,argument2,argument3,argument4); | ||
draw_text_ext(argument0+argument5,argument1 ,argument2,argument3,argument4); | ||
|
||
draw_text_ext(argument0-argument5,argument1+argument5,argument2,argument3,argument4); | ||
draw_text_ext(argument0 ,argument1+argument5,argument2,argument3,argument4); | ||
draw_text_ext(argument0+argument5,argument1+argument5,argument2,argument3,argument4); | ||
|
||
draw_set_colour(argument6); | ||
draw_text_ext(argument0 ,argument1 ,argument2,argument3,argument4); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#define instance_activate_in_view | ||
///instance_activate_in_view(obj, view id) | ||
|
||
instance_deactivate_object(argument0); | ||
instance_activate_region(view_xview[argument1], view_yview[argument1], view_wview[argument1], view_hview[argument1], true); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#define instance_create_depth | ||
///instance_create_depth(x, y, obj, depth) | ||
_depth = argument3; | ||
|
||
with (instance_create(argument0, argument1, argument2)) { | ||
depth = other._depth; | ||
} | ||
|
||
_depth = noone; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define move_decimal_place | ||
///move_decimal_place(int, decimal) | ||
|
||
return floor(argument0 * (10 ^ argument1))/argument1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define irandom_color | ||
///irandom_color() | ||
|
||
return irandom($FFFFFF); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define random_color | ||
///random_color() | ||
|
||
return random($FFFFFF); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#define char_is_vowel | ||
///char_is_vowel(char) [does not run if char isn't 1 character long] | ||
|
||
if (string_length(argument0) != 1) {exit;} else { | ||
if (string_lower(argument0) == "a") { return true; } else | ||
if (string_lower(argument0) == "e") { return true; } else | ||
if (string_lower(argument0) == "i") { return true; } else | ||
if (string_lower(argument0) == "o") { return true; } else | ||
if (string_lower(argument0) == "u") { return true; } else | ||
{ return false; } | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define newline_to_hash | ||
///newline_to_hash(text) | ||
|
||
return string_replace(argument0, '\n', '#'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#define string_reverse | ||
///string_reverse(str) | ||
|
||
_www = ""; | ||
|
||
for (_qqq = 0; _qqq < string_length(argument0); _qqq++) { | ||
_www = _www + string_char_at(argument0, (string_length(argument0) - _qqq)); | ||
} | ||
|
||
_qqq = noone; | ||
|
||
return _www; | ||
|
||
_www = noone; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define accurate_milliseconds | ||
///accurate_milliseconds() | ||
|
||
return (1 / room_speed)*1000; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define accurate_minutes | ||
///accurate_minutes() | ||
|
||
return (1 / room_speed) / 60; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#define accurate_seconds | ||
///accurate_seconds() | ||
|
||
return 1 / room_speed; | ||
|