added missing properties
This commit is contained in:
1 parent
63ff80cac9
commit
ef2e1b4680
4 files changed
+189
-1
No files matched your search
@@ -28,6 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Cevo/CevoGraphicSet.h"
|
||||
#include "Dpi/DpiGraphics.h"
|
||||
|
||||
#include <QColor>
|
||||
@@ -39,7 +40,6 @@
|
||||
namespace Cevo {
|
||||
|
||||
class Texture;
|
||||
class GraphicSet;
|
||||
class GraphicSetItem;
|
||||
|
||||
// Delphi/VCL TColor ints are packed as $00BBGGRR (red in the low byte, the
|
||||
@@ -48,6 +48,29 @@ class GraphicSetItem;
|
||||
// constructing QColor from the raw hex value directly.
|
||||
QColor colorFromDelphi(int value);
|
||||
|
||||
// Global display gamma correction setting, in percent (100 = no
|
||||
// correction) - ScreenTools.pas's `Gamma`. Call applyGammaToBitmap()
|
||||
// (automatically done by loadGraphicSet()) after changing it.
|
||||
extern int gamma;
|
||||
void applyGammaToBitmap(Dpi::Bitmap &bitmap);
|
||||
// Parses a "RRGGBB" hex string (leading spaces ignored, missing trailing
|
||||
// digits treated as 0) into a gamma-corrected QColor.
|
||||
QColor hexStringToColor(const QString &text);
|
||||
|
||||
// ScreenTools.pas's global `GrExt` registry of loaded GraphicSets.
|
||||
extern GraphicSets grExt;
|
||||
// Directory loadGraphicSet() resolves names against - the application
|
||||
// layer (game/'s Global::getGraphicsDir()) must set this at startup;
|
||||
// widget/ has no Directories.pas port of its own to call directly.
|
||||
extern QString graphicsDir;
|
||||
// Equivalent of ScreenTools.pas's LoadGraphicSet(): loads (or returns the
|
||||
// already-cached) named .png from getGraphicsDir(), building its
|
||||
// transparency mask (magenta/half-magenta color-keyed, matching the
|
||||
// original exactly since sprite() still does raster-op AND/OR
|
||||
// compositing against data/mask, not alpha blending) and companion .grs
|
||||
// item metadata if present. Returns nullptr if the file doesn't exist.
|
||||
GraphicSet *loadGraphicSet(const QString &name, bool transparency = true);
|
||||
|
||||
enum class FontType { Normal, Small, Tiny, Caption, Button, Count };
|
||||
|
||||
// Fonts, the main background texture and the system sprite sheets are
|
||||
|
||||
Reference in new issue
Block a user