From 7b5076050bfe9e102fa28fe2d1ecc068ab988214 Mon Sep 17 00:00:00 2001 From: TwistedTwigleg Date: Sun, 26 Nov 2017 14:58:38 -0500 Subject: [PATCH] Added documentation for World, Theme, StreamTexture, Sky, and ShortCut --- doc/classes/ShortCut.xml | 8 +++++++ doc/classes/Sky.xml | 13 ++++++++++++ doc/classes/StreamTexture.xml | 3 +++ doc/classes/Theme.xml | 39 +++++++++++++++++++++++++++++++++++ doc/classes/World.xml | 5 +++++ 5 files changed, 68 insertions(+) diff --git a/doc/classes/ShortCut.xml b/doc/classes/ShortCut.xml index 8f28d20fc27..ce6a001279e 100644 --- a/doc/classes/ShortCut.xml +++ b/doc/classes/ShortCut.xml @@ -1,8 +1,11 @@ + A shortcut for binding input. + A shortcut for binding input. + Shortcuts are commonly used for interacting with a [Control] element from a [InputEvent]. @@ -13,6 +16,7 @@ + Returns the Shortcut's [InputEvent] as a [String]. @@ -21,17 +25,21 @@ + Returns [code]true[/code] if the Shortcut's [InputEvent] equals [code]event[/code]. + If [code]true[/code] this Shortcut is valid. + The Shortcut's [InputEvent]. + Generally the [InputEvent] is a keyboard key, though it can be any [InputEvent]. diff --git a/doc/classes/Sky.xml b/doc/classes/Sky.xml index 34950842c9b..33f4a6059c0 100644 --- a/doc/classes/Sky.xml +++ b/doc/classes/Sky.xml @@ -1,8 +1,10 @@ + The base class for [PanoramaSky] and [ProceduralSky]. + The base class for [PanoramaSky] and [ProceduralSky]. @@ -12,24 +14,35 @@ + The Sky's radiance map size. + The higher the radiance map size, the more detailed the lighting from the Sky will be. + See RADIANCE_SIZE_* constants for values. Default size is RADIANCE_SIZE_512. + Radiance texture size is 32x32 pixels. + Radiance texture size is 64x64 pixels. + Radiance texture size is 128x128 pixels. + Radiance texture size is 256x256 pixels. + Radiance texture size is 512x512 pixels. + Radiance texture size is 1024x1024 pixels. + Radiance texture size is 2048x2048 pixels. + Radiance texture size is the largest size it can be. diff --git a/doc/classes/StreamTexture.xml b/doc/classes/StreamTexture.xml index d90a55b5323..2e15070a8f0 100644 --- a/doc/classes/StreamTexture.xml +++ b/doc/classes/StreamTexture.xml @@ -1,8 +1,10 @@ + A .stex texture. + A texture that is loaded from a .stex file. @@ -12,6 +14,7 @@ + The StreamTexture's filepath to a .stex file. diff --git a/doc/classes/Theme.xml b/doc/classes/Theme.xml index 102c5c7ba72..f6d3b97181c 100644 --- a/doc/classes/Theme.xml +++ b/doc/classes/Theme.xml @@ -20,6 +20,7 @@ + Clears theme [Color] at [code]name[/code] if Theme has [code]type[/code]. @@ -30,6 +31,7 @@ + Clears theme constant at [code]name[/code] if Theme has [code]type[/code]. @@ -40,6 +42,7 @@ + Clears [Font] at [code]name[/code] if Theme has [code]type[/code]. @@ -50,6 +53,7 @@ + Clears icon at [code]name[/code] if Theme has [code]type[/code]. @@ -60,12 +64,14 @@ + Clears [StyleBox] at [code]name[/code] if Theme has [code]type[/code]. + Sets theme values to a copy of the default theme values. @@ -76,6 +82,7 @@ + Returns the [Color] at [code]name[/code] if Theme has [code]type[/code]. @@ -84,6 +91,7 @@ + Returns all of the [Color]s as a [PoolStringArray] filled with each [Color]'s name, for use in [method get_color], if Theme has [code]type[/code]. @@ -94,6 +102,7 @@ + Returns the constant at [code]name[/code] if Theme has [code]type[/code]. @@ -102,6 +111,7 @@ + Returns all of the constants as a [PoolStringArray] filled with each constant's name, for use in [method get_constant], if Theme has [code]type[/code]. @@ -112,6 +122,7 @@ + Returns the [Font] at [code]name[/code] if Theme has [code]type[/code]. @@ -120,6 +131,7 @@ + Returns all of the [Font]s as a [PoolStringArray] filled with each [Font]'s name, for use in [method get_font], if Theme has [code]type[/code]. @@ -130,6 +142,7 @@ + Returns the icon [Texture] at [code]name[/code] if Theme has [code]type[/code]. @@ -138,6 +151,7 @@ + Returns all of the icons as a [PoolStringArray] filled with each [Texture]'s name, for use in [method get_icon], if Theme has [code]type[/code]. @@ -148,6 +162,7 @@ + Returns the icon [StyleBox] at [code]name[/code] if Theme has [code]type[/code]. @@ -156,12 +171,14 @@ + Returns all of the [StyleBox]s as a [PoolStringArray] filled with each [StyleBox]'s name, for use in [method get_stylebox], if Theme has [code]type[/code]. + Returns all of the [StyleBox] types as a [PoolStringArray] filled with each [StyleBox]'s type, for use in [method get_stylebox] and/or [method get_stylebox_list], if Theme has [code]type[/code]. @@ -170,6 +187,7 @@ + Returns all of the types in [code]type[/code] as a [PoolStringArray] for use in any of the get_* functions, if Theme has [code]type[/code]. @@ -180,6 +198,8 @@ + Returns [code]true[/code] if [Color] with [code]name[/code] is in [code]type[/code]. + Returns [code]false[/code] if Theme does not have [code]type[/code]. @@ -190,6 +210,8 @@ + Returns [code]true[/code] if constant with [code]name[/code] is in [code]type[/code]. + Returns [code]false[/code] if Theme does not have [code]type[/code]. @@ -200,6 +222,8 @@ + Returns [code]true[/code] if [Font] with [code]name[/code] is in [code]type[/code]. + Returns [code]false[/code] if Theme does not have [code]type[/code]. @@ -210,6 +234,8 @@ + Returns [code]true[/code] if icon [Texture] with [code]name[/code] is in [code]type[/code]. + Returns [code]false[/code] if Theme does not have [code]type[/code]. @@ -220,6 +246,8 @@ + Returns [code]true[/code] if [StyleBox] with [code]name[/code] is in [code]type[/code]. + Returns [code]false[/code] if Theme does not have [code]type[/code]. @@ -232,6 +260,8 @@ + Sets Theme's [Color] to [code]color[/code] at [code]name[/code] in [code]type[/code]. + Does nothing if Theme does not have [code]type[/code]. @@ -244,6 +274,8 @@ + Sets Theme's constant to [code]constant[/code] at [code]name[/code] in [code]type[/code]. + Does nothing if Theme does not have [code]type[/code]. @@ -256,6 +288,8 @@ + Sets Theme's [Font] to [code]font[/code] at [code]name[/code] in [code]type[/code]. + Does nothing if Theme does not have [code]type[/code]. @@ -268,6 +302,8 @@ + Sets Theme's icon [Texture] to [code]texture[/code] at [code]name[/code] in [code]type[/code]. + Does nothing if Theme does not have [code]type[/code]. @@ -280,11 +316,14 @@ + Sets Theme's [StyleBox] to [code]stylebox[/code] at [code]name[/code] in [code]type[/code]. + Does nothing if Theme does not have [code]type[/code]. + The theme's default font. diff --git a/doc/classes/World.xml b/doc/classes/World.xml index 640122ff160..9011d396690 100644 --- a/doc/classes/World.xml +++ b/doc/classes/World.xml @@ -15,25 +15,30 @@ + Returns the World's physics space. + Returns the World's visual scenario. + Returns the World's sound space. + The World's [Environment]. + The World's fallback_environment will be used if the World's [Environment] fails or is missing.