200 |
|
|
201 |
const int imgw = 120; //238; |
const int imgw = 120; //238; |
202 |
const int imgh = 78; |
const int imgh = 78; |
203 |
const int hgap = 20, vgap=30; |
const int hgap = 30, vgap=30; |
204 |
|
|
205 |
const int x0 = get_x()+(get_w() - width*(imgw+hgap)+hgap)/2; |
const int x0 = get_x()+(get_w() - width*(imgw+hgap)+hgap)/2; |
206 |
const int y0 = get_y()+(get_h() - height*(imgh+vgap))/2; //get_y(); //30; |
const int y0 = get_y()+(get_h() - height*(imgh+vgap))/2; //get_y(); //30; |
218 |
|
|
219 |
int xpos = x0 + x*(imgw + hgap); |
int xpos = x0 + x*(imgw + hgap); |
220 |
int ypos = y0 + y*(imgh + vgap); |
int ypos = y0 + y*(imgh + vgap); |
221 |
areas.push_back(Rect(xpos-hgap/2, ypos-hgap/2, |
areas.push_back(Rect(xpos-10, ypos-10, imgw+20, imgh+35)); |
|
imgw+hgap, imgh+hgap+vgap/2)); |
|
222 |
|
|
223 |
string fname = string("levels/") + levels[i].filename + ".png"; |
string fname = string("levels/") + levels[i].filename + ".png"; |
224 |
if (Surface *img = cache.get(enigma::FindDataFile(fname))) |
if (Surface *img = cache.get(enigma::FindDataFile(fname))) |
461 |
class StereoButton : public TextButton { |
class StereoButton : public TextButton { |
462 |
void update() { |
void update() { |
463 |
if (options::StereoSeparation == 0) |
if (options::StereoSeparation == 0) |
464 |
set_text("Stereo off"); |
set_text("Mono"); |
465 |
else if (options::StereoSeparation > 0) |
else if (options::StereoSeparation > 0) |
466 |
set_text("Stereo on"); |
set_text("Stereo l-r"); |
467 |
else |
else |
468 |
set_text("Stereo inversed"); |
set_text("Stereo r-l"); |
469 |
} |
} |
470 |
// ActionListener interface. |
// ActionListener interface. |
471 |
void on_action(Widget *) { |
void on_action(Widget *) { |