17 void save(ImGuiTextBuffer& buf)
override;
22 static void renderPatterns(
int mode, std::span<const uint32_t, 16> palette,
23 int fgCol,
int bgCol,
int fgBlink,
int bgBlink,
32 bool overrideAll =
false;
33 bool overrideMode =
false;
34 bool overrideFgCol =
false;
35 bool overrideBgCol =
false;
36 bool overrideFgBlink =
false;
37 bool overrideBgBlink =
false;
38 bool overrideBlink =
false;
39 bool overridePat =
false;
40 bool overrideCol =
false;
41 bool overrideNam =
false;
42 bool overrideRows =
false;
43 bool overrideColor0 =
false;
45 bool nameTableOverlay =
false;
46 gl::vec4 gridColor{0.0f, 0.0f, 0.0f, 0.5f};
48 enum CharScrnMode :
int { TEXT40, TEXT80, SCR1, SCR2, SCR3, SCR4, OTHER };
52 int manualFgBlink = 14;
53 int manualBgBlink = 1;
55 int manualPatBase = 0;
56 int manualColBase = 0;
57 int manualNamBase = 0;
59 int manualColor0 = 16;
65 static constexpr auto persistentElements = std::tuple{
79 PersistentElementMax{
"zoom", &ImGuiCharacter::zoom, 8},
83 PersistentElementMax{
"mode", &ImGuiCharacter::manualMode, OTHER},
84 PersistentElementMax{
"fgCol", &ImGuiCharacter::manualFgCol, 16},
85 PersistentElementMax{
"bgCol", &ImGuiCharacter::manualBgCol, 16},
86 PersistentElementMax{
"fgBlink", &ImGuiCharacter::manualFgBlink, 16},
87 PersistentElementMax{
"bgBlink", &ImGuiCharacter::manualBgBlink, 16},
89 PersistentElementMax{
"patBase", &ImGuiCharacter::manualPatBase, 0x20000},
90 PersistentElementMax{
"colBase", &ImGuiCharacter::manualColBase, 0x20000},
91 PersistentElementMax{
"namBase", &ImGuiCharacter::manualNamBase, 0x20000},
92 PersistentElementMax{
"rows", &ImGuiCharacter::manualRows, 3},
93 PersistentElementMax{
"color0", &ImGuiCharacter::manualColor0, 16 + 1}
Most basic/generic texture: only contains a texture ID.