Familiar territory. Window_ReactorUIFight keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Setup & Creation 1
| initialize() | Sets up a new instance. |
Actions 2
| turnPlaceCrossed() | Whether a sliding tile stands on a still one's place now or has yet to pass over it. |
| moveTurnSprites() | Move turn sprites. |
Updating & Drawing 4
| refresh() | Refresh. |
| drawFight() | Draws the fight. |
| updateFight() | Once a frame while the battle runs: redraw what changed, and say whether the node shows at all. |
| layoutTurnOrder() | One sprite per turn tile: a tile is redrawn when what it shows changes (its side, whether it acts or has acte… |
Other 3
| usesSkin() | Uses skin. |
| fightInset() | Room between a painted panel's edge and its parts (a skinned one has the window's own padding). |
| arriveTurnSprite() | A tile coming up at its place, a step more visible; it waits, unseen, while a sliding tile stands on its plac… |
Setup & Creation
initialize
method sourceWindow_ReactorUIFight.prototype.initialize(rect, scene, node)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Actions
turnPlaceCrossed
method sourceWindow_ReactorUIFight.prototype.turnPlaceCrossed(sprite)
Whether a sliding tile stands on a still one's place now or has yet to pass over it.
moveTurnSprites
method sourceWindow_ReactorUIFight.prototype.moveTurnSprites()
Move turn sprites. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
refresh
method sourceWindow_ReactorUIFight.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
drawFight
method sourceWindow_ReactorUIFight.prototype.drawFight()
Draws the fight. (Same as the RPG Maker MZ method of this name.)
updateFight
method sourceWindow_ReactorUIFight.prototype.updateFight(reader)
Once a frame while the battle runs: redraw what changed, and say whether the node shows at all.
layoutTurnOrder
method sourceWindow_ReactorUIFight.prototype.layoutTurnOrder(hud, reader, redraw)
One sprite per turn tile: a tile is redrawn when what it shows changes (its side, whether it acts or has acted, its size, its HP line), and moves when its place does.
Details
One sprite per turn tile: a tile is redrawn when what it shows changes (its side, whether it acts or has acted, its size, its HP line), and moves when its place does. Tiles that keep their order slide together; a tile that would cross others on its way (it acted and goes behind them, the sides changed places), a new one and a count box come up at their place once whatever is sliding has left it: no two ever overlap.
Other
usesSkin
method sourceWindow_ReactorUIFight.prototype.usesSkin()
Uses skin. (Same as the RPG Maker MZ method of this name.)
fightInset
method sourceWindow_ReactorUIFight.prototype.fightInset()
Room between a painted panel's edge and its parts (a skinned one has the window's own padding).
arriveTurnSprite
method sourceWindow_ReactorUIFight.prototype.arriveTurnSprite(sprite)
A tile coming up at its place, a step more visible; it waits, unseen, while a sliding tile stands on its place or has yet to pass over it.
Details
A tile coming up at its place, a step more visible; it waits, unseen, while a sliding tile stands on its place or has yet to pass over it. Returns whether it is still on its way.