rex_board_squareTx
Introduction
This plugin provides orthogonal or isometric. or staggered physical layout for rex_board plugin.
This plugin provides orthogonal or isometric. or staggered physical layout for rex_board plugin.
Usage
Assign this object as the parameter in "Action:Setup layout" in rex_board plugin, to configure the board to be an orthogonal or isometric board.
Layout
The orthogonal or isometric, or staggered setting is at "Orientation" in properties table, or use "Action:Set orientation", or "Action:Set orientation by number".
The orthogonal or isometric, or staggered setting is at "Orientation" in properties table, or use "Action:Set orientation", or "Action:Set orientation by number".
Position of each cell
In properties table, "X at (0,0)", and "Y at (0,0)" is the physical position mapped from logical (0,0). "Width" and "Height" is the size of chess. Or use "Action:Set position offset", "Action:Set cell size" to set these properties.
In properties table, "X at (0,0)", and "Y at (0,0)" is the physical position mapped from logical (0,0). "Width" and "Height" is the size of chess. Or use "Action:Set position offset", "Action:Set cell size" to set these properties.
Directions
There is a property "Directions" which could define the directions of neighbors. It will affect the result which related on the information of neighbors, like move-able area and moving path searching in rex_slg_movement plugin, wander result in rex_grid_move behavior.
There is a property "Directions" which could define the directions of neighbors. It will affect the result which related on the information of neighbors, like move-able area and moving path searching in rex_slg_movement plugin, wander result in rex_grid_move behavior.
- Set to "4 directions" would define the neighbors only at right side, down side, left side, and up side.
- Set to "8 directions" would define the neighbors at right side, down side, left side, up side, and right-down side, left-down side, left-up side, right-up side.
Direction
These expressions are the code of direction.
These expressions are the code of direction.
- Expression:DIRRIGHT
- Expression:DIRDOWN
- Expression:DIRLEFT
- Expression:DIRUP
- Expression:DIRRIGHTDOWN
- Expression:DIRLEFTDOWN
- Expression:DIRLEFTUP
- Expression:DIRRIGHTUP
- "Condition:Pick neighbor chess", or "Action:Pick neighbor chess" in rex_board plugin.
Transfer physical position from logical position
Get physical position from logical position by
Get physical position from logical position by
- Physical X = Expression:LXY2PX
- Physical Y = Expression:LXY2PY