Files
fs2open.github.com/code/scripting/api/objs/hudconfig.h
T
Mike Nelson 108def6224 Scpui Hud Config API (#5302)
* 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
2023-04-16 08:13:06 -04:00

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