mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 12:41:35 -10:00
* initial API for hud config elements * get rendering, highlighting, and selecting working * Add a way to create color objects * some cleanup and fixes * go away we dont need you * allow arbitrarily scaling the hud config draw * last few config options and innitial preset handling * vectorize hud presets and setup handling * some last minute fixes * iiiiiiiiiiiiiiiiiiiiiiint * really * documentation and address feedback * completely revert this as well * more documentation * document all the things * comment out unused parameter * peach emoji retentive * whatever * return types * color
32 lines
629 B
C++
32 lines
629 B
C++
#pragma once
|
|
|
|
#include "hud/hudconfig.h"
|
|
#include "scripting/ade_api.h"
|
|
|
|
namespace scripting {
|
|
namespace api {
|
|
|
|
struct gauge_config_h {
|
|
int gauge;
|
|
gauge_config_h();
|
|
explicit gauge_config_h(int l_gauge);
|
|
HC_gauge_region* getGauge() const;
|
|
int getIndex() const;
|
|
const char* getName() const;
|
|
bool isValid() const;
|
|
};
|
|
|
|
struct hud_preset_h {
|
|
int preset;
|
|
hud_preset_h();
|
|
explicit hud_preset_h(int l_preset);
|
|
int getIndex() const;
|
|
SCP_string getName() const;
|
|
bool isValid() const;
|
|
};
|
|
|
|
DECLARE_ADE_OBJ(l_Gauge_Config, gauge_config_h);
|
|
DECLARE_ADE_OBJ(l_HUD_Preset, hud_preset_h);
|
|
|
|
} // namespace api
|
|
} // namespace scripting
|