Skip to content

Commit 8df1940

Browse files
committed
0.9.5 api bump
1 parent 407e4eb commit 8df1940

20 files changed

Lines changed: 103 additions & 52 deletions

GUIScript/functions/Button_EnableBorder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ module: _GemRB
1313

1414
**Return value:** N/A
1515

16-
**See also:** [Button_SetPicture](Button_SetPicture.md), [Button_SetFlags](Button_SetFlags.md), [Button_SetBorder](Button_SetBorder.md)
16+
**See also:** [Button_SetPicture](Button_SetPicture.md), [View_SetFlags](View_SetFlags.md), [Button_SetBorder](Button_SetBorder.md)

GUIScript/functions/Button_SetItemIcon.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Button_SetItemIcon
33
module: _GemRB
44
---
55

6-
**Metaclass Prototype:** SetItemIcon (ITMResRef[, Type, Tooltip, ITM2ResRef, BAM3ResRef]])
6+
**Metaclass Prototype:** SetItemIcon (ITMResRef[, Type, Tooltip, FunctionKey, ITM2ResRef, BAM3ResRef]])
77

88
**Description:** Sets Item icon image on a Button control.
99

@@ -20,6 +20,7 @@ module: _GemRB
2020
* 7 - Item ability icon for second extended header
2121
* 8 - etc.
2222
* Tooltip - if set to 1 or 2 (identified), the tooltip for the item will also be set
23+
* FunctionKey - F-key to map to [1-12]
2324
* ITM2ResRef - if set, a second item to display in the icon. ITM2 is drawn first. The tooltip of ITM is used. Only valid for Type 4 and 5
2425
* BAM3ResRef - if set, a third image will be stacked on top of the others
2526

GUIScript/functions/Button_SetPLT.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,28 @@ title: Button_SetPLT
33
module: _GemRB
44
---
55

6-
**Metaclass Prototype:** SetPLT (PLTResRef, col1, col2, col3, col4, col5, col6, col7, col8[, type])
6+
**Metaclass Prototype:** SetPLT (PLTResRef, ColorDict[, type])
77

88
**Description:** Sets the Picture of a Button Control from a PLT file.
9-
Sets up the palette based on the eight given gradient colors.
9+
Sets up the palette based on the colors contained in ColorDict, where
10+
the key is the stat coresponding to the color.
1011

1112
**Parameters:**
1213
* PLTResRef - the name of the picture (a .plt resref)
13-
* col1-8 - color gradients
14+
* ColorDict - dictionary of up to 8 color stats mapped to indices in the global palette
1415
* type - the byte to use from the gradients:
1516
* 0 Body (robe or armour)
1617
* 1 Weapon
1718
* 2 Shield
1819
* 3 Helmet
1920

21+
**Example:**
22+
23+
import PaperDoll
24+
pc = GemRB.GameGetSelectedPCSingle ()
25+
stats = PaperDoll.ColorStatsFromPC (pc)
26+
Button.SetPLT (PaperDoll.GetActorPaperDoll (pc), stats)
27+
2028
**Return value:** N/A
2129

2230
**See also:** [Button_SetPicture](Button_SetPicture.md)

GUIScript/functions/Button_SetSprites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ setting the IE_GUI_BUTTON_NO_IMAGE flag on the control.
1818

1919
**Return value:** N/A
2020

21-
**See also:** [Button_SetFlags](Button_SetFlags.md), [Button_SetPicture](Button_SetPicture.md), [Button_SetPicture](Button_SetPicture.md)
21+
**See also:** [View_SetFlags](View_SetFlags.md), [Button_SetPicture](Button_SetPicture.md), [Button_SetPicture](Button_SetPicture.md)

GUIScript/functions/Button_SetState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ is a checkbox or a radio button though, their states are handled internally.
2121

2222
**Return value:** N/A
2323

24-
**See also:** [Button_SetFlags](Button_SetFlags.md)
24+
**See also:** [View_SetFlags](View_SetFlags.md)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: ConsolidateLoot
3+
module: GemRB
4+
---
5+
6+
**Prototype:** GemRB.ConsolidateLoot ()
7+
8+
**Description:** Moves all visible loot piles under the selected actor, merges
9+
and sorts the items, then opens up the container window.
10+
11+
**Return value:** N/A
12+

GUIScript/functions/Control_SetVarAssoc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ control. See more about this in 'data_exchange'.
2020

2121
**Special:** If the 'DialogChoose' variable was set to -1 or 0 during a dialog session, it will terminate (-1) or pick the first available option (0) from the dialog automatically. (0 is used for 'continue', -1 is used for 'end dialogue').
2222

23-
**See also:** [Button_SetFlags](Button_SetFlags.md), [SetVar](SetVar.md), [GetVar](GetVar.md)
23+
**See also:** [View_SetFlags](View_SetFlags.md), [SetVar](SetVar.md), [GetVar](GetVar.md)

GUIScript/functions/CreateCreature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ at the specified point (takes precedence if both are specified).
1313
* CreResRef - the creature's name (.cre resref)
1414
* posX, posY - position to create at
1515

16-
**Return value:** N/A
16+
**Return value:** global ID of the created creature
1717

1818
**See also:** [CreateItem](CreateItem.md)

GUIScript/functions/EvaluateString.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ title: EvaluateString
33
module: GemRB
44
---
55

6-
**Prototype:** GemRB.EvaluateString (String)
6+
**Prototype:** GemRB.EvaluateString (String[, quiet=False])
77

88
**Description:** Evaluates an ingame script trigger in the current area
99
script context. It prints the result. The command is more useful from the
1010
ingame debug console than from scripts.
1111

1212
**Parameters:**
1313
* String - a gamescript trigger
14+
* quiet - set to True to skip printing the result
1415

15-
**Return value:** N/A (the trigger's return value is printed)
16+
**Return value:** the trigger's return value
17+
18+
**Examples:**
19+
20+
GemRB.EvaluateString('HPPercentLT(Player1, 20)', True)
1621

1722
**See also:** [ExecuteString](ExecuteString.md)
1823

GUIScript/functions/ExecuteString.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ module: GemRB
55

66
**Prototype:** GemRB.ExecuteString (String[, Slot])
77

8-
**Description:** Executes an in-game script action in the current area
9-
script context. This means that LOCALS will be treated as the current
10-
area's variable. If a number was given, it will execute the action in the
11-
numbered actor's context.
8+
**Description:** Executes an in-game script action. If a valid Slot (greater than 0)
9+
is specified, the actor in that Slot is used as the script context. Slot numbers
10+
[1-1000] are treated as portrait indices, while Slot numbers greater than 1000 are
11+
treated as global actor IDs. If no Slot is specified, the scriptable object (actor,
12+
container, door, etc.) currently under the cursor (if available) becomes the script
13+
context. If no valid object exists under the cursor, the current area script is used
14+
as the script context instead.
15+
16+
The script context determines which scriptable executes the action and its
17+
associated behavior. For example, LOCALS used by the action will be those of the
18+
object acting as the script context.
1219

1320
**Parameters:**
1421
* String - a gamescript action

0 commit comments

Comments
 (0)