Player12
An open source football management simulator
Loading...
Searching...
No Matches
scouting_scene_internal.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <imgui.h>
12
13#include <cstdint>
14#include <string>
15
16#include "model/scouting.h"
17
22namespace ScoutingUi
23{
25float dpi();
26
28std::string lower(std::string text);
29
31std::string rangeText(float low, float high);
32
33ImVec4 gradeColor(ScoutGrade grade);
34const char* gradeLabel(ScoutGrade grade);
35
37void knowledgeBar(std::uint8_t knowledge);
38} // namespace ScoutingUi
Drawing helpers shared by the translation units of ScoutingScene (scouting_scene.cpp and scouting_sco...
Definition scouting_scene.cpp:78
const char * gradeLabel(ScoutGrade grade)
Definition scouting_scene.cpp:115
ImVec4 gradeColor(ScoutGrade grade)
Definition scouting_scene.cpp:99
std::string lower(std::string text)
ASCII lower case, for name searches.
Definition scouting_scene.cpp:86
std::string rangeText(float low, float high)
"68–76".
Definition scouting_scene.cpp:93
void knowledgeBar(uint8_t knowledge)
Definition scouting_scene.cpp:131
float dpi()
Font DPI factor for pixel sizes.
Definition scouting_scene.cpp:84
ScoutGrade
Recommendation grade of a report (values are persisted).
Definition scouting.h:143