mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 04:31:34 -10:00
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.
19 lines
288 B
C++
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
|