Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
all the scripts, bitch!
Browse files Browse the repository at this point in the history
  • Loading branch information
xubiod committed Oct 20, 2017
1 parent bc57e46 commit cd00a79
Show file tree
Hide file tree
Showing 17 changed files with 171 additions and 0 deletions.
5 changes: 5 additions & 0 deletions alarms/alarm_create_minutes.gml
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)));

16 changes: 16 additions & 0 deletions alarms/alarm_dispose_all.gml
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);

12 changes: 12 additions & 0 deletions async/async_dialog_complete.gml
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;
}
}

20 changes: 20 additions & 0 deletions drawing/draw_text_outline.gml
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);

20 changes: 20 additions & 0 deletions drawing/draw_text_outline_color.gml
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);

20 changes: 20 additions & 0 deletions drawing/draw_text_outline_ext.gml
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);

6 changes: 6 additions & 0 deletions instances/instance_activate_in_view.gml
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);

10 changes: 10 additions & 0 deletions instances/instance_create_depth.gml
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;

5 changes: 5 additions & 0 deletions math/move_decimal_place.gml
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;

5 changes: 5 additions & 0 deletions random/irandom_color.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define irandom_color
///irandom_color()

return irandom($FFFFFF);

5 changes: 5 additions & 0 deletions random/random_color.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define random_color
///random_color()

return random($FFFFFF);

12 changes: 12 additions & 0 deletions strings/char_is_vowel.gml
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; }
}

5 changes: 5 additions & 0 deletions strings/newline_to_hash.gml
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', '#');

15 changes: 15 additions & 0 deletions strings/string_reverse.gml
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;

5 changes: 5 additions & 0 deletions time/accurate_milliseconds.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define accurate_milliseconds
///accurate_milliseconds()

return (1 / room_speed)*1000;

5 changes: 5 additions & 0 deletions time/accurate_minutes.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define accurate_minutes
///accurate_minutes()

return (1 / room_speed) / 60;

5 changes: 5 additions & 0 deletions time/accurate_seconds.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define accurate_seconds
///accurate_seconds()

return 1 / room_speed;

0 comments on commit cd00a79

Please sign in to comment.