Skip to content

Commit ee38f95

Browse files
committed
Inputbox sprites new format
1 parent 3e1cd95 commit ee38f95

File tree

77 files changed

+813
-457
lines changed

Some content is hidden

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

77 files changed

+813
-457
lines changed

Minecraft Note Block Studio.yyp

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

scripts/draw_inputbox/draw_inputbox.gml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ popup_set_window(xx, yy, w, 21, str)
1010

1111
on = (mouse_rectangle(xx, yy, w, 21))
1212
draw_theme_color()
13-
draw_sprite_ext(spr_inputbox, 1 + on * 3 + 6 * theme, xx, yy, w, 1, 0, -1, 1)
14-
draw_sprite(spr_inputbox, on * 3 + 6 * theme, xx, yy)
15-
draw_sprite(spr_inputbox, 2 + on * 3 + 6 * theme, xx + w - 2, yy)
13+
14+
if(on){
15+
draw_sprite_ext(spr_inputbox_s_middle, theme, xx, yy, w, 1, 0, -1, 1)
16+
draw_sprite(spr_inputbox_s_left, theme, xx, yy)
17+
draw_sprite(spr_inputbox_s_right, theme, xx + w - 2, yy)
18+
}else{
19+
draw_sprite_ext(spr_inputbox_n_middle, theme, xx, yy, w, 1, 0, -1, 1)
20+
draw_sprite(spr_inputbox_n_left, theme, xx, yy)
21+
draw_sprite(spr_inputbox_n_right, theme, xx + w - 2, yy)
22+
}
23+
1624
return draw_text_edit(i, val, xx + 3, yy + 3, w - 3, 21, 1, 0)
-102 Bytes
Binary file not shown.
-83 Bytes
Binary file not shown.
-88 Bytes
Binary file not shown.
-88 Bytes
Binary file not shown.
-95 Bytes
Binary file not shown.
-83 Bytes
Binary file not shown.
-100 Bytes
Binary file not shown.
-102 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)