/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27

« back to all changes in this revision

Viewing changes to pause_view.lua

  • Committer: Josh C
  • Date: 2013-08-25 15:58:43 UTC
  • Revision ID: josh@9ix.org-20130825155843-quc2317jh92awkmx
win screen (no trigger)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
              local boxT = the.app.height / 2 - boxH / 2
7
7
              local boxR = boxL + boxW
8
8
              local boxB = boxT + boxH
9
 
              local nr = 'data/NewRocker-Regular.otf'
10
 
 
11
 
              self.scale = the.app.scale
12
 
              self.realTranslate = the.app.view.realTranslate
13
9
 
14
10
              self:add(Fill:new{
15
11
                          fill = {240,221,58},
32
28
                          x = boxL,
33
29
                          y = boxT + 16,
34
30
                          width = boxW,
35
 
                          font = {nr, 24},
 
31
                          font = 24,
36
32
                          align = 'center',
37
33
                          tint = {0,0,0}
38
34
                       })
42
38
                          x = boxL,
43
39
                          y = boxT + 48,
44
40
                          width = boxW,
45
 
                          font = {nr, 24},
 
41
                          font = 24,
46
42
                          align = 'center',
47
43
                          tint = {0,0,0}
48
44
                       })
51
47
           end,
52
48
   onUpdate = function (self)
53
49
                 if the.keys:justPressed('escape', 'n') then
54
 
                   if love.system.getOS() == 'Android' then
55
 
                     the.app:quit()
56
 
                   else
57
50
                    self:deactivate()
58
 
                   end
59
51
                 elseif the.keys:justPressed('q', 'y') then
60
52
                    if the.profiler then
61
53
                       the.profiler:stop()
67
59
                    the.app:quit()
68
60
                 end
69
61
              end
70
 
}
 
62
}
 
 
b'\\ No newline at end of file'