From 4d47cb8906efdeb416a739ae31dd56e0638231e6 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Mon, 25 Oct 2004 01:19:58 +0000 Subject: [PATCH] Added GetVideoResolution and GetVideoFullScreen --- doc/scripts/config.html | 38 +++++++++++++++++++++++++++++++++++++- doc/scripts/index.html | 4 ++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/doc/scripts/config.html b/doc/scripts/config.html index e8c984adb..294df8dc7 100644 --- a/doc/scripts/config.html +++ b/doc/scripts/config.html @@ -47,6 +47,7 @@ <hr> <a href="#AStar">AStar</a> <a href="#DecorationOnTop">DecorationOnTop</a> +<a href="#DefineDecorations">DefineDecorations</a> <a href="#DefineDefaultActions">DefineDefaultActions</a> <a href="#DefineDefaultIncomes">DefineDefaultIncomes</a> <a href="#DefineDefaultResourceAmounts">DefineDefaultResourceAmounts</a> @@ -56,9 +57,10 @@ <a href="#DefineDefaultResourcesLow">DefineDefaultResourcesLow</a> <a href="#DefineDefaultResourcesMedium">DefineDefaultResourcesMedium</a> <a href="#DefineSprites">DefinesSprites</a> +<a href="#GetVideoFullScreen">GetVideoFullScreen</a> +<a href="#GetVideoResolution">GetVideoResolution</a> <a href="#HealthSprite">HealthSprite</a> <a href="#ManaSprite">ManaSprite</a> -<a href="#DefineDecorations">DefineDecorations</a> <a href="#RevealMap">RevealMap</a> <a href="#RightButtonAttacks">RightButtonAttacks</a> <a href="#RightButtonMoves">RightButtonMoves</a> @@ -377,6 +379,40 @@ DefineSprites({Name = "sprite-health", File = "graphics/ui/health2.png", Offset {Name = "sprite-mana", File = "graphics/ui/mana2.png", Offset = {0, -1}, Size = {31, 4}}) </pre> +<a name="GetVideoFullScreen"></a> +<h3>GetVideoFullScreen()</h3> + +Check if the game is in full screen or windowed mode. + +<dl> +<dt><i>RETURNS</i></dt> +<dd>True if full screen, false if in windowed mode</dd> +</dl> + +<h4>Example</h4> + +<pre> + -- Get Fullscreen + fullscreen = GetVideoFullScreen() +</pre> + +<a name="GetVideoResolution"></a> +<h3>GetVideoResolution()</h3> + +Get the video resolution. + +<dl> +<dt><i>RETURNS</i></dt> +<dd>Width and Height of current resolution</dd> +</dl> + +<h4>Example</h4> + +<pre> + -- Get the video resolution + w,h = GetVideoResolution() +</pre> + <a name="HealthSprite"></a> <h3>HealthSprite(file, hotx, hoty, width, height)</h3> diff --git a/doc/scripts/index.html b/doc/scripts/index.html index 406173b26..b3e628cdd 100644 --- a/doc/scripts/index.html +++ b/doc/scripts/index.html @@ -262,6 +262,10 @@ <dd></dd> <dt><a href="game.html#GetUnitUnholyArmor">GetUnitUnholyArmor</a></dt> <dd></dd> +<dt><a href="config.html#GetVideoFullScreen">GetVideoFullScreen</a></dt> +<dd></dd> +<dt><a href="config.html#GetVideoResolution">GetVideoResolution</a></dt> +<dd></dd> <dt><a href="game.html#Group">Group</a></dt> <dd></dd> <dt><a href="config.html#HealthSprite">HealthSprite</a></dt>