Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] ProgressBar with int not working #222

Closed
TheEmbracedOne opened this issue Apr 9, 2021 · 1 comment
Closed

[Issue] ProgressBar with int not working #222

TheEmbracedOne opened this issue Apr 9, 2021 · 1 comment

Comments

@TheEmbracedOne
Copy link

TheEmbracedOne commented Apr 9, 2021

On the website the example of ProgressBar has an int value for max value, but it doesnt seem to work for me:

[Label("Filter Value")]
[ProgressBar("Filter Value", "ex_filter_max", EColor.Red)]
public int ex_filter_value;

public int ex_filter_max;

gives me:
image

but if I change the maxvalue to float:

[Label("Filter Value")]
[ProgressBar("Filter Value", "ex_filter_max", EColor.Red)]
public int ex_filter_value;

public float ex_filter_max;

it works;
image

Is it possible to make the progress bar work with int? Or only float?
Am I doing something wrong or is the documentation outdated?

(I have tried copying out that bit from the documentation and I get the same error:

[ProgressBar("Stamina", "maxStamina", EColor.Green)] // Dynamic max value constructor
public int stamina = 150;

public int maxStamina = 200;
@dbrizov dbrizov changed the title ProgressBar with int not working [Issue] ProgressBar with int not working Apr 24, 2021
@dbrizov
Copy link
Owner

dbrizov commented Apr 25, 2021

Fixed in faa02a1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants