Constructor
new Preschool_Start()
Properties:
| Name |
Type |
Description |
bgConfig |
object
|
背景动效的配置
Properties
| Name |
Type |
Description |
name |
string
|
动画Json名称 默认:animation_starscreen |
AniName |
string
|
默认状态动画名称 默认:idle |
AniName2 |
string
|
切换状态动画名称 默认:touch |
x |
number
|
动画x轴所在位置 默认:961 |
y |
number
|
动画y轴所在位置 默认:860 |
|
audioClick |
string
|
点击音效 默认:aodio_click |
btnConfig |
object
|
按钮动效的配置
Properties
| Name |
Type |
Description |
name |
string
|
动画Json名称 默认:animation_starscreen |
AniName |
string
|
默认状态动画名称 默认:idle |
AniName2 |
string
|
切换状态动画名称 默认:touch |
x |
number
|
动画x轴所在位置 默认:950 |
y |
number
|
动画y轴所在位置 默认:860 |
|
- Source:
Example
import {Easy} from "pubtool4pixi"
Easy.create("Preschool_Start",{
parentContainer:stage,
bgConfig:{
name:"animation_start",
AniName:"idle",
AniName2:"touch",
x:500,
y:600
}
}).show();
Easy.create("Preschool_Start",{
parentContainer:stage,
btnConfig:{
name:"animation_start",
AniName:"idle",
AniName2:"touch",
x:500,
y:600
}
}).show();
Fire when game started.