|
|
@ -693,17 +693,25 @@ end
|
|
|
|
-- Z-order swapping screen --
|
|
|
|
-- Z-order swapping screen --
|
|
|
|
-----------------------------
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEFAULT_INITIAL_PAUSE = true
|
|
|
|
|
|
|
|
|
|
|
|
local zscreen_inhibit_mouse_l = false
|
|
|
|
local zscreen_inhibit_mouse_l = false
|
|
|
|
|
|
|
|
|
|
|
|
ZScreen = defclass(ZScreen, Screen)
|
|
|
|
ZScreen = defclass(ZScreen, Screen)
|
|
|
|
ZScreen.ATTRS{
|
|
|
|
ZScreen.ATTRS{
|
|
|
|
initial_pause=true,
|
|
|
|
initial_pause=DEFAULT_NIL,
|
|
|
|
force_pause=false,
|
|
|
|
force_pause=false,
|
|
|
|
pass_pause=true,
|
|
|
|
pass_pause=true,
|
|
|
|
pass_movement_keys=false,
|
|
|
|
pass_movement_keys=false,
|
|
|
|
pass_mouse_clicks=true,
|
|
|
|
pass_mouse_clicks=true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ZScreen:preinit(args)
|
|
|
|
|
|
|
|
if args.initial_pause == nil then
|
|
|
|
|
|
|
|
args.initial_pause = DEFAULT_INITIAL_PAUSE
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function ZScreen:init()
|
|
|
|
function ZScreen:init()
|
|
|
|
self.saved_pause_state = df.global.pause_state
|
|
|
|
self.saved_pause_state = df.global.pause_state
|
|
|
|
if self.initial_pause then
|
|
|
|
if self.initial_pause then
|
|
|
|