1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<html><head><title>renpy.shown window - Ren'Py Visual Novel Engine</title><link href="../../shared.css" rel="stylesheet"><link href="../../monobook.css" rel="stylesheet"><link href="../../common.css" rel="stylesheet"><link href="../../monobook2.css" rel="stylesheet"><link href="../../docs.css" rel="stylesheet" /></link></link></link></link></head><body><div id="bodyContent">
<p class="docnav"><a href="../../index.html">documentation index</a> ◦ <a href="../Reference_Manual.html">reference manual</a> ◦ <a href="../Function_Index.html">function index</a></p><p><a id="renpy.shown_window" name="renpy.shown_window"></a></p>
<h1><span class="mw-headline">renpy.shown_window</span></h1>
<p><span id="renpy.shown_window" /></p>
<table>
<tr>
<td valign="top">Function:</td>
<td valign="top"><b><strong class="selflink">renpy.shown_window</strong></b></td>
<td valign="top">():</td>
</tr>
</table>
<div class="renpy-doc">
<p>This should be called when a window is shown on the screen. Calling this prevents <a href="../../reference/Configuration_Variables#config.empty_window" title="renpy/doc/reference/Configuration Variables">config.empty_window</a> from being called when <a href="../../reference/Store_Variables#_window" title="renpy/doc/reference/Store Variables">_window</a> is true. (And hence, prevents the empty window from being shown.)</p>
</div>
<pre>
<span class="slc"># This displays something like a window on the screen, so we don't want to display</span>
<span class="slc"># the default window.</span>
<span class="kwa">python</span><span class="sym">:</span>
ui<span class="sym">.</span><span class="kwa">window</span><span class="sym">()</span>
ui<span class="sym">.</span><span class="kwd">text</span><span class="sym">(</span><span class="str">"Hello, World."</span>
renpy<span class="sym">.</span><span class="kwd">shown_window</span><span class="sym">()</span>
ui<span class="sym">.</span><span class="kwd">interact</span><span class="sym">()</span> <span class="slc"># Won't show empty window.</span>
</pre>
<div class="visualClear" />
<hr /><p class="docnav"><a href="../../index.html">documentation index</a> ◦ <a href="../Reference_Manual.html">reference manual</a> ◦ <a href="../Function_Index.html">function index</a></p></div>
</body></html>
|