Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat feature based on Adenovan's Rechat branch #12667

Merged
merged 27 commits into from
Mar 8, 2020
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
10e874c
PPSSPP early chat feature rebranched
adenovan Oct 21, 2016
bd2342a
Enable chat box
sum2012 Oct 21, 2016
08a1cc7
Add translation
sum2012 Oct 21, 2016
07b1d8b
pointer fix random crash & better substring logic
adenovan Oct 22, 2016
2874c6d
Oops it still random crashed destructor do the fix well
adenovan Oct 22, 2016
18525ea
Android Chat Support
adenovan Oct 23, 2016
5187b9f
Add New Chat Counter
adenovan Oct 24, 2016
f514b25
Windows CTRL + C Hotkey
adenovan Oct 25, 2016
20b289c
cmake buildfix
adenovan Oct 25, 2016
766373e
pointer and scroll fix
adenovan Oct 26, 2016
6b39018
Android chat empty after : fix
adenovan Oct 27, 2016
e17b57d
Add support OSK for windows
sum2012 Oct 27, 2016
fae8633
Build fix for Linux QT
sum2012 Oct 27, 2016
1241d53
Add translation of "You're in Offline Mode"
sum2012 Oct 27, 2016
6121dce
remove pointer and using update() should fix random crash (thanks Ukn…
adenovan Oct 31, 2016
624d1cd
chat screen & chat button position and hide ui on show chat
adenovan Dec 5, 2016
6706698
build fix
adenovan Dec 5, 2016
97a4d64
Rebased and fix the update scroll
adenovan Jun 7, 2017
8ec2d50
Add virtual key for opening chat
adenovan Jun 7, 2017
f5d5687
Quick Chat
adenovan Jul 6, 2017
4420719
Bug fix
adenovan Jul 8, 2017
f236ea1
group chat options and set enabled ptr
adenovan Aug 8, 2017
5382efd
Update ab.cmd
adenovan Aug 8, 2017
142e609
Merge branch 'rechat' of https://github.com/adenovan/amultios-ppsspp …
anr2me Mar 2, 2020
93b59af
Fix building errors
anr2me Mar 2, 2020
394194f
Fix chat color formatting
anr2me Mar 2, 2020
dc4df7d
Tweaked chatbox a little bit
anr2me Mar 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add support OSK for windows
  • Loading branch information
sum2012 authored and adenovan committed Jul 1, 2017
commit e17b57d9cb7a2762be77d6a3c079877dbfa06546
11 changes: 11 additions & 0 deletions UI/ChatScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "Core/HLE/proAdhoc.h"
#include "i18n/i18n.h"
#include <ctype.h>
#include "util/text/utf8.h"


void ChatMenu::CreatePopupContents(UI::ViewGroup *parent) {
Expand All @@ -21,6 +22,16 @@ void ChatMenu::CreatePopupContents(UI::ViewGroup *parent) {

#if defined(_WIN32) || defined(USING_QT_UI)
chatEdit_ = bottom->Add(new TextEdit("", n->T("Chat Here"), new LinearLayoutParams(1.0)));
if (g_Config.bBypassOSKWithKeyboard && !g_Config.bFullScreen)
{
std::wstring titleText = ConvertUTF8ToWString(n->T("Chat"));
std::wstring defaultText = ConvertUTF8ToWString(n->T("Chat Here"));
std::wstring inputChars;
if (System_InputBoxGetWString(titleText.c_str(), defaultText, inputChars)) {
chatEdit_->SetText(ConvertWStringToUTF8(inputChars));
}
}

chatEdit_->OnEnter.Handle(this, &ChatMenu::OnSubmit);
bottom->Add(new Button(n->T("Send")))->OnClick.Handle(this, &ChatMenu::OnSubmit);
#elif defined(__ANDROID__)
Expand Down