ButtonLocation
Bases: _DataSetIntEnums
This enum class provides the integer values used to reference the button locations in the game. These button locations are what determines where a unit's train button or a research's research button appears in a building's UI
Examples
25
'row_3_col_1'
Source code in AoE2ScenarioParser/datasets/trigger_lists/button_location.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
Attributes¶
dock_page2
property
¶
Returns the button location for the second page.
Used as a suffix to the usual button selection: ButtonLocation.r1c1.dock_page2
Returns:
Type | Description |
---|---|
The value representing the button location for the second page |
Functions¶
def attribute_presentation(...)
¶
Source code in AoE2ScenarioParser/datasets/trigger_lists/button_location.py
40 41 42 43 44 |
|
def row_col(...)
classmethod
¶
Get the button location ID of the row, column specified
Parameters:
Name | Type | Description | Default |
---|---|---|---|
row |
int
|
The number of the row starting from the top (1-5) |
required |
col |
int
|
The number of the column starting from the left (1-3) |
required |
Returns:
Type | Description |
---|---|
int
|
The button location ID of the (row, column) location specified |
Source code in AoE2ScenarioParser/datasets/trigger_lists/button_location.py
57 58 59 60 61 62 63 64 65 66 67 68 69 |
|