Plugin : Mini board
Author:Rex.Rainbow
- A board-container to group chess and move them together.
Download
Properties
Color
- Color for showing at editor.
Pin mode
- Enable to set position of each chess follows to the mini board.
Actions
Main board
Action:Put
- Put chess on the board.
- Board ( object ) : Board object
- Logic X ( number ) : The X index of offset.
- Logic Y ( number ) : The Y index of offset.
- Mode ( Combo ) : Mode of putting.
- Options : ["logical only","logical and physical"]
- Putable test ( Combo ) : Mode of putable test.
- Options : ["None","Inside","Empty","Putable"]
Action:Pull out
- Pull out from main board.
Action:Put back
- Put chess back on the previos board.
- Mode ( Combo ) : Mode of putting.
- Options : ["logical only","logical and physical"]
Main board: Put-able
Action:Set put-able
- Set put-able for this cell, used under "Condition:On put-able request".
- Put-able ( Combo ) : Result of put-able.
Action:Set put-able by number
- Set put-able for this cell, used under "Condition:On put-able request".
- Put-able ( number ) : Result of put-able. 0=No, 1=Yes.
Mini-board: Add
Action:Add chess
- Add chess on the mini board.
- Chess ( object ) : Chess object.
- Logic X ( number ) : The X index (0-based) of the chess to set.
- Logic Y ( number ) : The Y index (0-based) of the chess to set.
- Logic Z ( number or string ) : The Z index of the chess to set. 0 is tile.
Mini-board: Create
Action:Create chess
- Create chess on the mini board.
- Chess ( object ) : Chess object.
- Logic X ( number ) : The X index (0-based) of the chess to set.
- Logic Y ( number ) : The Y index (0-based) of the chess to set.
- Logic Z ( number or string ) : The Z index of the chess to set. 0 is tile.
- Layer ( layer ) : Layer name of number.
Mini-board: Layer
Action:Move all to layer
- Move all to layer.
- Layer ( layer ) : Layer name of number.
Mini-board: Move
Action:Move chess to LZ
- Move chess to logic Z.
- Chess ( object ) : Chess object.
- Logic Z ( number or string ) : The Z index of the chess to move. 0 is tile.
Mini-board: Remove
Action:Remove chess
- Remove chess from mini board.
- Chess ( object ) : Chess object.
Position
Action:Shift LOXY
- Shift the physical position of miniboard and the logic position of all chess.
- LOXY ( Combo ) : Position type.
- Options : ["Top-Left","Center"]
Release
Action:Release all chess
SOL
Action:Pick all chess
- Pick all chess on the board.
Action:Pick chess
- Pick chess on the board.
- Chess ( object ) : Chess object.
Setup
Action:Setup layout
- Setup layout to transfer logic index to physical position.
- Layout ( object ) : Layout to transfer logic index to physical position
Expressions
Main board
Expression:LX
- Get logic X offset on main board.
Expression:LY
- Get logic Y offset on main board.
Expression:LastLX
- Get last valid logic X offset on main board.
Expression:LastLY
- Get last valid logic Y offset on main board.
Main board: Put-able
Expression:RequestLX
- Get logic X of request cell on main board.
Expression:RequestLY
- Get logic Y of request cell on main board.
Expression:RequestLZ
- Get logic Z of request cell on main board.
Expression:RequestChessUID
- Get UID of request chess on mini board.
Expression:RequestMainBoardUID
- Get UID of put main board.
Max-min
Expression:MaxLX
- Get maximum of LX of all chess.
Expression:MaxLY
- Get maximum of LY of all chess.
Expression:MinLX
- Get minimum of LX of all chess.
Expression:MinLY
- Get minimum of LY of all chess.
Mini board - Logical
Expression:UID2LX
- Get X index of chess by UID. Return (-1) if the chess is not on the mini board.
- UID ( number or string ) : The UID of chess.
Expression:UID2LY
- Get Y index of chess by UID. Return (-1) if the chess is not on the mini board.
- UID ( number or string ) : The UID of chess.
Expression:UID2LZ
- Get Z index of chess by UID. Return (-1) if the chess is not on the mini board.
- UID ( number or string ) : The UID of chess.
Mini board - Physical
Expression:UID2PX
- Get X co-ordinate by UID. Return (-1) if the chess is not on the mini board.
- UID ( number or string ) : The UID of chess.
Expression:UID2PY
- Get Y co-ordinate by UID. Return (-1) if the chess is not on the mini board.
- UID ( number or string ) : The UID of chess.
Conditions
Board
Condition:On the board
- Return true if the mini board is on the board.
- Board ( object ) : Board object
Main board
Condition:Can put
- Testing if this mini board could put at the main board.
- Board ( object ) : Board object
- Logic X ( number ) : The X index of offset.
- Logic Y ( number ) : The Y index of offset.
- Putable test ( Combo ) : Mode of putable test.
- Options : ["None","Inside","Empty","Putable"]
Main board: Put-able
Condition:On put-able request
- Trigger by "Condition:Put-able" for each cell of mini board.
Mini-board: Kick
Condition:On chess kicked
- Triggered when chess kicked by 'action:Add chess'.
- Chess ( object ) : Kicked chess object.
Request
Condition:Is putting accepted
- Return true if putting request accepted.
Condition:On putting accepted
- Triggered when putting request accepted.
Condition:On putting rejected
- Triggered when putting request rejected.
SOL
Condition:Pick all chess
- Pick all chess on this mini board.
Condition:Pick chess
- Pick chess on this mini board.
- Chess ( object ) : Chess object.
SOL: mini board
Condition:Pick mini board
- Pick mini board from chess.
- Chess ( object ) : Chess under mini board