From f87afb2677078a67771b860893c4b2afc2f1b801 Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Sat, 9 Apr 2016 21:39:29 +0200 Subject: [PATCH] Add page indexes --- Nasal/canvas/MFD_Generic.nas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Nasal/canvas/MFD_Generic.nas b/Nasal/canvas/MFD_Generic.nas index c13c717cb..699b56542 100644 --- a/Nasal/canvas/MFD_Generic.nas +++ b/Nasal/canvas/MFD_Generic.nas @@ -150,6 +150,7 @@ var PFD_Device = obj.svg = svg; obj.current_page = nil; obj.pages = []; + obj.page_index = {}; obj.buttons = setsize([], num_menu_buttons); for(var idx = 0; idx < num_menu_buttons; idx += 1) @@ -199,6 +200,7 @@ var PFD_Device = { var np = PFD_Page.new(me.svg, title, layer_id, me); append(me.pages, np); + me.page_index[layer_id] = np; np.setVisible(0); return np; },