Update About Dolphin Screen

This commit is contained in:
Fog 2015-02-04 21:12:18 -05:00
parent d601657c99
commit a94e31e476
3 changed files with 769 additions and 2905 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -6,14 +6,16 @@
#include <wx/defs.h>
#include <wx/dialog.h>
#include <wx/gdicmn.h>
#include <wx/hyperlink.h>
#include <wx/image.h>
#include <wx/mstream.h>
#include <wx/sizer.h>
#include <wx/statbmp.h>
#include <wx/stattext.h>
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/translation.h>
#include <wx/windowid.h>
#include <wx/generic/statbmpg.h>
#include "Common/Common.h"
#include "DolphinWX/AboutDolphin.h"
@ -26,54 +28,97 @@ AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
{
wxMemoryInputStream istream(dolphin_logo_png, sizeof dolphin_logo_png);
wxImage iDolphinLogo(istream, wxBITMAP_TYPE_PNG);
wxStaticBitmap* const sbDolphinLogo = new wxStaticBitmap(this, wxID_ANY,
wxGenericStaticBitmap* const sbDolphinLogo = new wxGenericStaticBitmap(this, wxID_ANY,
wxBitmap(iDolphinLogo));
const wxString Text = wxString::Format(_("Dolphin %s\n"
"Copyright (c) 2003-2014+ Dolphin Team\n"
"\n"
"Branch: %s\n"
"Revision: %s\n"
"Compiled: %s @ %s\n"
"\n"
"Dolphin is a GameCube/Wii emulator, which was\n"
"originally written by F|RES and ector.\n"
"Today Dolphin is an open source project with many\n"
"contributors, too many to list.\n"
"If interested, just go check out the project page at\n"
"https://github.com/dolphin-emu/dolphin .\n"
"\n"
"Special thanks to Bushing, Costis, CrowTRobo,\n"
"Marcan, Segher, Titanik, or9 and Hotquik for their\n"
"reverse engineering and docs/demos.\n"
"\n"
"Big thanks to Gilles Mouchard whose Microlib PPC\n"
"emulator gave our development a kickstart.\n"
"\n"
"Thanks to Frank Wille for his PowerPC disassembler,\n"
"which or9 and we modified to include Gekko specifics.\n"
"\n"
"Thanks to hcs/destop for their GC ADPCM decoder.\n"
"\n"
"We are not affiliated with Nintendo in any way.\n"
"GameCube and Wii are trademarks of Nintendo.\n"
"The emulator should not be used to play games\n"
"you do not legally own."),
scm_desc_str, scm_branch_str, scm_rev_git_str, __DATE__, __TIME__);
const wxString DolphinText = _("Dolphin");
const wxString RevisionText = scm_desc_str;
const wxString CopyrightText = _("(c) 2003-2015+ Dolphin Team. \"GameCube\" and \"Wii\" are trademarks of Nintendo. Dolphin is not affiliated with Nintendo in any way.");
const wxString BranchText = wxString::Format(_("Branch: %s"), scm_branch_str);
const wxString BranchRevText = wxString::Format(_("Revision: %s"), scm_rev_git_str);
const wxString CompiledText = wxString::Format(_("Compiled: %s @ %s"), __DATE__, __TIME__);
const wxString CheckUpdateText = _("Check for updates: ");
const wxString Text = _("\n"
"Dolphin is a free and open-source GameCube and Wii emulator.\n"
"\n"
"This software should not be used to play games you do not legally own.\n");
const wxString LicenseText = _("License");
const wxString AuthorsText = _("Authors");
const wxString SupportText = _("Support");
wxStaticText* const Dolphin = new wxStaticText(this, wxID_ANY, DolphinText);
wxTextCtrl* const Revision = new wxTextCtrl(this, wxID_ANY, RevisionText, wxDefaultPosition, wxDefaultSize);
wxStaticText* const Copyright = new wxStaticText(this, wxID_ANY, CopyrightText);
wxTextCtrl* const Branch = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxSize(300, 50), wxTE_MULTILINE | wxNO_BORDER | wxTE_NO_VSCROLL);
wxStaticText* const Message = new wxStaticText(this, wxID_ANY, Text);
Message->Wrap(GetSize().GetWidth());
wxStaticText* const Update = new wxStaticText(this, wxID_ANY, CheckUpdateText);
wxStaticText* const FirstSpacer = new wxStaticText(this, wxID_ANY, wxString(" | "));
wxStaticText* const SecondSpacer = new wxStaticText(this, wxID_ANY, wxString(" | "));
wxHyperlinkCtrl* const Download = new wxHyperlinkCtrl(this, wxID_ANY, "dolphin-emu.org/download", "https://dolphin-emu.org/download/");
wxHyperlinkCtrl* const License = new wxHyperlinkCtrl(this, wxID_ANY, LicenseText, "https://github.com/dolphin-emu/dolphin/blob/master/license.txt");
wxHyperlinkCtrl* const Authors = new wxHyperlinkCtrl(this, wxID_ANY, AuthorsText, "https://github.com/dolphin-emu/dolphin/graphs/contributors");
wxHyperlinkCtrl* const Support = new wxHyperlinkCtrl(this, wxID_ANY, SupportText, "https://forums.dolphin-emu.org/");
wxFont DolphinFont = Dolphin->GetFont();
wxFont RevisionFont = Revision->GetFont();
wxFont CopyrightFont = Copyright->GetFont();
wxFont BranchFont = Branch->GetFont();
DolphinFont.SetPointSize(36);
Dolphin->SetFont(DolphinFont);
RevisionFont.SetWeight(wxFONTWEIGHT_BOLD);
Revision->SetFont(RevisionFont);
Revision->SetEditable(false);
Revision->SetWindowStyle(wxNO_BORDER);
BranchFont.SetPointSize(7);
Branch->SetFont(BranchFont);
Branch->SetEditable(false);
Branch->AppendText(BranchText + "\n");
Branch->AppendText(BranchRevText + "\n");
Branch->AppendText(CompiledText);
CopyrightFont.SetPointSize(7);
Copyright->SetFont(CopyrightFont);
Copyright->SetFocus();
wxBoxSizer* const sCheckUpdates = new wxBoxSizer(wxHORIZONTAL);
sCheckUpdates->Add(Update);
sCheckUpdates->Add(Download);
wxBoxSizer* const sLinks = new wxBoxSizer(wxHORIZONTAL);
sLinks->Add(License);
sLinks->Add(FirstSpacer);
sLinks->Add(Authors);
sLinks->Add(SecondSpacer);
sLinks->Add(Support);
wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL);
sInfo->Add(Message, 1, wxEXPAND | wxALL, 5);
sInfo->Add(Dolphin);
sInfo->AddSpacer(5);
sInfo->Add(Revision);
sInfo->AddSpacer(10);
sInfo->Add(Branch);
sInfo->Add(sCheckUpdates);
sInfo->Add(Message);
sInfo->Add(sLinks);
wxBoxSizer* const sMainHor = new wxBoxSizer(wxHORIZONTAL);
sMainHor->Add(sbDolphinLogo, 0, wxEXPAND | wxALL, 5);
sMainHor->Add(sbDolphinLogo);
sMainHor->Add(sInfo);
sMainHor->AddSpacer(30);
wxBoxSizer* const sFooter = new wxBoxSizer(wxVERTICAL);
sFooter->AddSpacer(15);
sFooter->Add(Copyright, 0, wxALIGN_BOTTOM | wxALIGN_CENTER);
sFooter->AddSpacer(5);
wxBoxSizer* const sMain = new wxBoxSizer(wxVERTICAL);
sMain->Add(sMainHor, 1, wxEXPAND);
sMain->Add(CreateButtonSizer(wxOK), 0, wxEXPAND | wxLEFT | wxRIGHT | wxBOTTOM, 5);
sMain->Add(sFooter, 0, wxEXPAND);
SetSizerAndFit(sMain);
Center();

File diff suppressed because it is too large Load diff