From 8f4ab4616565ce1ea571a02a23394f3cb3631e44 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 20 Jul 2019 10:19:01 +0200 Subject: [PATCH] Update CEF inputs for 1.9.0. --- html.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/html.rst b/html.rst index ede59fb..9a62a9b 100644 --- a/html.rst +++ b/html.rst @@ -31,10 +31,16 @@ so that you can load remote resources from local files. (If you wish to locate your HTML path by way of the theme, the variable Nageru.THEME_PATH could prove useful, as it contains the absolute path to the theme in current use.) -You can then add this HTMLInput to a chain (or multiple chains if you'd like), -using code like:: +You can then display HTMLInput or any input in your scene (that you created +earlier with scene:add_input()), using code like:: - local image = chain:add_html_input(html_input) + input:display(html_input) + +or, as described in :ref:`locking`, you can create an input that can *only* +show HTML when you create it:: + + local scene = Scene.new(16, 9) + local input = scene:add_input(html_input) Like video inputs, you can call *get_signal_num()* on the HTML input to get its signal number, for getting its resolution etc. (see below for changing -- 2.39.2