Files
asarium 1662a3c317 Add new HUD gauge type for scripted gauges
The new gauge can be accessed by the scripting API with which a function
can be set which will be called when this gauge is rendered. This can be
used for exposing the HUD gauge positioning and RTT options to the
scripting API without a lot of work needed for the script writer.

There is currently only one rendering function implemented since this is
only a proof of concept.
2019-03-17 09:27:58 +01:00

19 lines
288 B
C++

#pragma once
#ifndef FS2_OPEN_HUDGAUGE_H
#define FS2_OPEN_HUDGAUGE_H
#include "scripting/ade_api.h"
#include "hud/hud.h"
namespace scripting {
namespace api {
DECLARE_ADE_OBJ(l_HudGauge, HudGauge*);
DECLARE_ADE_OBJ(l_HudGaugeDrawFuncs, HudGauge*);
}
}
#endif // FS2_OPEN_HUDGAUGE_H