Open ManEnfu opened 1 year ago
Can reproduce.
Worth noting the regular prompt object still works so the Lua implementatiom must be doing something differently that broke somehow.
Sometimes I don't even see the window, game:prompt straight up crashes the game for me.
But when it "works", the ok option doesn't crash the game
(Android 13/OneUI5.1)
likely caused by ui.c:859
void
ui::open_dialog(int num, void *data/*=0*/)
{
JNIEnv *env = Android_JNI_GetEnv();
jclass cls = Android_JNI_GetActivityClass();
jmethodID mid = env->GetStaticMethodID(cls, "open_dialog", "(IZ)V");
if (mid) {
env->CallStaticVoidMethod(cls, mid, (jvalue*)(jint)num, (jboolean)(data ? true : false));
}
}
is this still broken?
I assume so, I don't think there's been any changes made that would have fixed this.
How to reproduce
Place LUA Script object and write:
Expected behavior
A prompt is displayed with message
Hello
and optionsok
andcancel
Resulted behavior
The prompt has empty message, and the only option available display the entire script, which can crash the game.