|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include "client/theme.h"#include <imgui.h>#include <imgui_internal.h>#include <raylib.h>#include <algorithm>#include <cfloat>#include <cmath>#include <cstdint>#include <string>#include <utility>#include "client/translations.h"Go to the source code of this file.
Namespaces | |
| namespace | nanommo |
Functions | |
| ImU32 | nanommo::Faded (ImU32 color, float share) |
| The same colour, with its alpha times the share. | |
| const Fonts & | nanommo::GetFonts () |
| void | nanommo::LoadFonts (const std::string &folder) |
| std::string | nanommo::FontFolder () |
| Where the client's fonts are, next to it. | |
| float | nanommo::InterfaceScale (float height, float player) |
| float | nanommo::UiScale () |
| void | nanommo::ApplyTheme (float scale) |
| ImGui's style in our colours, with its sizes and its text at the scale. | |
| void | nanommo::PathPanel (ImDrawList *draw, ImVec2 min, ImVec2 max, float cut) |
| A panel's shape: a rectangle with its corners cut off. | |
| void | nanommo::DrawDiamond (ImDrawList *draw, ImVec2 centre, float radius, ImU32 fill, ImU32 outline) |
| A diamond, filled, with an outline. | |
| void | nanommo::DrawPanel (ImDrawList *draw, ImVec2 min, ImVec2 max, float alpha) |
| void | nanommo::DrawDivider (ImDrawList *draw, ImVec2 left, float width) |
| void | nanommo::DrawShadowedText (ImDrawList *draw, ImFont *font, float size, ImVec2 at, ImU32 color, const char *text) |
| Text with a shadow under it. | |
| void | nanommo::DrawGradientText (ImDrawList *draw, ImFont *font, float size, ImVec2 at, ImU32 top, ImU32 bottom, const char *text) |
| void | nanommo::DrawTitle (ImDrawList *draw, ImVec2 top_centre, float size, const char *text) |
| A title in carved gold capitals, centred on the point at its top. | |
| std::string | nanommo::Shown (const char *label) |
| The part of an ImGui label that's shown: what's before any "##". | |
| bool | nanommo::BeginPanel (const char *name, bool *open, ImGuiWindowFlags flags, float alpha) |
| void | nanommo::EndPanel () |
| bool | nanommo::GameButton (const char *label, ImVec2 size, bool primary, bool enabled) |
| void | nanommo::DrawBar (ImDrawList *draw, ImVec2 min, ImVec2 max, float share, ImU32 color, ImU32 dark, const char *text) |
| void | nanommo::DrawSlot (ImDrawList *draw, ImVec2 min, ImVec2 max, ImU32 edge) |
| void | nanommo::DrawRoundButton (ImDrawList *draw, ImVec2 centre, float radius, const char *icon, bool hovered, bool on) |
| void | nanommo::DrawSlotIcon (ImDrawList *draw, ImVec2 min, ImVec2 max, const char *icon, ImU32 color, float alpha=1.0f) |
| An icon in the middle of a slot, in its colour, on a glow of that colour. | |
| void | nanommo::DrawDragged (const char *icon, ImU32 color, float size, ImVec2 grab) |
| void | nanommo::DrawBackdrop (ImDrawList *draw, ImVec2 size, float time) |
| void | nanommo::DrawLogo (ImDrawList *draw, ImVec2 top_centre, float size) |