Skip to content

Commit 545e033

Browse files
committed
加一些注释
1 parent 668a430 commit 545e033

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

widget.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
---@field h? number
1111
---@field widthLimit? number
1212
---
13-
---@field color? Zenitha.ColorStr|Zenitha.Color
13+
---@field color? Zenitha.ColorStr|Zenitha.Color [text & button & button_fill & checkBox & switch & slider & selector]
1414
---@field text? string|function
1515
---@field fontSize? number
1616
---@field fontType? string
@@ -21,17 +21,17 @@
2121
---@field labelDistance? number
2222
---@field disp? function Must return the value that widget should show
2323
---@field code? function Called 'When triggered'
24-
---@field visibleFunc? function Used to determine if widget is visible when scene changed
25-
---@field visibleTick? function Used to change widget's visibility every frame
24+
---@field visibleFunc? function Used to change widget's visibility when scene changed
25+
---@field visibleTick? function Used to update widget's visibility every frame
2626
---
2727
---@field lineWidth? number
2828
---@field cornerR? number Round corner ratio
2929
---
30-
---@field textColor? Zenitha.ColorStr|Zenitha.Color
31-
---@field fillColor? Zenitha.ColorStr|Zenitha.Color
32-
---@field frameColor? Zenitha.ColorStr|Zenitha.Color
33-
---@field activeColor? Zenitha.ColorStr|Zenitha.Color
34-
---@field idleColor? Zenitha.ColorStr|Zenitha.Color
30+
---@field textColor? Zenitha.ColorStr|Zenitha.Color [button & button_fill & slider]
31+
---@field fillColor? Zenitha.ColorStr|Zenitha.Color [switch & slider & slider_progress & inputBox & textBox & listBox]
32+
---@field frameColor? Zenitha.ColorStr|Zenitha.Color [inputBox]
33+
---@field activeColor? Zenitha.ColorStr|Zenitha.Color [textBox & listBox]
34+
---@field idleColor? Zenitha.ColorStr|Zenitha.Color [textBox & listBox]
3535
---
3636
---@field sound_press? string
3737
---@field sound_hover? string

0 commit comments

Comments
 (0)