Skip to content

Commit 65901b3

Browse files
committed
version 1.1. Now with resizing and saving.
1 parent 39c4a40 commit 65901b3

53 files changed

Lines changed: 557 additions & 198 deletions

File tree

Some content is hidden

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

PizzaTowerFontTool.yyp

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# PizzaTowerFontTool
22

3-
A tool for writing text in Pizza Tower's fonts.
3+
A simple tool for writing text in Pizza Tower's fonts.
4+
Can choose between several fonts that exist in Pizza Tower, plus save the text as a PNG file (images are saved in < user name >\AppData\Roaming\PizzaTowerFontTool).
45

56
## Building
67

objects/obj_button/Draw_0.gml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
draw_sprite_ext(sprite_index, 0, x, y, image_xscale, image_yscale, 0, c_white, 0.3)
2+
23
draw_set_font(global.creditsfont)
34
draw_set_halign(fa_center)
45
draw_set_valign(fa_middle)
5-
draw_text((x + 96), (y + 32), text)
6+
7+
draw_text((x + (sprite_width / 2)), (y + (sprite_height / 2)), text)

objects/obj_checkbox/Draw_0.gml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
draw_set_alpha(0.5)
2-
draw_rectangle_color(x, y, (x + 16), (y + 16), c_gray, c_gray, c_gray, c_gray, false)
1+
draw_set_alpha(0.45)
2+
draw_rectangle_color(x, y, (x + 16), (y + 16), c_dkgray, c_dkgray, c_dkgray, c_dkgray, false)
33
draw_set_alpha(1)
4+
45
draw_set_font(global.smallfont2)
56
draw_set_halign(fa_left)
67
draw_set_valign(fa_middle)
8+
79
draw_text((x + 32), (y + 8), text)
10+
811
draw_rectangle_color(x, y, (x + 16), (y + 16), c_gray, c_gray, c_gray, c_gray, true)
9-
draw_set_alpha(0.5)
12+
draw_set_alpha(0.45)
13+
1014
if (instance_position(mouse_x, mouse_y, object_index) && !mouse_check_button(mb_left))
1115
draw_rectangle_color(x, y, (x + 16), (y + 16), c_ltgray, c_ltgray, c_ltgray, c_ltgray, true)
1216
else if (instance_position(mouse_x, mouse_y, object_index) && mouse_check_button(mb_left))
1317
draw_rectangle_color(x, y, (x + 16), (y + 16), c_dkgray, c_dkgray, c_dkgray, c_dkgray, false)
18+
1419
if checked
1520
{
16-
draw_rectangle_color(x, y, (x + 16), (y + 16), c_white, c_white, c_white, c_white, false)
21+
draw_rectangle_color(x, y, (x + 16), (y + 16), c_dkgray, c_dkgray, c_dkgray, c_dkgray, false)
1722
draw_rectangle_color((x + 4), (y + 4), (x + 12), (y + 12), c_ltgray, c_ltgray, c_ltgray, c_ltgray, false)
1823
}
24+
1925
draw_set_alpha(1)

objects/obj_checkbox/obj_checkbox.yy

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/obj_fontpicker/Draw_0.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
draw_set_font(global.creditsfont)
22
draw_set_halign(fa_left)
33
draw_set_valign(fa_top)
4+
45
if (currentfont == global.bigfont)
56
draw_text(x, y, "Current font: bigfont")
67
if (currentfont == global.creditsfont)

objects/obj_fontpicker/obj_fontpicker.yy

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/obj_inputarea/Alarm_0.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ if (cursor == "_")
22
cursor = ""
33
else
44
cursor = "_"
5+
56
alarm[0] = 60

objects/obj_inputarea/Draw_0.gml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
draw_set_alpha(0.3)
2-
draw_rectangle_color(x, y, (x + 832), (y + 32), c_dkgray, c_dkgray, c_dkgray, c_dkgray, false)
3-
draw_rectangle_color(x, y, (x + 832), (y + 32), c_ltgray, c_ltgray, c_ltgray, c_ltgray, true)
2+
draw_rectangle_color(x, y, (room_width - 64), (y + 32), c_dkgray, c_dkgray, c_dkgray, c_dkgray, false)
3+
draw_rectangle_color(x, y, (room_width - 64), (y + 32), c_ltgray, c_ltgray, c_ltgray, c_ltgray, true)
44
draw_set_alpha(1)
5+
56
draw_set_font(global.creditsfont)
67
draw_set_halign(fa_left)
78
draw_set_valign(fa_middle)
9+
810
if (inputtext == "")
911
draw_text_ext_color((x + 8), (y + 16), "Type text here...", -1, -1, c_white, c_white, c_white, c_white, 0.45)
1012
else

objects/obj_inputarea/Step_0.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ if (string_width(keyboard_string) < 822)
22
inputtext = keyboard_string
33
else
44
keyboard_string = inputtext
5+
56
if (instance_exists(obj_textdraw))
67
obj_textdraw.text = inputtext

0 commit comments

Comments
 (0)