Files
YimMenuV2/src/core/commands/StringCommand.hpp
T
maybegreat48 aa3746462b Initial port
2025-03-13 16:59:02 -04:00

26 lines
534 B
C++

#pragma once
#include "Command.hpp"
namespace YimMenu
{
class StringCommand : public Command
{
protected:
std::string m_StringValue;
virtual void OnChange()
{
}
virtual void OnCall() override;
virtual void SaveState(nlohmann::json& value) override;
virtual void LoadState(nlohmann::json& value) override;
public:
StringCommand(std::string name, std::string label, std::string description, std::string defaultValue = "");
std::string GetString() const;
void SetStringValue(const std::string& value);
};
}