SetThreatLevelProgress (Harvest)
From OxeyeWiki
(Difference between revisions)
(Created page with '{{HarvestMethod | setThreatLevelValue(value) | Sets the value of the threat level string in the GUI. This is only a display value and has no other effect on the game. | {{MethodP...') |
|||
Line 1: | Line 1: | ||
{{HarvestMethod | {{HarvestMethod | ||
| | | | ||
- | + | setThreatLevelProgress(progress) | |
| | | | ||
- | Sets the | + | Sets the red threat level progress bar in the GUI. The progress is a value between 0 and 1. |
| | | | ||
- | {{MethodParam|amount| | + | {{MethodParam|amount|A value between 0 and 1|The percentage to fill the threadlevel bar divided by 100}} |
| | | | ||
Returns nothing. | Returns nothing. | ||
Line 11: | Line 11: | ||
=== Example === | === Example === | ||
<pre> | <pre> | ||
- | + | harvest.setThreatLevelProgress(gameTime / 60.0) | |
</pre> | </pre> |
Revision as of 18:57, 13 March 2009
setThreatLevelProgress(progress) | ||
Sets the red threat level progress bar in the GUI. The progress is a value between 0 and 1. | ||
Parameter | Expected Type | Description |
amount | A value between 0 and 1 | The percentage to fill the threadlevel bar divided by 100 |
Returns | ||
Returns nothing. |
Example
harvest.setThreatLevelProgress(gameTime / 60.0)