FLUF.UI¶
-
class FlufUi : public FlufModule¶
FLUF UI offers a number of different methods for manipulating / adding to the Freelancer GUI.
At the time of writing, there are two methods. ‘Vanilla’ style and ‘ImGui’ style (these can be used together). Vanilla style lets you remove, trigger, listen to, or add elements to the original Freelancer interface. ImGui is one of the most used UI libraries and is very easy to use, but somewhat difficult to style effectively. It requires DirectX9 in order to run, currently this can be done by using d3d8to9.
- Author
Laz
Public Functions
- FLUF_UI_API std::weak_ptr< HudManager > GetHudManager ()
Gets the HudManager class which is used to manipulate the vanilla freelancer interface.
- FLUF_UI_API std::shared_ptr< FlufUiConfig > GetConfig ()
Gets the config settings for FLUF UI.
- FLUF_UI_API ImGuiInterface * GetImGuiInterface () const
Gets the ImGui interface for loading textures or registering modules. Will be a nullptr if the current ui mode is not set to imgui.
Private Functions
-
virtual void OnGameLoad() override¶
Hook on OnGameLoad (main menu loaded). Initialises RML with Directx9 if the mode is enabled and DX9 is found.