SetThreatLevelProgress (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
m
 
(2 intermediate revisions not shown)
Line 1: Line 1:
{{HarvestMethod
{{HarvestMethod
|
|
-
harvest.setThreatLevelProgress(progress)
+
setThreatLevelProgress(progress)
|
|
Sets the red threat level progress bar in the GUI. The progress is a value between 0 and 1.
Sets the red threat level progress bar in the GUI. The progress is a value between 0 and 1.
|
|
-
{{MethodParam|amount|A value between 0 and 1|The percentage to fill the threadlevel bar divided by 100}}
+
{{MethodParam|progress|Number|The percentage to fill the thread level bar divided by 100}}
|
|
Returns nothing.
Returns nothing.
Line 11: Line 11:
=== Example ===
=== Example ===
<pre>
<pre>
 +
harvest.setThreatLevelProgress(0.25)
harvest.setThreatLevelProgress(gameTime / 60.0)
harvest.setThreatLevelProgress(gameTime / 60.0)
</pre>
</pre>
 +
 +
=== Resources ===
 +
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]

Latest revision as of 16:05, 2 December 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
progress Number The percentage to fill the thread level bar divided by 100
Returns

Returns nothing.

Harvest Library

Example

harvest.setThreatLevelProgress(0.25)
harvest.setThreatLevelProgress(gameTime / 60.0)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox