1#ifndef YAZE_APP_CORE_LABELING_H_
2#define YAZE_APP_CORE_LABELING_H_
8#include <unordered_map>
11#include "absl/status/status.h"
12#include "absl/status/statusor.h"
26 const std::string& to);
29static constexpr absl::string_view kDefaultTypes[] = {
30 "Dungeon Names",
"Dungeon Room Names",
"Overworld Map Names"};
36 void EditLabel(
const std::string& type,
const std::string& key,
37 const std::string& newValue);
39 const std::string& key,
40 const std::string& defaultValue);
41 std::string
GetLabel(
const std::string& type,
const std::string& key);
42 std::string
CreateOrGetLabel(
const std::string& type,
const std::string& key,
43 const std::string& defaultValue);
52 std::unordered_map<std::string, std::unordered_map<std::string, std::string>>
std::string UppercaseHexLongLong(uint64_t qword)
bool StringReplace(std::string &str, const std::string &from, const std::string &to)
std::string UppercaseHexWord(uint16_t word)
std::string UppercaseHexLong(uint32_t dword)
std::string UppercaseHexByte(uint8_t byte, bool leading)
std::string display_description
std::string GetLabel(const std::string &type, const std::string &key)
std::unordered_map< std::string, std::unordered_map< std::string, std::string > > labels_
void DisplayLabels(bool *p_open)
bool LoadLabels(const std::string &filename)
std::string CreateOrGetLabel(const std::string &type, const std::string &key, const std::string &defaultValue)
void EditLabel(const std::string &type, const std::string &key, const std::string &newValue)
void SelectableLabelWithNameEdit(bool selected, const std::string &type, const std::string &key, const std::string &defaultValue)