226 |
if (Surface *img = cache.get(enigma::FindDataFile(fname))) |
if (Surface *img = cache.get(enigma::FindDataFile(fname))) |
227 |
blit (gc, xpos, ypos, img); |
blit (gc, xpos, ypos, img); |
228 |
|
|
229 |
if (options::LevelStatus *ls = options::GetLevelStatus(level_pack.name, |
options::LevelStatus *ls; |
230 |
levels[i].filename)) |
|
231 |
|
if ((ls=options::GetLevelStatus(level_pack.name, |
232 |
|
levels[i].filename))) |
233 |
{ |
{ |
234 |
if (ls->finished != 0) |
if (ls->finished != 0) |
235 |
blit (gc, xpos, ypos, enigma::GetImage("completed")); |
blit (gc, xpos, ypos, enigma::GetImage("completed")); |
537 |
level_pack(lp) |
level_pack(lp) |
538 |
{ |
{ |
539 |
{ |
{ |
|
// BuildHList hlist(this, Rect(30,10,100,28), 10); |
|
540 |
BuildVList hlist(this, Rect(510,20,100,28), 5); |
BuildVList hlist(this, Rect(510,20,100,28), 5); |
541 |
start = hlist.add(new ImageButton("ic-top", "ic-top1")); |
start = hlist.add(new ImageButton("ic-top", "ic-top1")); |
542 |
pgup = hlist.add(new ImageButton("ic-up", "ic-up1")); |
pgup = hlist.add(new ImageButton("ic-up", "ic-up1")); |
554 |
vlist.add(newgame); |
vlist.add(newgame); |
555 |
vlist.add(quit); |
vlist.add(quit); |
556 |
} |
} |
|
#if 0 |
|
|
HList *hlist = new HList; |
|
|
hlist->move(20,480-10-28); |
|
|
hlist->add_back(newgame); |
|
|
hlist->add_back(quit); |
|
|
|
|
|
x0=20; |
|
|
y0=10; |
|
|
add(new TextButton("Hard"), Rect(x0, y0, 100,28)); |
|
|
add(new TextButton("Time Game"), Rect(x0+110, y0, 100,28)); |
|
|
#endif |
|
557 |
|
|
558 |
// Add levelwidget at the center |
// Add levelwidget at the center |
|
// add(levelwidget, Rect(0,48,640,480-48*2)); |
|
559 |
add(levelwidget, Rect(10,10,500,480)); |
add(levelwidget, Rect(10,10,500,480)); |
560 |
levelwidget->set_listener(this); |
levelwidget->set_listener(this); |
561 |
} |
} |