From de2c42d90868bed40391db5d68ed3d34f5f961d6 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 23 Mar 2020 12:55:40 +0000 Subject: [PATCH] CDU: add page accessor for testing --- Aircraft/Instruments-3d/cdu2/boeing.nas | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Aircraft/Instruments-3d/cdu2/boeing.nas b/Aircraft/Instruments-3d/cdu2/boeing.nas index 2c55b6b59..32edf6e55 100644 --- a/Aircraft/Instruments-3d/cdu2/boeing.nas +++ b/Aircraft/Instruments-3d/cdu2/boeing.nas @@ -969,6 +969,15 @@ var CDU = { me._savedPage = nil; me.displayPage(saved, CDU.DISPLAY_POP); }, + + getPage: func(tag) { + if (!contains(me._pages, tag)) { + debug.dump("no page with tag:" ~ tag); + return nil; + } + + return me._pages[tag]; + }, requestRefresh: func { me._refresh();