Skip to content

normal_bar

Kamran Wali edited this page Nov 24, 2024 · 7 revisions

Inherits: base_bar

Inherited By: normal_bar_values

Description

normal_bar acts like a normal bar which means that adding a value will just add the value and subtracting a value will just subtract it. To use this bar make sure to set the maximum value at the scene start otherwise the default value will be used as maximum which is 1. Optionally you can set the current value as well if you want to at the scene start otherwise its value will be 0.

Methods

Return Type Name
void subtract( int value )

Method Descriptions

void subtract ( int value )

This method subtracts the _value_cur with the given value. While subtracting the _value_cur property will never go below 0. It will stop at 0.


TODO: Give the example here

Clone this wiki locally