summaryrefslogtreecommitdiffstats
path: root/src/extras
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-05-29 19:29:18 +0200
committereray orçunus <erayorcunus@gmail.com>2020-05-29 19:29:18 +0200
commit9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c (patch)
treee06549e071ececbc1c340f0c413378a427390027 /src/extras
parentremove inlining attempts + reload frontend options for real (diff)
downloadre3-9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c.tar
re3-9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c.tar.gz
re3-9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c.tar.bz2
re3-9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c.tar.lz
re3-9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c.tar.xz
re3-9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c.tar.zst
re3-9adde91b3a22d15d5e83f94cc9f0b5a9aa4b6b2c.zip
Diffstat (limited to 'src/extras')
-rw-r--r--src/extras/frontendoption.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extras/frontendoption.h b/src/extras/frontendoption.h
index 6c6ac20c..7cfc09a7 100644
--- a/src/extras/frontendoption.h
+++ b/src/extras/frontendoption.h
@@ -21,6 +21,7 @@
#define FEOPTION_ACTION_LEFT 0
#define FEOPTION_ACTION_RIGHT 1
#define FEOPTION_ACTION_SELECT 2
+#define FEOPTION_ACTION_FOCUSLOSS 3
void RemoveCustomFrontendOptions();
void CustomFrontendOptionsPopulate();
@@ -32,7 +33,7 @@ typedef void (*ReturnPrevPageFunc)();
typedef void (*ChangeFunc)(int8 displayedValue); // called before updating the value
// for dynamic options
-typedef void (*DrawFunc)(wchar* out, bool* disabled); // parameters should be set by user, both is allocated. disabled option will be dark yellow
+typedef wchar* (*DrawFunc)(bool* disabled); // should return pointer to right text. *disabled = true will make it dark yellow
typedef void (*ButtonPressFunc)(int8 action); // see FEOPTION_ACTIONs above
struct FrontendOption