Skip to content

Commit 116cbf1

Browse files
committed
Release 1.0
1 parent 5dc3dc7 commit 116cbf1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1518
-0
lines changed

gml-outline-shader-drawer.yyp

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/DemoMace/Create_0.gml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// @description
2+
3+
// Inherit the parent event
4+
event_inherited();
5+
rotating = false;

objects/DemoMace/DemoMace.yy

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/DemoMace/Draw_0.gml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/// @description draw outline if mouse is over
2+
3+
outliner.outline_color = mouse_check_button(mb_left) ? outline_color_click : outline_color;
4+
event_inherited();

objects/DemoMace/KeyPress_1.gml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// @description hotkeys
2+
3+
if (!mouse_is_over) exit;
4+
5+
var str = -1;
6+
if (keyboard_check(ord("1"))) str = 1;
7+
if (keyboard_check(ord("2"))) str = 2;
8+
if (keyboard_check(ord("3"))) str = 3;
9+
if (keyboard_check(ord("4"))) str = 4;
10+
if (keyboard_check(ord("5"))) str = 5;
11+
12+
if (str != -1) {
13+
if (outliner.outline_strength != 0) outliner.outline_strength = str;
14+
exit;
15+
}
16+
17+
if (keyboard_check(ord("R")))
18+
rotating = !rotating;
19+
20+
if (keyboard_check(ord("A")))
21+
outliner.alpha_fading = !outliner.alpha_fading;
22+

objects/DemoMace/Step_0.gml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// @description rotate slowly if rotation active
2+
3+
if (rotating) image_angle = ((image_angle + 1) % 360);

objects/DemoPotion/Create_0.gml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// @description
2+
3+
// Inherit the parent event
4+
event_inherited();
5+
rotating = false;
6+

objects/DemoPotion/DemoPotion.yy

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/DemoPotion/Draw_0.gml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/// @description draw outline if mouse is over
2+
3+
outliner.outline_color = mouse_check_button(mb_left) ? outline_color_click : outline_color;
4+
event_inherited();

objects/DemoPotion/KeyPress_1.gml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// @description hotkeys
2+
3+
if (!mouse_is_over) exit;
4+
5+
var str = -1;
6+
if (keyboard_check(ord("1"))) str = 1;
7+
if (keyboard_check(ord("2"))) str = 2;
8+
if (keyboard_check(ord("3"))) str = 3;
9+
if (keyboard_check(ord("4"))) str = 4;
10+
if (keyboard_check(ord("5"))) str = 5;
11+
12+
if (str != -1) {
13+
if (outliner.outline_strength != 0) outliner.outline_strength = str;
14+
exit;
15+
}
16+
17+
if (keyboard_check(ord("R")))
18+
rotating = !rotating;
19+
20+
if (keyboard_check(ord("A")))
21+
outliner.alpha_fading = !outliner.alpha_fading;
22+

0 commit comments

Comments
 (0)