Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ui::ConsoleStyle Struct Reference

Where and how the console is drawn. More...

#include <aegis2d/ui/console.hpp>

Public Attributes

float height = 0.5F
 Part of the screen's height the console covers, from the top.
 
float text_scale = 2.0F
 Scale of the text (render::TextStyle::scale).
 
float margin = 8.0F
 Space between the edges of the panel and the text, in logical pixels.
 
std::int32_t layer = 1'000'010
 Layer of the panel; the text is drawn one layer above.
 
render::Color panel = render::rgb(0x000000, 0.85F)
 Color of the panel behind.
 
render::Color text = render::rgb(0xFFFFFF)
 Color of the output.
 
render::Color input = render::rgb(0xF0E442)
 Color of the input line and of the lines typed.
 
render::Color error = render::rgb(0xD55E00)
 Color of the errors, told from the others with any color vision.
 

Detailed Description

Where and how the console is drawn.

Member Data Documentation

◆ error

render::Color aegis2d::ui::ConsoleStyle::error = render::rgb(0xD55E00)

Color of the errors, told from the others with any color vision.

◆ height

float aegis2d::ui::ConsoleStyle::height = 0.5F

Part of the screen's height the console covers, from the top.

◆ input

render::Color aegis2d::ui::ConsoleStyle::input = render::rgb(0xF0E442)

Color of the input line and of the lines typed.

◆ layer

std::int32_t aegis2d::ui::ConsoleStyle::layer = 1'000'010

Layer of the panel; the text is drawn one layer above.

◆ margin

float aegis2d::ui::ConsoleStyle::margin = 8.0F

Space between the edges of the panel and the text, in logical pixels.

◆ panel

render::Color aegis2d::ui::ConsoleStyle::panel = render::rgb(0x000000, 0.85F)

Color of the panel behind.

◆ text

render::Color aegis2d::ui::ConsoleStyle::text = render::rgb(0xFFFFFF)

Color of the output.

◆ text_scale

float aegis2d::ui::ConsoleStyle::text_scale = 2.0F

Scale of the text (render::TextStyle::scale).


The documentation for this struct was generated from the following file: