Avoid flickering between popup
[demo04] update with popup feature
Fix character_get_portrait LUA call