mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 04:49:39 -10:00
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).
23 lines
758 B
C++
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
|