テキスト UI
lib.showTextUI
TextUI ウィンドウを表示する。
絶対にトグルとして使用することを意図している。
Lua
lib.showTextUI(text, options)- テキスト
string - オプションは?
table- ポジションは?
'right-center'または'left-center'または'top-center'または'bottom-center'- デフォルト:
'right-center'
- デフォルト:
- アイコンは?
stringまたはtable(array) - iconColor?
string - iconAnimation?
'spin''spinPulse''spinReverse''pulse''beat''fade''beatFade''bounce''shake' - スタイル?React.CSSProperties
- alignIcon?
'top'または'center'- デフォルト:
'center'
- デフォルト:
- ポジションは?
lib.hideTextUI
現在表示されている TextUI ウィンドウを隠す
Lua
lib.hideTextUI()lib.isTextUIOpen
Text UI が開かれているかどうかを返します。現在表示されているテキストが 2 番目の値として返されます。
Lua
local isOpen, text = lib.isTextUIOpen()使用例
ベーシック
Lua
lib.showTextUI('[E] - Fuel vehicle')
カスタムスタイリング
Lua
lib.showTextUI('[E] - Pick apple', {
position = "top-center",
icon = 'hand',
style = {
borderRadius = 0,
backgroundColor = '#48BB78',
color = 'white'
}
})
Last updated on