Skip to Content

テキスト UI

lib.showTextUI

TextUI ウィンドウを表示する。

絶対にトグルとして使用することを意図している。

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 ウィンドウを隠す

lib.hideTextUI()

lib.isTextUIOpen

Text UI が開かれているかどうかを返します。現在表示されているテキストが 2 番目の値として返されます。

local isOpen, text = lib.isTextUIOpen()

使用例

ベーシック

lib.showTextUI('[E] - Fuel vehicle')

basic_example

カスタムスタイリング

lib.showTextUI('[E] - Pick apple', { position = "top-center", icon = 'hand', style = { borderRadius = 0, backgroundColor = '#48BB78', color = 'white' } })

custom_example

Last updated on