github-actions[bot] 2 päivää sitten
vanhempi
sitoutus
36e79192b4

+ 1 - 0
html/master/_sources/changelog.rst.txt

@@ -23,6 +23,7 @@ Changelog
 * Runtime: changed the semantic of collision filters. See :ref:`Global Physics Config` for details.
 * Runtime: added a new ``collides_with_all_except`` field to the ``collision_filters`` object in the :ref:`Global Physics Config`.
 * Data Compiler: resource packages are now LZ4-compressed.
+* Lua: ``Window.set_cursor_mode()`` will now return a boolean value to indicate if the operation succeeded.
 
 0.60.0 --- 30 Dec 2025
 ----------------------

+ 7 - 4
html/master/_sources/lua_api.rst.txt

@@ -1491,10 +1491,13 @@ Window
 	``corner_bottom_left``, ``corner_bottom_right``, ``size_horizontal``,
 	``size_vertical`` or ``wait``.
 
-**set_cursor_mode** (mode)
-	Sets the mouse cursor *mode* on this window.  Mode can be either ``normal``
-	or ``disabled``.  Setting the mode to ``disabled`` hides the cursor and
-	automatically re-centers it every time it is moved.
+**set_cursor_mode** (mode) : bool
+    Sets the mouse cursor *mode* on this window and returns true if successful.
+    Mode can be either ``normal`` or ``disabled``.  Setting the mode to
+    ``disabled`` hides the cursor and automatically re-centers it every time it
+    is moved. On some platforms or backends disabling the cursor is not allowed
+    or only possible under specific circumnstances (e.g. when the cursor is
+    inside the window rectangle).
 
 World
 =====

+ 3 - 2
html/master/changelog.html

@@ -3,7 +3,7 @@
 <head>
   <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
 
-    <meta property="article:modified_time" content="2026-02-21T18:44:41+00:00" /><meta property="og:title" content="Changelog" />
+    <meta property="article:modified_time" content="2026-02-22T16:55:57+00:00" /><meta property="og:title" content="Changelog" />
 <meta property="og:type" content="website" />
 <meta property="og:url" content="https://docs.crownengine.org/html/latest/changelog.html" />
 <meta property="og:site_name" content="Crown 0.60.0 Manual" />
@@ -142,6 +142,7 @@
 <li><p>Runtime: changed the semantic of collision filters. See <span class="xref std std-ref">Global Physics Config</span> for details.</p></li>
 <li><p>Runtime: added a new <code class="docutils literal notranslate"><span class="pre">collides_with_all_except</span></code> field to the <code class="docutils literal notranslate"><span class="pre">collision_filters</span></code> object in the <span class="xref std std-ref">Global Physics Config</span>.</p></li>
 <li><p>Data Compiler: resource packages are now LZ4-compressed.</p></li>
+<li><p>Lua: <code class="docutils literal notranslate"><span class="pre">Window.set_cursor_mode()</span></code> will now return a boolean value to indicate if the operation succeeded.</p></li>
 </ul>
 </section>
 <section id="dec-2025">
@@ -934,7 +935,7 @@
 
   <div role="contentinfo">
     <p>&#169; <a href="copyright.html">Copyright</a> Except where otherwise noted, content on this page is licensed under a CC-BY-SA 4.0 Int. License.
-      <span class="lastupdated">Last updated on Feb 21, 2026.
+      <span class="lastupdated">Last updated on Feb 22, 2026.
       </span></p>
   </div>
 

+ 8 - 5
html/master/lua_api.html

@@ -3,7 +3,7 @@
 <head>
   <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
 
-    <meta property="article:modified_time" content="2026-01-19T11:32:05+00:00" /><meta property="og:title" content="Lua API reference" />
+    <meta property="article:modified_time" content="2026-02-22T16:55:57+00:00" /><meta property="og:title" content="Lua API reference" />
 <meta property="og:type" content="website" />
 <meta property="og:url" content="https://docs.crownengine.org/html/latest/lua_api.html" />
 <meta property="og:site_name" content="Crown 0.60.0 Manual" />
@@ -1409,9 +1409,12 @@ that world.</p>
 <code class="docutils literal notranslate"><span class="pre">corner_bottom_left</span></code>, <code class="docutils literal notranslate"><span class="pre">corner_bottom_right</span></code>, <code class="docutils literal notranslate"><span class="pre">size_horizontal</span></code>,
 <code class="docutils literal notranslate"><span class="pre">size_vertical</span></code> or <code class="docutils literal notranslate"><span class="pre">wait</span></code>.</p>
 </dd>
-<dt><strong>set_cursor_mode</strong> (mode)</dt><dd><p>Sets the mouse cursor <em>mode</em> on this window.  Mode can be either <code class="docutils literal notranslate"><span class="pre">normal</span></code>
-or <code class="docutils literal notranslate"><span class="pre">disabled</span></code>.  Setting the mode to <code class="docutils literal notranslate"><span class="pre">disabled</span></code> hides the cursor and
-automatically re-centers it every time it is moved.</p>
+<dt><strong>set_cursor_mode</strong> (mode)<span class="classifier">bool</span></dt><dd><p>Sets the mouse cursor <em>mode</em> on this window and returns true if successful.
+Mode can be either <code class="docutils literal notranslate"><span class="pre">normal</span></code> or <code class="docutils literal notranslate"><span class="pre">disabled</span></code>.  Setting the mode to
+<code class="docutils literal notranslate"><span class="pre">disabled</span></code> hides the cursor and automatically re-centers it every time it
+is moved. On some platforms or backends disabling the cursor is not allowed
+or only possible under specific circumnstances (e.g. when the cursor is
+inside the window rectangle).</p>
 </dd>
 </dl>
 </section>
@@ -1544,7 +1547,7 @@ spawned by the level are unspawned.</p>
 
   <div role="contentinfo">
     <p>&#169; <a href="copyright.html">Copyright</a> Except where otherwise noted, content on this page is licensed under a CC-BY-SA 4.0 Int. License.
-      <span class="lastupdated">Last updated on Jan 19, 2026.
+      <span class="lastupdated">Last updated on Feb 22, 2026.
       </span></p>
   </div>
 

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
html/master/searchindex.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
html/master/sitemap.xml


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä