mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Merge branch 'main' into 2027
This commit is contained in:
@@ -149,9 +149,14 @@ void glass::DisplayFMSReadOnly(FMSModel* model) {
|
||||
}
|
||||
}
|
||||
if (auto data = model->GetGameSpecificMessageData()) {
|
||||
wpi::SmallString<64> gsmBuf;
|
||||
ImGui::Text("Game Specific: %s",
|
||||
exists ? data->GetValue(gsmBuf).data() : "?");
|
||||
if (exists) {
|
||||
wpi::SmallString<64> gsmBuf;
|
||||
std::string_view gsm = data->GetValue(gsmBuf);
|
||||
ImGui::Text("Game Specific: %.*s", static_cast<int>(gsm.size()),
|
||||
gsm.data());
|
||||
} else {
|
||||
ImGui::TextUnformatted("Game Specific: ?");
|
||||
}
|
||||
}
|
||||
|
||||
if (!exists) {
|
||||
|
||||
Reference in New Issue
Block a user