/[enigma]/enigma/data/models.lua
ViewVC logotype

Diff of /enigma/data/models.lua

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by reallysoft, Sat Jun 28 17:16:25 2003 UTC revision 1.6 by dheck, Fri Sep 12 21:39:50 2003 UTC
# Line 27  Line 27 
27  function Progress(percent)  function Progress(percent)
28      local fontname = "levelmenu"      local fontname = "levelmenu"
29      local scr      = video.GetScreen();      local scr      = video.GetScreen();
30      local d        = scr:get_drawable()      local d = scr:get_surface()
   
     d:box(0,0,scr:width(), scr:height(), d:map_color(0,0,0))  
31    
32      local logo = enigma.GetImage("enigma_logo2")      local logo = enigma.GetImage("enigma_logo2")
33      local x = (scr:width()  - logo:width())/2      local x = (d:width()  - logo:width())/2
34      local y = (scr:height() - logo:height())/2      local y = (d:height() - logo:height())/2
35      d:blit(x , y-logo:height(), logo)      local gs = GS:new(d:size())
36      d:box(x, y, logo:width()*percent/100, 2,      local font = enigma.GetFont("menufont")
37            d:map_color(130,150,150))      local font2 = enigma.GetFont("menufontsel")
38    
39        d:blit(gs, x , y-logo:height(), logo)
40    
41        font:render(d, x, y-10, strrep(".", 50))
42        font2:render(d, x, y-10, strrep(".", percent/2))
43      scr:update_all();      scr:update_all();
44      scr:flush_updates();      scr:flush_updates();
45        gs:delete()
46  end  end
47    
   
48  modeltag = 0  modeltag = 0
49  function unique_modelname()  function unique_modelname()
50      modeltag = modeltag + 1      modeltag = modeltag + 1

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26