Files
fs2open.github.com/code/scpui/IncludeNodeHandler.h
asarium a13b503b83 Add more features for the new Options UI
The largest new feature is that it is now possible to include other
files into the RML by using the "include" tag. This is useful for making
markup files more modular.

Also added some more options for existing things (e.g. built-in detail
options).
2020-02-08 13:28:53 +01:00

23 lines
758 B
C++

#pragma once
// Our Assert conflicts with the definitions inside libRocket
#pragma push_macro("Assert")
#undef Assert
#include <Rocket/Core/XMLNodeHandler.h>
#pragma pop_macro("Assert")
namespace scpui {
class IncludeNodeHandler : public Rocket::Core::XMLNodeHandler {
public:
Rocket::Core::Element* ElementStart(Rocket::Core::XMLParser* parser,
const Rocket::Core::String& name,
const Rocket::Core::XMLAttributes& attributes) override;
bool ElementEnd(Rocket::Core::XMLParser* parser, const Rocket::Core::String& name) override;
bool ElementData(Rocket::Core::XMLParser* parser, const Rocket::Core::String& data) override;
void Release() override;
};
} // namespace scpui