Ticket #7981: aboutdialog.diff

File aboutdialog.diff, 1.7 KB (added by SF/khalek_, 22 years ago)

about dialog patch

  • scummvm/gui/dialog.cpp

    diff -urN /home/khalek/cvs/scummvm/gui/dialog.cpp scummvm/gui/dialog.cpp
    old new  
    369369
    370370#pragma mark -
    371371
     372AboutDialog::AboutDialog(NewGui *gui)
     373        : Dialog (gui, 30, 10, 260, 134)
     374{
     375        addButton(110, 110, 40, 15, CUSTOM_STRING(23), kCloseCmd, 'C'); // Close dialog - FIXME
     376        new StaticTextWidget(this, 60, 17, 240, 16, "Build " SCUMMVM_VERSION " (" SCUMMVM_CVS ")");
     377        new StaticTextWidget(this, 10, 37, 240, 16, "ScummVM http://scummvm.sourceforge.net");
     378        new StaticTextWidget(this, 60, 67, 240, 16, "All games (c) LucasArts");
     379        new StaticTextWidget(this, 100, 84, 240, 16, "Except");
     380        new StaticTextWidget(this, 30, 97, 240, 16, "Simon the Sorcerer (c) Adventuresoft");
     381}
    372382
    373383PauseDialog::PauseDialog(NewGui *gui)
    374384        : Dialog (gui, 50, 80, 220, 16)
  • scummvm/gui/dialog.h

    diff -urN /home/khalek/cvs/scummvm/gui/dialog.h scummvm/gui/dialog.h
    old new  
    9292class KeysDialog;
    9393class MiscDialog;
    9494
     95class AboutDialog : public Dialog {
     96public:
     97        AboutDialog(NewGui *gui);
     98};
     99
    95100class OptionsDialog : public Dialog {
    96101protected:
    97102        SoundDialog             *_soundDialog;
  • scummvm/newgui.cpp

    diff -urN /home/khalek/cvs/scummvm/newgui.cpp scummvm/newgui.cpp
    old new  
    6060
    6161void NewGui::aboutDialog()
    6262{
    63 //      if (!_aboutDialog)
    64 //              _aboutDialog = new AboutDialog(this);
    65 //      openDialog(_aboutDialog);
     63        if (!_aboutDialog)
     64                _aboutDialog = new AboutDialog(this);
     65        openDialog(_aboutDialog);
    6666}
    6767
    6868void NewGui::optionsDialog()