implement ui
This commit is contained in:
78
src/ui/VisualsConfig.h
Normal file
78
src/ui/VisualsConfig.h
Normal file
@@ -0,0 +1,78 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <QColor>
|
||||
#include <QString>
|
||||
|
||||
#include "BuildingType.h"
|
||||
|
||||
struct TileVisuals
|
||||
{
|
||||
QColor fill;
|
||||
};
|
||||
|
||||
struct BuildingVisuals
|
||||
{
|
||||
QColor fill;
|
||||
QColor outline;
|
||||
QString glyph;
|
||||
};
|
||||
|
||||
struct ItemVisuals
|
||||
{
|
||||
QColor fill;
|
||||
QColor outline;
|
||||
};
|
||||
|
||||
struct ShipVisuals
|
||||
{
|
||||
QColor fill;
|
||||
QColor outline;
|
||||
};
|
||||
|
||||
struct BeamVisuals
|
||||
{
|
||||
QColor color;
|
||||
int widthPx;
|
||||
};
|
||||
|
||||
struct OverlayVisuals
|
||||
{
|
||||
QColor ghostValid;
|
||||
QColor ghostInvalid;
|
||||
QColor demolishTint;
|
||||
QColor selectionRect;
|
||||
QColor tileHighlight;
|
||||
QColor selectedOutline;
|
||||
};
|
||||
|
||||
struct ToastVisuals
|
||||
{
|
||||
QColor bg;
|
||||
QColor fg;
|
||||
int fontSize;
|
||||
};
|
||||
|
||||
enum class ShipRole
|
||||
{
|
||||
PlayerCombat,
|
||||
Salvage,
|
||||
Repair,
|
||||
Enemy,
|
||||
};
|
||||
|
||||
struct VisualsConfig
|
||||
{
|
||||
TileVisuals asteroid;
|
||||
TileVisuals space;
|
||||
|
||||
std::map<BuildingType, BuildingVisuals> buildings;
|
||||
std::map<std::string, ItemVisuals> items;
|
||||
std::map<ShipRole, ShipVisuals> ships;
|
||||
|
||||
BeamVisuals beams;
|
||||
OverlayVisuals overlays;
|
||||
ToastVisuals toast;
|
||||
};
|
||||
Reference in New Issue
Block a user