mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add icon to Create new shortcut option
This commit is contained in:
1 parent
395e186271
commit
0b51d74bb2
4 files changed
+14
-7
No files matched your search
+3
-3
@@ -437,7 +437,7 @@ void GameScreen::CreateContextMenu(UI::ViewGroup *parent) {
|
||||
|
||||
// TODO: This is synchronous, bad!
|
||||
if (!inGame_ && g_recentFiles.ContainsFile(gamePath_.ToString())) {
|
||||
Choice *removeButton = parent->Add(new Choice(ga->T("Remove From Recent")));
|
||||
Choice *removeButton = parent->Add(new Choice(ga->T("Remove From Recent"), ImageID("I_UNPIN")));
|
||||
removeButton->OnClick.Handle(this, &GameScreen::OnRemoveFromRecent);
|
||||
}
|
||||
|
||||
@@ -447,12 +447,12 @@ void GameScreen::CreateContextMenu(UI::ViewGroup *parent) {
|
||||
}
|
||||
|
||||
if (info_->pic1.texture) {
|
||||
Choice *btnSetBackground = parent->Add(new Choice(ga->T("Use background as UI background")));
|
||||
Choice *btnSetBackground = parent->Add(new Choice(ga->T("Use background as UI background"), ImageID("I_DISPLAY")));
|
||||
btnSetBackground->OnClick.Handle(this, &GameScreen::OnSetBackground);
|
||||
}
|
||||
|
||||
if ((knownFlags_ & GameInfoFlags::PARAM_SFO) && System_GetPropertyBool(SYSPROP_CAN_CREATE_SHORTCUT)) {
|
||||
parent->Add(new Choice(ga->T("Create Shortcut")))->OnClick.Add([this](UI::EventParams &e) {
|
||||
parent->Add(new Choice(ga->T("Create Shortcut"), ImageID("I_SHORTCUT")))->OnClick.Add([this](UI::EventParams &e) {
|
||||
GameInfoFlags hasFlags;
|
||||
std::shared_ptr<GameInfo> info_ = g_gameInfoCache->GetInfo(NULL, gamePath_, GameInfoFlags::PARAM_SFO, &hasFlags);
|
||||
if (hasFlags & GameInfoFlags::PARAM_SFO) {
|
||||
|
||||
+2
-2
@@ -607,7 +607,7 @@ void GamePauseScreen::CreateViews() {
|
||||
rightColumnItems->Add(new Choice(pa->T("Game Settings"), ImageID("I_GEAR")))->OnClick.Handle(this, &GamePauseScreen::OnGameSettings);
|
||||
auto pa = GetI18NCategory(I18NCat::PAUSE);
|
||||
if (g_Config.HasGameConfig(g_paramSFO.GetValueString("DISC_ID"))) {
|
||||
Choice *delGameConfig = rightColumnItems->Add(new Choice(pa->T("Delete Game Config")));
|
||||
Choice *delGameConfig = rightColumnItems->Add(new Choice(pa->T("Delete Game Config"), ImageID("I_TRASHCAN")));
|
||||
delGameConfig->OnClick.Handle(this, &GamePauseScreen::OnDeleteConfig);
|
||||
delGameConfig->SetEnabled(!bootPending_);
|
||||
}
|
||||
@@ -709,7 +709,7 @@ void GamePauseScreen::ShowContextMenu(UI::View *menuButton, bool portrait) {
|
||||
using namespace UI;
|
||||
PopupCallbackScreen *contextMenu = new UI::PopupCallbackScreen([this, portrait](UI::ViewGroup *parent) {
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
parent->Add(new Choice(di->T("Reset")))->OnClick.Add([this](UI::EventParams &e) {
|
||||
parent->Add(new Choice(di->T("Reset"), ImageID("I_WARNING")))->OnClick.Add([this](UI::EventParams &e) {
|
||||
std::string confirmMessage = GetConfirmExitMessage();
|
||||
if (!confirmMessage.empty()) {
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
|
||||
@@ -108,6 +108,7 @@ static const ImageMeta imageIDs[] = {
|
||||
{"I_WARNING", false},
|
||||
{"I_TRASHCAN", false},
|
||||
{"I_PLUS", false},
|
||||
{"I_MINUS", false}
|
||||
{"I_ROTATE_LEFT", true},
|
||||
{"I_ROTATE_RIGHT", true},
|
||||
{"I_ARROW_LEFT", true},
|
||||
@@ -180,6 +181,7 @@ static const ImageMeta imageIDs[] = {
|
||||
{"I_UNKNOWN_ISO", false},
|
||||
{"I_UMD_VIDEO_ISO", false},
|
||||
{"I_APP", false},
|
||||
{"I_SHORTCUT, false"},
|
||||
};
|
||||
|
||||
static std::string PNGNameFromID(std::string_view id) {
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
Most of the vectors in images.svg are custom drawn by hrydgard and NABN00B.
|
||||
Most of the vectors in images.svg are custom drawn by hrydgard and some by NABN00B.
|
||||
|
||||
Some are derived from public domain SVGs from the following sites:
|
||||
|
||||
www.svgrepo.com
|
||||
https://www.svgrepo.com
|
||||
https://uxwing.com
|
||||
|
||||
"Flag of Europe" -- Copyright © Council of Europe
|
||||
See the Conditions of use here:
|
||||
https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:42012Y0908(01)&qid=1530786690534&from=EN
|
||||
Reference in new issue
Block a user