UNPKG

pubtool4pixi

Version:

Usefultool for PIXI xes project

656 lines (192 loc) 10.3 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Preschool_Start</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: Preschool_Start</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>Preschool_Start<span class="signature">()</span><span class="type-signature"></span></h2> <div class="class-description">幼教项目开始页组件.</div> </header> <article> <div class="container-overview"> <h2>Constructor</h2> <h4 class="name" id="Preschool_Start"><span class="type-signature"></span>new Preschool_Start<span class="signature">()</span><span class="type-signature"></span></h4> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>bgConfig</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">背景动效的配置 <h6>Properties</h6> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">动画Json名称 默认:animation_starscreen</td> </tr> <tr> <td class="name"><code>AniName</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">默认状态动画名称 默认:idle</td> </tr> <tr> <td class="name"><code>AniName2</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">切换状态动画名称 默认:touch</td> </tr> <tr> <td class="name"><code>x</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">动画x轴所在位置 默认:961</td> </tr> <tr> <td class="name"><code>y</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">动画y轴所在位置 默认:860</td> </tr> </tbody> </table> </td> </tr> <tr> <td class="name"><code>audioClick</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">点击音效 默认:aodio_click</td> </tr> <tr> <td class="name"><code>btnConfig</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">按钮动效的配置 <h6>Properties</h6> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">动画Json名称 默认:animation_starscreen</td> </tr> <tr> <td class="name"><code>AniName</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">默认状态动画名称 默认:idle</td> </tr> <tr> <td class="name"><code>AniName2</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">切换状态动画名称 默认:touch</td> </tr> <tr> <td class="name"><code>x</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">动画x轴所在位置 默认:950</td> </tr> <tr> <td class="name"><code>y</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">动画y轴所在位置 默认:860</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line2559">line 2559</a> </li></ul></dd> </dl> <h5>Example</h5> <pre class="prettyprint"><code>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();</code></pre> </div> <h3 class="subsection-title">Extends</h3> <ul> <li><a href="BaseContainer.html">BaseContainer</a></li> </ul> <h3 class="subsection-title">Events</h3> <h4 class="name" id=".event:startGame">startGame</h4> <div class="description"> Fire when game started. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line2644">line 2644</a> </li></ul></dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Base.html">Base</a></li><li><a href="BaseContainer.html">BaseContainer</a></li><li><a href="BigMath_AniBtn.html">BigMath_AniBtn</a></li><li><a href="BigMath_GuideHand.html">BigMath_GuideHand</a></li><li><a href="BigMath_StarScoreBoard.html">BigMath_StarScoreBoard</a></li><li><a href="BigMath_Timer.html">BigMath_Timer</a></li><li><a href="HitContainer.html">HitContainer</a></li><li><a href="Preschool_aqiu.html">Preschool_aqiu</a></li><li><a href="Preschool_End.html">Preschool_End</a></li><li><a href="Preschool_HintBtn.html">Preschool_HintBtn</a></li><li><a href="Preschool_Start.html">Preschool_Start</a></li><li><a href="PUB_Mask.html">PUB_Mask</a></li></ul><h3>Events</h3><ul><li><a href="BaseContainer.html#.event:beforeHide">beforeHide</a></li><li><a href="BaseContainer.html#.event:beforeShow">beforeShow</a></li><li><a href="BaseContainer.html#.event:Destroyed">Destroyed</a></li><li><a href="BaseContainer.html#.event:onHide">onHide</a></li><li><a href="BaseContainer.html#.event:onShow">onShow</a></li><li><a href="BaseContainer.html#.event:ParentChange">ParentChange</a></li><li><a href="BigMath_AniBtn.html#.event:onClick">onClick</a></li><li><a href="BigMath_Timer.html#.event:onTimeRun">onTimeRun</a></li><li><a href="BigMath_Timer.html#.event:timeup">timeup</a></li><li><a href="Preschool_End.html#.event:gameOver">gameOver</a></li><li><a href="Preschool_Start.html#.event:startGame">startGame</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Wed Dec 18 2019 14:22:09 GMT+0800 (中国标准时间) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>