Battle GUI Core
This plugin allows developers to customize the window set up of battles
within their game.
这个插件可以允许开发者自定义战斗的窗口显示
Window Properties
There are seven properties that can be customized for the windows:
这里有几个你可以自定义的属性
– X
– Y
– Rows
– Cols
– Width
– Align
– Visible
X
The X property determines the X position of the window.
If the window is not at that position, then it will either instantly move
to the position or slide to it based on how far it is.
窗口的X坐标,如果窗口不在这个位置,则会根据距离来决定是直接出现在指定位置还是滑过去
Y
The Y property determines the Y position of the window.
If the window is not at that position, then it will either instantly move
to the position or slide to it based on how far it is.
窗口的Y坐标,如果窗口不在这个位置,则会根据距离来决定是直接出现在指定位置还是滑过去
Rows
The Rows property determines the amount of rows on the window.
The number of rows will determine the number shown at once.
If there are more choices than there can be shown, then the number of
rows total will be greater than normal.
窗口可以显示的行数,行数会根据实际情况增加
Cols
The Cols property determines the amount of columns on the window.
The column count will always be constant unless there are less choices
than there are columns.
窗口可以显示的列数,列数是固定的,除非选项比设置的少
Width
The Width property determines the width of the window.
窗口宽度
Align
The Align property determines the alignment of the text of the choices.
文字选项的排列
Visible
The Visible property determines the whether the window is visible.
Visibility can be updated dynamically since this property is mainly used with
JavaScript conditions.
However, you can input ‘true’ to make it use the default visibility settings.
设置窗口是否可见,你可以用JS来动态改变它,也可以填入true来使用默认设置
Motions
Motions allow you to make windows move in a certain way under certain
conditions. You can create conditions based on other windows and
BattleManager phases.
这是设置不同情况的战斗窗口
In order to check whether a phase is active or not, do:
BattleManager._phase === ‘phase-name’
Here is a list of all the phases:
– init
– start
– input
– turn
– action
– turnEnd
– aborting
– battleEnd
You can also check various properties of the other windows:
– BattleManager._statusWindow
– BattleManager._actorCommandWindow
– BattleManager._partyCommandWindow
– BattleManager._skillWindow
– BattleManager._itemWindow
– BattleManager._enemyWindow
– BattleManager._actorWindow
– BattleManager._helpWindow
For example:
BattleManager._statusWindow.x
BattleManager._statusWindow.y
BattleManager._statusWindow.width
BattleManager._statusWindow.height
BattleManager._statusWindow.isClosed()
BattleManager._statusWindow.isOpen()
BattleManager._statusWindow.visible