【汉化】Battle GUI Core

Battle GUI Core

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 文/一个苞谷 曾经我也幸运的拥有过一个男闺蜜,可是几年前失去了…… 1 他是小P,我的初中同班同学,初中时关系一般...
    一个苞谷阅读 691评论 7 5
  • 茶,中国传统饮品 绿茶,黄茶,白茶,红茶,青茶,黑茶 对茶的加工,形成紧压茶、花茶、柑普和花果茶等。 几种常用的茶...
    芙蓉花语阅读 260评论 0 0
  • 很欣赏著名教育家雅斯贝尔斯的话:“教育的本质就是一棵树摇动另一棵树,一朵云推动另一朵云,一个灵魂唤醒另一个灵魂。”...
    深圳安国强阅读 1,192评论 0 0
  • 我好饮茶,而每至夜深人静亦必喝足,否则是不甘心卧床的。饮茶的茶具是一件青花三才杯与茶碗,其造形与那山水画都维妙维肖...
    喜亭阅读 658评论 8 3