mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
UI: Add text description for all views.
This commit is contained in:
1 parent
7c72fe7110
commit
3c778f567c
23 files changed
+252
-103
No files matched your search
@@ -1,3 +1,4 @@
|
||||
#include <sstream>
|
||||
#include "UI/OnScreenDisplay.h"
|
||||
|
||||
#include "Common/Data/Color/RGBAUtil.h"
|
||||
@@ -44,6 +45,18 @@ void OnScreenMessagesView::Draw(UIContext &dc) {
|
||||
osm.Unlock();
|
||||
}
|
||||
|
||||
std::string OnScreenMessagesView::DescribeText() const {
|
||||
std::stringstream ss;
|
||||
const auto &messages = osm.Messages();
|
||||
for (auto iter = messages.begin(); iter != messages.end(); ++iter) {
|
||||
if (iter != messages.begin()) {
|
||||
ss << "\n";
|
||||
}
|
||||
ss << iter->text;
|
||||
}
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
void OnScreenMessages::Clean() {
|
||||
restart:
|
||||
double now = time_now_d();
|
||||
|
||||
Reference in new issue
Block a user