|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
config.targets = 'core'
|
|
|
|
|
|
|
|
|
|
|
|
function test.getCurViewscreen()
|
|
|
|
function test.getCurViewscreen()
|
|
|
|
local scr = dfhack.gui.getCurViewscreen()
|
|
|
|
local scr = dfhack.gui.getCurViewscreen()
|
|
|
|
local scr2 = df.global.gview.view
|
|
|
|
local scr2 = df.global.gview.view
|
|
|
@ -18,7 +20,7 @@ function test.getViewscreenByType()
|
|
|
|
|
|
|
|
|
|
|
|
local bad_type = df.viewscreen_titlest
|
|
|
|
local bad_type = df.viewscreen_titlest
|
|
|
|
if scr._type == bad_type then
|
|
|
|
if scr._type == bad_type then
|
|
|
|
bad_type = df.viewscreen_optionst
|
|
|
|
bad_type = df.viewscreen_dwarfmodest
|
|
|
|
end
|
|
|
|
end
|
|
|
|
local scr_bad = dfhack.gui.getViewscreenByType(bad_type)
|
|
|
|
local scr_bad = dfhack.gui.getViewscreenByType(bad_type)
|
|
|
|
expect.eq(scr_bad, nil)
|
|
|
|
expect.eq(scr_bad, nil)
|
|
|
|