TextureProgress

Inherits: Range < Control < CanvasItem < Node < Object

Category: Core

Brief Description

Textured progress bar implementation.

Member Variables

  • int fill_mode
  • bool nine_patch_stretch
  • Vector2 radial_center_offset
  • float radial_fill_degrees
  • float radial_initial_angle
  • int stretch_margin_bottom
  • int stretch_margin_left
  • int stretch_margin_right
  • int stretch_margin_top
  • Texture texture_over
  • Texture texture_progress
  • Texture texture_under

Numeric Constants

  • FILL_LEFT_TO_RIGHT = 0
  • FILL_RIGHT_TO_LEFT = 1
  • FILL_TOP_TO_BOTTOM = 2
  • FILL_BOTTOM_TO_TOP = 3
  • FILL_CLOCKWISE = 4
  • FILL_COUNTER_CLOCKWISE = 5

Description

ProgressBar implementation that is easier to theme (by just passing a few textures).

Member Function Description

  • float get_fill_degrees ( )
  • int get_fill_mode ( )
  • bool get_nine_patch_stretch ( ) const

Returns true if textures are stretched as nine-patches or false otherwise.

  • Texture get_over_texture ( ) const
  • Texture get_progress_texture ( ) const
  • Vector2 get_radial_center_offset ( )
  • float get_radial_initial_angle ( )
  • int get_stretch_margin ( int margin ) const

Return nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM).

  • Texture get_under_texture ( ) const
  • void set_fill_degrees ( float mode )
  • void set_fill_mode ( int mode )
  • void set_nine_patch_stretch ( bool stretch )

Set if textures should be stretched as nine-patches.

  • void set_over_texture ( Texture tex )
  • void set_progress_texture ( Texture tex )
  • void set_radial_center_offset ( Vector2 mode )
  • void set_radial_initial_angle ( float mode )
  • void set_stretch_margin ( int margin, int value )

Set nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM).

  • void set_under_texture ( Texture tex )