about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.lua28
1 files changed, 14 insertions, 14 deletions
diff --git a/main.lua b/main.lua
index 42399d6..f3618cf 100644
--- a/main.lua
+++ b/main.lua
@@ -1074,7 +1074,7 @@ function draw_help_without_mouse_pressed(drawing)
   local y = drawing.y+10
   love.graphics.print("Things you can do:", 16+30,y, 0, zoom)
   y = y+15*zoom
-  love.graphics.print("* Press the mouse button to start drawing a "..current_shape_singular(), 16+30,y, 0, zoom)
+  love.graphics.print("* Press the mouse button to start drawing a "..current_shape(), 16+30,y, 0, zoom)
   y = y+15*zoom
   love.graphics.print("* Hover on a point and press 'ctrl+v' to start moving it,", 16+30,y, 0, zoom)
   y = y+15*zoom
@@ -1110,34 +1110,34 @@ function draw_help_without_mouse_pressed(drawing)
   y = y+15*zoom
   love.graphics.print("Hit 'esc' now to hide this message", 16+30,y, 0, zoom)
   y = y+15*zoom
-  love.graphics.rectangle('line', 16,drawing.y, drawingw, math.max(pixels(drawing.h),y-drawing.y))
+  love.graphics.setColor(0,0.5,0, 0.1)
+  love.graphics.rectangle('fill', 16,drawing.y, drawingw, math.max(pixels(drawing.h),y-drawing.y))
 end
 
 function draw_help_with_mouse_pressed(drawing)
   love.graphics.setColor(0,0.5,0)
-  love.graphics.rectangle('line', 16,drawing.y, drawingw,pixels(drawing.h))
   local y = drawing.y+10
-  love.graphics.print("You're currently drawing "..current_shape_pluralized(), 16+30,y, 0, zoom)
+  love.graphics.print("You're currently drawing a "..current_shape(drawing.pending), 16+30,y, 0, zoom)
   y = y+15*zoom
   love.graphics.print('Things you can do now:', 16+30,y, 0, zoom)
   y = y+15*zoom
   if current_mode == 'freehand' then
-    love.graphics.print('* Release the mouse button to finish drawing a freehand stroke', 16+30,y, 0, zoom)
+    love.graphics.print('* Release the mouse button to finish drawing the stroke', 16+30,y, 0, zoom)
     y = y+15*zoom
   elseif current_mode == 'line' or current_mode == 'manhattan' then
-    love.graphics.print('* Release the mouse button to finish drawing a line', 16+30,y, 0, zoom)
+    love.graphics.print('* Release the mouse button to finish drawing the line', 16+30,y, 0, zoom)
     y = y+15*zoom
   elseif current_mode == 'circle' then
     if drawing.pending.mode == 'circle' then
-      love.graphics.print('* Release the mouse button to finish drawing a full circle', 16+30,y, 0, zoom)
+      love.graphics.print('* Release the mouse button to finish drawing the circle', 16+30,y, 0, zoom)
       y = y+15*zoom
       love.graphics.print("* Press 'a' to draw just an arc of a circle", 16+30,y, 0, zoom)
     else
-      love.graphics.print('* Release the mouse button to finish drawing an arc', 16+30,y, 0, zoom)
+      love.graphics.print('* Release the mouse button to finish drawing the arc', 16+30,y, 0, zoom)
     end
     y = y+15*zoom
   elseif current_mode == 'polygon' then
-    love.graphics.print('* Release the mouse button to finish drawing a polygon', 16+30,y, 0, zoom)
+    love.graphics.print('* Release the mouse button to finish drawing the polygon', 16+30,y, 0, zoom)
     y = y+15*zoom
     love.graphics.print("* Press 'p' to add a vertex to the polygon", 16+30,y, 0, zoom)
     y = y+15*zoom
@@ -1161,24 +1161,24 @@ function draw_help_with_mouse_pressed(drawing)
     love.graphics.print("* Press 'g' to switch to drawing polygons", 16+30,y, 0, zoom)
     y = y+15*zoom
   end
+  love.graphics.setColor(0,0.5,0, 0.1)
+  love.graphics.rectangle('fill', 16,drawing.y, drawingw, math.max(pixels(drawing.h),y-drawing.y))
 end
 
-function current_shape_singular()
+function current_shape(shape)
   if current_mode == 'freehand' then
     return 'freehand stroke'
   elseif current_mode == 'line' then
     return 'straight line'
   elseif current_mode == 'manhattan' then
     return 'horizontal/vertical line'
+  elseif current_mode == 'circle' and shape and shape.start_angle then
+    return 'arc'
   else
     return current_mode
   end
 end
 
-function current_shape_pluralized()
-  return current_shape_singular()..'s'
-end
-
 _bullet_indent = nil
 function bullet_indent()
   if _bullet_indent == nil then
2022-06-30 22:46:45 -0700 start loading settings as applicable' href='/akkartik/text.love/commit/main.lua?id=da3f6c65b3386949fda417f9bd0030138e3be522'>da3f6c6 ^
42762ce ^

cfdd563 ^
faee5f9 ^
42762ce ^

faee5f9 ^
712dc95 ^
42762ce ^









5ab541f ^
42762ce ^






73fefa7 ^
42762ce ^


e0f7509 ^




42762ce ^
5ab541f ^

712dc95 ^
da3f6c6 ^

42762ce ^







da3f6c6 ^
42762ce ^
0e0f36f ^


da3f6c6 ^
51eb86c ^
42762ce ^
0719fde ^




42762ce ^






4c0095e ^

42762ce ^







0e0f36f ^
33ea91f ^

f421e1d ^
42762ce ^
2b3e09c ^
42762ce ^
2b3e09c ^
42762ce ^


42762ce ^



0e0f36f ^
42762ce ^







8f06b74 ^

f421e1d ^
42762ce ^






51eb86c ^

f421e1d ^
0e0f36f ^
a5f725a ^
0e0f36f ^
fe8e4fd ^
a5f725a ^
42762ce ^







eaa3820 ^

2b3e09c ^
42762ce ^
0e0f36f ^
42762ce ^


























2b3e09c ^
42762ce ^
2b3e09c ^
42762ce ^

94b6d04 ^


f421e1d ^
42762ce ^
0e0f36f ^
94b6d04 ^

42762ce ^

2b3e09c ^
42762ce ^
2b3e09c ^
42762ce ^


bb9e23a ^

f351ee2 ^
42762ce ^
0e0f36f ^
94b6d04 ^

42762ce ^

f351ee2 ^
42762ce ^
f351ee2 ^
42762ce ^


ccf7ecc ^

42762ce ^


7ef551b ^
42762ce ^
7ef551b ^
42762ce ^






2b3e09c ^
42762ce ^
2b3e09c ^
42762ce ^

94b6d04 ^
4aa2003 ^
ce31b74 ^
42762ce ^















ce31b74 ^
ce31b74 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268