RapidGameFramework
Reusable Godot managers for data-driven small games
Loading...
Searching...
No Matches
resource_bar.gd File Reference

Reusable outlined resource/progress bar renderer. More...

Go to the source code of this file.

Namespaces

namespace  resource_bar
 

Variables

 resource_bar.Dictionary
 
 resource_bar.prefix
 
 resource_bar.max_value
 
 resource_bar.value
 
 resource_bar.ratio
 
 resource_bar.border_width
 
 resource_bar.fill_color = Color(str(options.get("fill", "#63d978")))
 
 resource_bar.bg
 
 resource_bar.name
 
 resource_bar.position
 
 resource_bar.size
 
 resource_bar.color
 
 resource_bar.mouse_filter
 
 resource_bar.fill_rect
 
 resource_bar.fill
 
 resource_bar.label
 
 resource_bar.percent
 
 resource_bar.pieces
 
 resource_bar.node
 
 resource_bar.font_size
 
 resource_bar.shadow
 
 resource_bar.text
 
 resource_bar.horizontal_alignment
 
 resource_bar.vertical_alignment
 
 resource_bar.clip_contents
 

Detailed Description

Reusable outlined resource/progress bar renderer.

Renders a bounded value bar with outline, fill, background, and high-contrast label text. It uses the same green/yellow/red value thresholds as the resource HUD unless a caller explicitly overrides the fill color. It is intentionally node-based so games can use it inside custom playfield overlays without relying on Control theme inheritance.

Definition in file resource_bar.gd.