【漢化】Window Upgrade

Window Upgrade

SumRndmDde

Upgrades and adds various features to the existing window system within one’s game. This plugin provides additions to the window classes such as open/close callbacks, better stretch control, etc.
游戲中向現(xiàn)有窗口添加各種功能。這個(gè)插件提供了對(duì)窗口類的補(bǔ)充,例如
打開/關(guān)閉回調(diào),更好的拉伸控制等

Information Window

Information windows are windows that protray a large amount of information to the player all at once. These require a bit more set up than Question Windows, but have even greater power when it comes to giving information.
信息窗口是一次性向玩家大量提供信息的窗口。這些需要更多的設(shè)置來(lái)提供更強(qiáng)大功能。

To start, one must go to the “Info Windows” parameter to setup an InfoWindow. An Info Window requires Text, Width, Line Height, and a Default Font Size. Once these four things have been setup, one may display that specific Info Window by using the ID listed next to it in the Plugin Manager’s list.
開始,必須先到“Info Windows”參數(shù)來(lái)設(shè)置信息窗口。信息窗口需要文本,寬度,線條高度和默認(rèn)字體大小。一旦設(shè)置了這四件事情,就可以使用插件管理器列表中它旁邊列出的ID 來(lái)顯示該特定的信息窗口

CreateInfoWindow [windowId]

In order to show the Info Window, use this plugin command and place its window ID next to it. That specific window with the specified information will be shown.
為了顯示信息窗口,使用這個(gè)插件命令并將其窗口ID 放在它旁邊。將顯示具有指定信息的特定窗口。

When customizing the text of the window, one may use text codes. Furthermore,one may also use a hr ag to generate a horizontal line.
自定義窗口的文本時(shí),可以使用文本代碼。此外,還可以使用hr標(biāo)簽生成水平線。

Choice Window Creation

The plugin provides an alternative choice window with more options including
row, column, and alignment control, along with the capability to add an indefinite number of choices.
該插件提供了一個(gè)備選選擇窗口,其中包含更多選項(xiàng),包括行,列和對(duì)齊控件,以及添加無(wú)限數(shù)量選項(xiàng)的功能。

n order to set this up, simply use the plugin command:
為了設(shè)置它,只需使用plugin命令

CreateChoiceWindow [variableId] [choice1, choice2, choice3, …]

This will create a choice window with the defined choices and have the result be placed within a variable defined by the “variableId”. If the first choice is chosen, 0 will be placed into that variable. Choice2 will input a value of 1, choice 3 will be 2, etc.
這將創(chuàng)建一個(gè)帶有已定義選項(xiàng)的選擇窗口,并將結(jié)果放置在由“variableId”定義的變量中。如果選擇第一個(gè)選項(xiàng),則將放入該變量中。Choice2將輸入1的值,選擇3將是2等。

Choice Window Setup Data

In order to customize the columns, rows, and alignment for the Choice window, the following plugin command must also be used before creation:
為了自定義窗口的列,行和對(duì)齊方式,在創(chuàng)建之前還必須使用以下插件命令:

SetChoiceWindowData [cols] [rows] [align]

This will set the columns, rows, and alignment respectively.
這將分別設(shè)置列,行和對(duì)齊。

For example:

SetChoiceWindowData 1 4 right

If you wish to reset the data, you can use the plugin command:
如果你想重置數(shù)據(jù),你可以使用plugin命令:

ResetChoiceWindowData

Question Window Setup Choices

Questions windows are windows that contain both information and the ability to select a choice within itself. These are more stylized than normal choice windows, providing a better alternative for developers in specific situations.
選項(xiàng)窗口是包含信息和能夠在其內(nèi)選擇選擇的窗口。這些比常規(guī)選擇窗口更具風(fēng)格,為特定情況下的開發(fā)人員提供了更好的選擇。

SetQuestionWindowChoices [choice1, choice2, choice3, …]

To start, once must call this plugin command to set up the names of the choices that will be shown on the question window. For example, if someone wanted to create a “yes”/”no” question, they could do:
要開始,一旦必須調(diào)用此插件命令來(lái)設(shè)置將在問題窗口中顯示的選項(xiàng)名稱。例如,如果有人想創(chuàng)建一個(gè)“是”/“否”的問題,他們可以這樣做:

SetQuestionWindowChoices Yes, No

Question Window Setup Data

In order to customize the columns, rows, and alignment for the Question window, the following plugin command must also be used before creation:
為了自定義“選項(xiàng)” 窗口的列,行和對(duì)齊方式,還必須在創(chuàng)建之前使用以下插件命令:

SetQuestionWindowData [cols] [rows] [align]

This will set the columns, rows, and alignment respectively.
這將分別設(shè)置列,行和對(duì)齊。

For example:

SetQuestionWindowData 2 2 left

If you wish to reset the data, you can use the plugin command:
如果你想重置數(shù)據(jù),你可以使用plugin命令:

ResetQuestionWindowData

Question Window Creation

Once the choices are set up, one may call upon the Question window using this plugin command:
一旦選擇完成后,可以使用這個(gè)插件命令來(lái)調(diào)用選項(xiàng)窗口:

CreateQuestionWindow [variableId] [message]

Once the choices are set up, this plugin command creates the question window itself. The first input, “variableId”, should be a number representing the ID of the variable the result will be stored in. The result will be a number value, starting from 0, representing which choice was selected.
一旦選擇完成,這個(gè)插件命令就會(huì)自動(dòng)創(chuàng)建選項(xiàng)窗口。第一個(gè)輸入“variableId”應(yīng)該是一個(gè)代表結(jié)果將被存儲(chǔ)的變量ID的數(shù)字。結(jié)果將是一個(gè)數(shù)字值,從0開始,表示選擇了哪個(gè)選項(xiàng)

Here’s an example:

CreateQuestionWindow 3 Do you like cake?

This will create a Question Window that asks, “Do you like Cake?” and stores the result in variable ID 3. Since we set up 2 choices from before, “Yes” and “No”, the variable will be set to 0 is Yes is chosen, and 1 if No is chosen.
這將創(chuàng)建一個(gè)問題窗口,詢問“你喜歡Cake嗎?”并將結(jié)果存儲(chǔ)在變量ID 3中。由于我們從前面設(shè)置了2個(gè)選擇,“是” 和“否”,變量將被設(shè)置為0選擇“是”,如果選擇“ 否”,則選擇1。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容