goo.progressbar.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <head>
  5. <title>Module goo.progressbar</title>
  6. <link rel="stylesheet" href="../luadoc.css" type="text/css" />
  7. <!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/-->
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <div id="navigation">
  18. <h1>Goo</h1>
  19. <ul>
  20. <li><a href="../index.html">Index</a></li>
  21. </ul>
  22. <!-- Module list -->
  23. <h1>Modules</h1>
  24. <ul>
  25. <li>
  26. <a href="../modules/anim.html">anim</a>
  27. </li>
  28. <li>
  29. <a href="../modules/goo.html">goo</a>
  30. </li>
  31. <li>
  32. <a href="../modules/goo.button.html">goo.button</a>
  33. </li>
  34. <li>
  35. <a href="../modules/goo.checkbox.html">goo.checkbox</a>
  36. </li>
  37. <li>
  38. <a href="../modules/goo.colorpick.html">goo.colorpick</a>
  39. </li>
  40. <li>
  41. <a href="../modules/goo.image.html">goo.image</a>
  42. </li>
  43. <li>
  44. <a href="../modules/goo.null.html">goo.null</a>
  45. </li>
  46. <li>
  47. <a href="../modules/goo.object.html">goo.object</a>
  48. </li>
  49. <li>
  50. <a href="../modules/goo.panel.html">goo.panel</a>
  51. </li>
  52. <li><strong>goo.progressbar</strong></li>
  53. <li>
  54. <a href="../modules/goo.text.html">goo.text</a>
  55. </li>
  56. <li>
  57. <a href="../modules/goo.textinput.html">goo.textinput</a>
  58. </li>
  59. </ul>
  60. <!-- File list -->
  61. </div><!-- id="navigation" -->
  62. <div id="content">
  63. <h1>Module <code>goo.progressbar</code></h1>
  64. <p>Progress bar useful giving users feedback on loading or game status such as health, magic etc.</p>
  65. <h2>Functions</h2>
  66. <table class="function_list">
  67. <tr>
  68. <td class="name" nowrap><a href="#goo.progressbar:draw">goo.progressbar:draw</a>&nbsp;()</td>
  69. <td class="summary">Internal function to draw the progress bar, you may wish to override however.</td>
  70. </tr>
  71. <tr>
  72. <td class="name" nowrap><a href="#goo.progressbar:getPercentage">goo.progressbar:getPercentage</a>&nbsp;()</td>
  73. <td class="summary">Returns the current percentage of progress.</td>
  74. </tr>
  75. <tr>
  76. <td class="name" nowrap><a href="#goo.progressbar:getProgress">goo.progressbar:getProgress</a>&nbsp;()</td>
  77. <td class="summary">Returns the current progress value.</td>
  78. </tr>
  79. <tr>
  80. <td class="name" nowrap><a href="#goo.progressbar:incrementProgress">goo.progressbar:incrementProgress</a>&nbsp;()</td>
  81. <td class="summary">Increments the progress by 1 </td>
  82. </tr>
  83. <tr>
  84. <td class="name" nowrap><a href="#goo.progressbar:setPercentage">goo.progressbar:setPercentage</a>&nbsp;(percentage)</td>
  85. <td class="summary">Sets the width of the progress bar to the specified percentage, i.e.</td>
  86. </tr>
  87. <tr>
  88. <td class="name" nowrap><a href="#goo.progressbar:setProgress">goo.progressbar:setProgress</a>&nbsp;(progress)</td>
  89. <td class="summary">Sets the progress value, should be a number within the range you defined.</td>
  90. </tr>
  91. <tr>
  92. <td class="name" nowrap><a href="#goo.progressbar:setRange">goo.progressbar:setRange</a>&nbsp;(min, max)</td>
  93. <td class="summary">Sets the range of the progress bar, i.e.</td>
  94. </tr>
  95. </table>
  96. <br/>
  97. <br/>
  98. <h2><a name="functions"></a>Functions</h2>
  99. <dl class="function">
  100. <dt><a name="goo.progressbar:draw"></a><span>goo.progressbar:</span><strong>draw</strong>&nbsp;( )</dt>
  101. <dd>
  102. <p class="func_description">Internal function to draw the progress bar, you may wish to override however.</p>
  103. </dd>
  104. <dt><a name="goo.progressbar:getPercentage"></a><span>goo.progressbar:</span><strong>getPercentage</strong>&nbsp;( )</dt>
  105. <dd>
  106. <p class="func_description">Returns the current percentage of progress.</p>
  107. <h3>Return value:</h3>
  108. <p class="func_return">number: percentage of progress (0-100%).</p>
  109. </dd>
  110. <dt><a name="goo.progressbar:getProgress"></a><span>goo.progressbar:</span><strong>getProgress</strong>&nbsp;( )</dt>
  111. <dd>
  112. <p class="func_description">Returns the current progress value.</p>
  113. </dd>
  114. <dt><a name="goo.progressbar:incrementProgress"></a><span>goo.progressbar:</span><strong>incrementProgress</strong>&nbsp;( )</dt>
  115. <dd>
  116. <p class="func_description">Increments the progress by 1</p>
  117. </dd>
  118. <dt><a name="goo.progressbar:setPercentage"></a><span>goo.progressbar:</span><strong>setPercentage</strong>&nbsp;( percentage )</dt>
  119. <dd>
  120. <p class="func_description">Sets the width of the progress bar to the specified percentage, i.e. 50% is half the width.</p>
  121. <h3>Parameters</h3>
  122. <ul>
  123. <li>
  124. <b>percentage</b> <i><small>:number</small></i><br/>a percentage value to set the width of the progress bar (0-100%).
  125. </li>
  126. </ul>
  127. </dd>
  128. <dt><a name="goo.progressbar:setProgress"></a><span>goo.progressbar:</span><strong>setProgress</strong>&nbsp;( progress )</dt>
  129. <dd>
  130. <p class="func_description">Sets the progress value, should be a number within the range you defined.</p>
  131. <h3>Parameters</h3>
  132. <ul>
  133. <li>
  134. <b>progress</b> <i><small>:number</small></i><br/>a number between the range you defined
  135. </li>
  136. </ul>
  137. <h3>See also:</h3>
  138. <ul>
  139. <li><a href="">
  140. goo.progressbar:setRange
  141. </a>
  142. </ul>
  143. </dd>
  144. <dt><a name="goo.progressbar:setRange"></a><span>goo.progressbar:</span><strong>setRange</strong>&nbsp;( min, max )</dt>
  145. <dd>
  146. <p class="func_description">Sets the range of the progress bar, i.e. if you're downloading a file 1024 bytes in size you would set the range to min = 0, max = 1024</p>
  147. <h3>Parameters</h3>
  148. <ul>
  149. <li>
  150. <b>min</b> <i><small>:number</small></i><br/>the minimum value the progress bar will reperesent at 0% width.
  151. </li>
  152. <li>
  153. <b>max</b> <i><small>:number</small></i><br/>the maximum value the progress bar will reperesent at 100% width.
  154. </li>
  155. </ul>
  156. <h3>Return value:</h3>
  157. <p class="func_return">number: the range of the value ( max - min ).</p>
  158. </dd>
  159. </dl>
  160. </div> <!-- id="content" -->
  161. </div> <!-- id="main" -->
  162. <div id="about">
  163. <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
  164. </div> <!-- id="about" -->
  165. </div> <!-- id="container" -->
  166. </body>
  167. </html>