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

Create a scene with the class name "TerraformButton" #14

Closed
GradyTheDev opened this issue Sep 10, 2023 · 2 comments
Closed

Create a scene with the class name "TerraformButton" #14

GradyTheDev opened this issue Sep 10, 2023 · 2 comments
Assignees

Comments

@GradyTheDev
Copy link
Owner

Create and export 3 floats "heat", "oxygen", and "atmosphere", with a min of 0 and max of 100.
Create and export 2 floats "cooldown" and "duration" with a min of 0
Accept an input via an exported variable by the name "planet" type "Planet"

Mechanics:
When the button is clicked.
If action is still in cooldown, ignore button press.
else
Start a cooldown timer and
apply the values from "heat" "oxygen" "atmosphere" to "planet" over a period of the "duration".

Note:
Make sure to adjust for delta time when applying values.

@wovri-github
Copy link
Collaborator

I think that "TextureButton"s aren't what we would like to have. In texturebutton you have to create texture for each state separately, so if we want 6 buttons and we need at least 4 states, then it gives us 24 special textures for each button to work.

Creating normal button and just changing the icon would work. What do you think?

@GradyTheDev
Copy link
Owner Author

I think that "TextureButton"s aren't what we would like to have. In texturebutton you have to create texture for each state separately, so if we want 6 buttons and we need at least 4 states, then it gives us 24 special textures for each button to work.

Creating normal button and just changing the icon would work. What do you think?

That's a good point, disregard the "TextureButton" requirement, just use what you think works best.

@GradyTheDev GradyTheDev changed the title Create a "TextureButton" scene with the class name "TerraformButton" Create a scene with the class name "TerraformButton" Sep 12, 2023
wovri-github added a commit that referenced this issue Sep 13, 2023
Close solved issues: [closed #13], [closed #13], [closed #14], [closed #15]
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