19 void save(ImGuiTextBuffer& buf)
override;
24 static void renderPatterns(
int mode, std::span<const uint32_t, 16> palette,
25 int fgCol,
int bgCol,
int fgBlink,
int bgBlink,
36 bool overrideAll =
false;
37 bool overrideMode =
false;
38 bool overrideFgCol =
false;
39 bool overrideBgCol =
false;
40 bool overrideFgBlink =
false;
41 bool overrideBgBlink =
false;
42 bool overrideBlink =
false;
43 bool overridePat =
false;
44 bool overrideCol =
false;
45 bool overrideNam =
false;
46 bool overrideRows =
false;
47 bool overrideColor0 =
false;
49 bool nameTableOverlay =
false;
50 gl::vec4 gridColor{0.0f, 0.0f, 0.0f, 0.5f};
52 enum CharScrnMode :
int { TEXT40, TEXT80, SCR1, SCR2, SCR3, SCR4, OTHER };
56 int manualFgBlink = 14;
57 int manualBgBlink = 1;
59 int manualPatBase = 0;
60 int manualColBase = 0;
61 int manualNamBase = 0;
63 int manualColor0 = 16;
69 static constexpr auto persistentElements = std::tuple{
83 PersistentElementMax{
"zoom", &ImGuiCharacter::zoom, 8},
87 PersistentElementMax{
"mode", &ImGuiCharacter::manualMode, OTHER},
88 PersistentElementMax{
"fgCol", &ImGuiCharacter::manualFgCol, 16},
89 PersistentElementMax{
"bgCol", &ImGuiCharacter::manualBgCol, 16},
90 PersistentElementMax{
"fgBlink", &ImGuiCharacter::manualFgBlink, 16},
91 PersistentElementMax{
"bgBlink", &ImGuiCharacter::manualBgBlink, 16},
93 PersistentElementMax{
"patBase", &ImGuiCharacter::manualPatBase, 0x20000},
94 PersistentElementMax{
"colBase", &ImGuiCharacter::manualColBase, 0x20000},
95 PersistentElementMax{
"namBase", &ImGuiCharacter::manualNamBase, 0x20000},
96 PersistentElementMax{
"rows", &ImGuiCharacter::manualRows, 3},
97 PersistentElementMax{
"color0", &ImGuiCharacter::manualColor0, 16 + 1}
Most basic/generic texture: only contains a texture ID.