Skip to content

Commit cb9d5db

Browse files
authored
Update README.md: fixed docs of FlxUICheckBox (#287)
1 parent 2756177 commit cb9d5db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ A Check Box is a FlxUIGroup which contains three objects: a "box" image, a "chec
606606

607607
Attributes:
608608
* ```x```/```y```, ```use_def```, ```group```
609-
* ```check_src``` - source image for box (not 9-sliceable, not scaleable)
610-
* ```box_src``` - source image for check mark (not 9-sliceable, not scaleable)
609+
* ```check_src``` - source image for check mark (not 9-sliceable, not scaleable)
610+
* ```box_src``` - source image for box (not 9-sliceable, not scaleable)
611611
* ```text_x``` / ```text_y``` - label offsets
612612
* ```label``` - text to show
613613
* ```context``` - FireTongue context (see Button)
@@ -624,8 +624,8 @@ Child tags:
624624
*If you supply ```<check>``` or ```<box>``` child tags instead of their attribute equivalents, FlxUI will treat them as full-fledged ```<sprite>``` or ```<chrome>``` tags to load for the checkmark and box assets. You'll want to use this method if you want to do something complicated, like load a scaled sprite, or a 9-slice-scaled sprite, that you can't normally accomplish with the src attributes, which just load a static image as-is.
625625

626626
Event:
627-
* name - "click_checkbox"
628-
* params - as defined by user, but with this one automatically added to the list at the end: "checked:true" or "checked:false"
627+
* name - "click_check_box"
628+
* params - as defined by user, but with this one automatically added to the list at the end: ```{name:"checked", value:false}``` or ```{name:"checked", value:true}```
629629

630630
## 7. Text (FlxUIText) ```<text>```
631631

0 commit comments

Comments
 (0)