aboutsummaryrefslogtreecommitdiff
path: root/elements.lua
blob: ef75a54099acea8d558d8fa619c5e5a239857f15 (plain)
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
function drawXBox(x, y)
  love.graphics.setColor(colors.win.normal)
  love.graphics.rectangle("fill", x, y, 16, 16)
  love.graphics.setColor(colors.font.dark)
  love.graphics.print("X", x+2.5, y+4.5)
  love.graphics.setColor(colors.win.light)
  love.graphics.setLineWidth(1.5)
  love.graphics.line(x, y+16, x, y, x+16, y)
  love.graphics.setColor(colors.win.dark)
  love.graphics.line(x, y+16, x+16, y+16, x+16, y)
end
function drawMinBox(x, y)
  love.graphics.setColor(colors.win.normal)
  love.graphics.rectangle("fill", x, y, 16, 16)
  love.graphics.setColor(colors.font.dark)
  love.graphics.setLineWidth(3.5)
  love.graphics.line(x+3, y+8, x+13, y+8)
  love.graphics.setColor(colors.win.light)
  love.graphics.setLineWidth(1.5)
  love.graphics.line(x, y+16, x, y, x+16, y)
  love.graphics.setColor(colors.win.dark)
  love.graphics.line(x, y+16, x+16, y+16, x+16, y)
end
function drawUpBox(x, y, w, h, t)
  love.graphics.setColor(colors.win.normal)
  love.graphics.rectangle("fill", x, y, w, h)
  love.graphics.setLineWidth(t-0.5)
  love.graphics.setColor(colors.win.light)
  love.graphics.line(x, y+h, x, y, x+w, y)
  love.graphics.setColor(colors.win.dark)
  love.graphics.line(x, y+h, x+w, y+h, x+w, y)
  love.graphics.setColor(255,255,255)
end
function drawDownBox(x, y, w, h, t)
  love.graphics.setColor(colors.win.normal)
  love.graphics.rectangle("fill", x, y, w, h)
  love.graphics.setLineWidth(t-0.5)
  love.graphics.setColor(colors.win.dark)
  love.graphics.line(x, y+h, x, y, x+w, y)
  love.graphics.setColor(colors.win.light)
  love.graphics.line(x, y+h, x+w, y+h, x+w, y)
  love.graphics.setColor(255,255,255)
end
function drawBlueBox(x, y, w, h, t)
  love.graphics.setColor(0, 0, 120)
  love.graphics.rectangle("fill", x, y, w, h)
  love.graphics.setLineWidth(t-0.5)
  love.graphics.setColor(0,0,180)
  love.graphics.line(x, y+h, x, y, x+w, y)
  love.graphics.setColor(0, 0, 80)
  love.graphics.line(x, y+h, x+w, y+h, x+w, y)
  love.graphics.setColor(255,255,255)
end
function drawBubble(x,y,w,h,m)
  love.graphics.setColor(255,255,255)
  love.graphics.rectangle("fill", x+20, y, w-40, h)
  love.graphics.rectangle("fill", x, y+20, w, h-40)
  love.graphics.draw(v1.corner, x, y, 0, 2)
  love.graphics.draw(v1.corner, x+w, y, 0, -2, 2)
  love.graphics.draw(v1.corner, x+w, y+h, 0, -2, -2)
  love.graphics.draw(v1.cornerSpike, x, y+h-20, 0, 2)
  love.graphics.setColor(0,0,0)
  love.graphics.setLineWidth(1.5)
  love.graphics.line(x+20, y+1, x+w-20, y+1)
  love.graphics.line(x+30, y+h-1, x+w-20, y+h-1)
  love.graphics.line(x+1, y+20, x+1, y+h-20)
  love.graphics.line(x+w-1, y+20, x+w-1, y+h-20)
  love.graphics.setFont(pixeloperator)
  love.graphics.printf(m,x+15,y+15,w-30)
  love.graphics.setFont(pressstart)
end