Skip to content

Commit 3b3e8a9

Browse files
committed
Added window shadow
1 parent e391e1c commit 3b3e8a9

21 files changed

+322
-1
lines changed

Minecraft Note Block Studio.yyp

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

scripts/draw_window/draw_window.gml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ function draw_window(argument0, argument1, argument2, argument3) {
99
if (theme = 1) draw_set_color(13160660)
1010
if (theme = 2) draw_set_color(c_dark)
1111
if (theme = 3) draw_set_color(c_white)
12+
if (theme = 3) {
13+
draw_sprite(spr_shadow, 0, x1 - 16, y1 - 16)
14+
draw_sprite_ext(spr_shadow, 1, x1 - 16, y1, 1, y2 - y1, 0, -1, 1)
15+
draw_sprite(spr_shadow, 2, x1 - 16, y2 + 1)
16+
draw_sprite_ext(spr_shadow, 3, x1, y2 + 1, x2 - x1, 1, 0, -1, 1)
17+
draw_sprite(spr_shadow, 4, x2 + 1, y2 + 1)
18+
draw_sprite_ext(spr_shadow, 5, x2 + 1, y1, 1, y2 - y1, 0, -1, 1)
19+
draw_sprite(spr_shadow, 6, x2 + 1, y1 - 16)
20+
draw_sprite_ext(spr_shadow, 7, x1, y1 - 16, x2 - x1, 1, 0, -1, 1)
21+
}
1222
draw_rectangle(x1, y1, x2 - 1, y2 - 1, 0)
1323
draw_sprite(spr_interface2, 0 + 8 * theme, x1, y1)
1424
draw_sprite_ext(spr_interface2, 1 + 8 * theme, x1, y1 + 2, 1, (y2 - y1 - 4) / 2, 0, -1, 1)

sprites/spr_interface2/spr_interface2.yy

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
144 Bytes
Loading
242 Bytes
Loading
206 Bytes
Loading
146 Bytes
Loading
215 Bytes
Loading
131 Bytes
Loading
238 Bytes
Loading

0 commit comments

Comments
 (0)