|
ActionDirector
1.0.0
The action director's cut for rapid actions integration
|
Update a UI Text representing numbers. More...
Classes | |
| class | RangeIntValue |
| Range of int values. More... | |
Public Member Functions | |
| override void | Run () |
| override void | StaticStep (float delta) |
Public Member Functions inherited from ActionDirector.ActionDuration | |
| override void | Step (float delta) |
| override void | Run () |
Public Attributes | |
| Text | label |
| int | startValue = 0 |
| int | addValue |
| bool | showMax = false |
| List< RangeIntValue > | rangeValueList = new List<RangeIntValue>() |
Public Attributes inherited from ActionDirector.ActionDuration | |
| float | duration = 0.0f |
| Ease | ease = new Ease() |
Update a UI Text representing numbers.
This action will update a UI text that represent the value to add. (Ex: Hit points, Experience, Money) The reprensentation can be simple (Just a number that raise) or fractional with the showMax (Ex:22/200) If showMax is used, you must set at least set one range. The startValue contains the number at the beginning of the action and the value to add in addValue until the action is over. NOTE: If the statValue with addValue combine is bigger than the last max range and if showMax is checked, it will stay at max range.
| int ActionDirector.ActionLabelNumberBy.addValue |
The quantity that should be added at the end of the action
| Text ActionDirector.ActionLabelNumberBy.label |
The UI Text label to use
| bool ActionDirector.ActionLabelNumberBy.showMax = false |
Show the max value? This require range values. Ex: 199/200 (do we show the /200?)
| int ActionDirector.ActionLabelNumberBy.startValue = 0 |
The value before the action run, must be equal or higher than the min range value