summaryrefslogtreecommitdiff
path: root/strings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'strings.cpp')
-rw-r--r--strings.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/strings.cpp b/strings.cpp
index 814a52f..c1b9c9f 100644
--- a/strings.cpp
+++ b/strings.cpp
@@ -1,7 +1,10 @@
-global_variable bool32 Hacko = false;
-global_variable int32 EffectSel = -1;
+static bool32 Hacko = false;
+static int32 EffectSel = -1;
-internal int
+// I'm using the filter's grep functionality to sort the effects for us
+// (probably severely suboptimal), so I'm just using this callback function to
+// signal back to our code that tab has been pressed in the text edit.
+static int
EffectConsoleCallback(ImGuiInputTextCallbackData* data)
{
if (data->EventFlag == ImGuiInputTextFlags_CallbackCompletion)