mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2025-03-12 14:56:37 +01:00
31 lines
771 B
C++
31 lines
771 B
C++
#ifndef RECOMPUI_ELEMENTS_CONFIG_GROUP_H
|
|
#define RECOMPUI_ELEMENTS_CONFIG_GROUP_H
|
|
|
|
#include "RmlUi/Core/Element.h"
|
|
#include "json/json.hpp"
|
|
#include "../config_options/ConfigOption.h"
|
|
|
|
namespace recompui {
|
|
|
|
/**
|
|
Base custom element representing a single config option.
|
|
Maps to other custom elements.
|
|
*/
|
|
|
|
class ElementConfigGroup : public Rml::Element {
|
|
public:
|
|
ElementConfigGroup(const Rml::String& tag);
|
|
virtual ~ElementConfigGroup();
|
|
|
|
ConfigOptionType option_type;
|
|
std::string config_key;
|
|
protected:
|
|
void OnAttributeChange(const Rml::ElementAttributes& changed_attributes);
|
|
void AddConfigOptionElement(const nlohmann::json& option_json);
|
|
void SetTextLabel(const std::string& s);
|
|
void ToggleTextLabelVisibility(bool show);
|
|
};
|
|
|
|
}
|
|
#endif
|