Kree Documentation
  • Welcome to Kree Java
  • Changelog
  • Getting Started
    • Installing Kree
    • Installing Kree using CLI
    • Get Help on Discord
  • Core Components
    • Game
    • Window
    • SceneManager
    • Input
    • Debug
    • Sprite
    • GameObject
    • Transform
    • Vector2
    • SpriteSheet
    • Animation
    • Audio
    • Random
  • GameObject components
    • Animator
    • BoxCollider
    • LookAtObject
    • Mesh Renderer
    • ParticleSystem
    • RigidBody
    • SpriteRenderer
    • PlayerMovement
    • Prefs
  • Kree User Interface
    • Text
    • TextInput
    • ProgressBar
    • Button
    • Panel
  • Code Snippets
    • Launcher
    • Creating Scene
    • Follow Mouse On Click
    • Animating GameObject
    • Implementing Particle System
    • Creating Custom Components
    • Playing Audio
  • Game Tutorials
  • Avoid the Enemy!
  • High score
Powered by GitBook
On this page

Was this helpful?

  1. Kree User Interface

ProgressBar

This User Interface Component is to visualize health, experience, energy, and more!

PreviousTextInputNextButton

Last updated 5 years ago

Was this helpful?

Component Author: Release Date: April 13, 2020

new ProgressBar(Scene parentScene);

new ProgressBar(Scene parentScene, Vector2 position);

new ProgressBar(Scene parentScene, Vector2 position, Vector2 scale);
add(float v); // Add v to the value

subtract(float v); /// Subtracts v to the value

getTransform(); // Returns Transform Object

getValue(); // Returns float

getMaxValue(); // Returns float 

setFont(Font font); // Sets the Text font

setColor(Color backgroundColor, Color foregroundColor);

setPadding(int padding); // Sets the padding between the foreground and background

setValue(float val); // Sets value

setMaxValue(float val); // Sets Max Value

setBackgroundImage(Sprite spr);

setForegroundImage(Sprite spr);
Jabo