mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Prevents nanoui from flickering when opened in fancy mode
This commit is contained in:
@@ -416,6 +416,11 @@ nanoui is used to open and update nano browser uis
|
||||
if(!initial_data)
|
||||
set_initial_data(src_object.ui_data(user, ui_key, state)) // Get the UI data.
|
||||
|
||||
// Preset the can_rezie and titlebar values on uis if the user has fancy uis set
|
||||
// Prevents the ui from flickering when opened
|
||||
if(user.client.prefs.nanoui_fancy)
|
||||
set_window_options("focus=0;can_close=1;can_minimize=1;can_maximize=0;can_resize=0;titlebar=0;")
|
||||
|
||||
user << browse(get_html(), "window=[window_id];[window_size][window_options]")
|
||||
winset(user, "mapwindow.map", "focus=true") // return keyboard focus to map
|
||||
on_close_winset()
|
||||
|
||||
Reference in New Issue
Block a user