函式參考
內建輔助函式
遊戲中「函式」分頁列為內建的輔助函式。公用輔助函式直接以名稱呼叫;其他輔助函式需繫結為相依項目(選擇自動完成項目,或在「相依項目」中新增),再以其完整名稱呼叫。
240 個輔助函式中的 22 個。 清除篩選
UI. 相依項目 | Constructs a new RM-CheckBox condition widget: a 180 by 24 frame holding a workbench check box, with SetLabel, SetValue, GetValue and SetDisabled, firing OnValueChanged when clicked. |
|---|---|
UI. 公用 | 建立一個原生的布林條件控制項。設定 SetLabel、SetValue、SetDisabled 與 OnValueChanged;使用 parent:AddChild(widget) 新增它。 |
UI. 相依項目 | Constructs a new RM-ConditionButton widget around a 200-pixel workbench button, with SetText, SetAutoWidth and SetDisabled, firing OnClick (with the mouse button), OnEnter and OnLeave only while its lease is live. |
UI. 公用 | 使用共用的條件元件生命週期與工作台主題建立一個原生按鈕。SetText、SetDisabled 與 SetCallback 用於設定其標籤與互動;OnClick 會收到所按的滑鼠按鍵。將其使用 parent:AddChild(widget) 新增到回呼的父層。 |
UI. 公用 | 建立原生的自動換行文字,根據其寬度與字型測量高度。SetText、SetFont 或 SetFontObject 用於設定其內容。將其使用 parent:AddChild(widget) 新增到回呼的父層,以便版面能夠追蹤其測得的高度。 |
UI. 公用 | 建立原生的自動換行文字,可選擇帶有前置圖像與指標回呼。SetImage 與 SetImageSize 用於設定圖像;OnEnter、OnLeave 與 OnClick 使用條件回呼約定。將其使用 parent:AddChild(widget) 新增到回呼的父層;其租用被釋放時回呼會失效。 |
UI. 相依項目 | Returns the default font for condition labels and buttons: the GameFontHighlightSmall font object, or its name when the object is not defined. |
UI. 相依項目 | Constructs a new condition text widget: a plain wrapping RM-ConditionLabel, or with interactive set an RM-ConditionLink button that adds a leading image and OnEnter, OnLeave and OnClick callbacks. |
UI. 相依項目 | Constructs a new RM-ConditionIcon widget: a clickable image with an optional caption below it, with SetImage, SetImageByAtlas, SetImageSize, SetLabel and SetDisabled, firing OnClick, OnEnter and OnLeave while its lease is live. |
UI. 公用 | 使用條件元件生命週期建立一個原生圖像控制項。SetImage 與 SetImageSize 用於選擇材質;SetText 可選擇性地新增說明文字。OnClick、OnEnter 與 OnLeave 使用共用的回呼約定。將該控制項使用 parent:AddChild(widget) 新增到回呼的父層。 |
UI. 相依項目 | Constructs a new condition input widget: an RM-ConditionEditBox text box, or with numeric set an RM-ConditionSlider pairing a slider with a numeric box (with range, step and percent display). |
UI. 公用 | 使用條件元件約定建立一個原生文字輸入框。SetLabel、SetText、SetDisabled 與 SetCallback 用於設定它;OnEnterPressed 提交文字。使用 parent:AddChild(widget) 將其新增到回呼的父層。 |
UI. 公用 | 建立一個帶有滑桿與數字輸入框的原生數值條件輸入控制項。設定 SetSliderValues、SetValue、SetIsPercent 與 SetCallback;OnValueChanged 回報已提交的值。使用 parent:AddChild(widget) 新增它。 |
UI. 相依項目 | True when value is a number that is neither NaN nor infinite; the condition inputs use it to validate entered and slider values. |
UI. 相依項目 | Constructs a new RM-ConditionGroup container that stacks condition widgets in List, Table or RM-SpellField layout, resizing itself to its contents and relaying out its parent. |
UI. 公用 | 建立一個條件欄位容器,使用 RM 自有的 List、Table 與自適應法術欄位版面。它接受已註冊的原生條件元件;使用 AddChild 新增子項目,並將該群組附加到回呼的父層。 |
UI. 相依項目 | Lays out the "RM-IconRows" container: an icon on the left, vertically centered beside the rows of fields, and an optional side widget (marked with the side user data) that sits beside the last row when there is room and below the rows when there is not. |
UI. 相依項目 | Converts a table cell's alignV setting to a vertical offset fraction for the condition group's Table layout: 0 for nil, start or top, 0.5 for middle or center, and 1 for end or bottom (case-insensitive prefixes). |
UI. 相依項目 | Constructs a new RM-ConditionPositionPad widget around the shared workbench directional pad, with SetDisabled, firing OnOffsetChanged (horizontal and vertical direction, whether Center was pressed, and the step) only while its lease is live and it is enabled. |
UI. 公用 | 使用共用的方向控制項建立一個原生位置面板。OnOffsetChanged 回報水平與垂直方向、是否按下了「置中」,以及增量(一,或按住 Shift 時為十)。SetDisabled 控制互動;將該面板使用 parent:AddChild(widget) 新增到回呼的父層。 |
UI. 公用 | 建立一個原生的條件選擇器。SetList 接受鍵到標籤或鍵到項目的對應;SetValue 選擇一個鍵,OnValueChanged 回報變化。使用 parent:AddChild(widget) 新增它。 |
UI. 相依項目 | Constructs a new RM-Selector dropdown widget: an optional caption over a button that opens the workbench selector popup. |
