Namespace in reactor_ui.js

Window_ReactorUIFight

10 functions in 4 groups · hide internal

Designing a custom interface.

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 source
Window_ReactorUIFight.prototype.initialize(rect, scene, node)

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

Actions

turnPlaceCrossed

method source
Window_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 source
Window_ReactorUIFight.prototype.moveTurnSprites()

Move turn sprites. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

refresh

method source
Window_ReactorUIFight.prototype.refresh()

Refresh. (Same as the RPG Maker MZ method of this name.)

drawFight

method source
Window_ReactorUIFight.prototype.drawFight()

Draws the fight. (Same as the RPG Maker MZ method of this name.)

updateFight

method source
Window_ReactorUIFight.prototype.updateFight(reader)

Once a frame while the battle runs: redraw what changed, and say whether the node shows at all.

layoutTurnOrder

method source
Window_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 source
Window_ReactorUIFight.prototype.usesSkin()

Uses skin. (Same as the RPG Maker MZ method of this name.)

fightInset

method source
Window_ReactorUIFight.prototype.fightInset()

Room between a painted panel's edge and its parts (a skinned one has the window's own padding).

arriveTurnSprite

method source
Window_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.