Documentation
¶
Overview ¶
TextureProgressBar works like graphics.gd/classdb/ProgressBar, but uses up to 3 textures instead of Godot's graphics.gd/classdb/Theme resource. It can be used to create horizontal, vertical and radial progress bars.
Index ¶
- type Advanced
- type Any
- type Extension
- func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance
- func (self *Extension[T]) AsControl() Control.Instance
- func (self *Extension[T]) AsNode() Node.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsRange() Range.Instance
- func (self *Extension[T]) AsTextureProgressBar() Instance
- type FillMode
- type ID
- type Instance
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsControl() Control.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRange() Range.Instance
- func (self Instance) AsTextureProgressBar() Instance
- func (self Instance) FillMode() int
- func (self Instance) ID() ID
- func (self Instance) NinePatchStretch() bool
- func (self Instance) RadialCenterOffset() Vector2.XY
- func (self Instance) RadialFillDegrees() Float.X
- func (self Instance) RadialInitialAngle() Angle.Radians
- func (self Instance) SetFillMode(value int)
- func (self Instance) SetNinePatchStretch(value bool)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetRadialCenterOffset(value Vector2.XY)
- func (self Instance) SetRadialFillDegrees(value Float.X)
- func (self Instance) SetRadialInitialAngle(value Angle.Radians)
- func (self Instance) SetStretchMarginBottom(value int)
- func (self Instance) SetStretchMarginLeft(value int)
- func (self Instance) SetStretchMarginRight(value int)
- func (self Instance) SetStretchMarginTop(value int)
- func (self Instance) SetTextureOver(value Texture2D.Instance)
- func (self Instance) SetTextureProgress(value Texture2D.Instance)
- func (self Instance) SetTextureProgressOffset(value Vector2.XY)
- func (self Instance) SetTextureUnder(value Texture2D.Instance)
- func (self Instance) SetTintOver(value Color.RGBA)
- func (self Instance) SetTintProgress(value Color.RGBA)
- func (self Instance) SetTintUnder(value Color.RGBA)
- func (self Instance) StretchMarginBottom() int
- func (self Instance) StretchMarginLeft() int
- func (self Instance) StretchMarginRight() int
- func (self Instance) StretchMarginTop() int
- func (self Instance) TextureOver() Texture2D.Instance
- func (self Instance) TextureProgress() Texture2D.Instance
- func (self Instance) TextureProgressOffset() Vector2.XY
- func (self Instance) TextureUnder() Texture2D.Instance
- func (self Instance) TintOver() Color.RGBA
- func (self Instance) TintProgress() Color.RGBA
- func (self Instance) TintUnder() Color.RGBA
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsCanvasItem ¶
func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance
func (*Extension[T]) AsTextureProgressBar ¶
type FillMode ¶
type FillMode int //gd:TextureProgressBar.FillMode
const ( // The [Instance.TextureProgress] fills from left to right. FillLeftToRight FillMode = 0 // The [Instance.TextureProgress] fills from right to left. FillRightToLeft FillMode = 1 // The [Instance.TextureProgress] fills from top to bottom. FillTopToBottom FillMode = 2 // The [Instance.TextureProgress] fills from bottom to top. FillBottomToTop FillMode = 3 // Turns the node into a radial bar. The [Instance.TextureProgress] fills clockwise. See [Instance.RadialCenterOffset], [Instance.RadialInitialAngle] and [Instance.RadialFillDegrees] to control the way the bar fills up. FillClockwise FillMode = 4 // Turns the node into a radial bar. The [Instance.TextureProgress] fills counterclockwise. See [Instance.RadialCenterOffset], [Instance.RadialInitialAngle] and [Instance.RadialFillDegrees] to control the way the bar fills up. FillCounterClockwise FillMode = 5 // The [Instance.TextureProgress] fills from the center, expanding both towards the left and the right. FillBilinearLeftAndRight FillMode = 6 // The [Instance.TextureProgress] fills from the center, expanding both towards the top and the bottom. FillBilinearTopAndBottom FillMode = 7 // Turns the node into a radial bar. The [Instance.TextureProgress] fills radially from the center, expanding both clockwise and counterclockwise. See [Instance.RadialCenterOffset], [Instance.RadialInitialAngle] and [Instance.RadialFillDegrees] to control the way the bar fills up. FillClockwiseAndCounterClockwise FillMode = 8 )
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.TextureProgressBar
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsCanvasItem ¶
func (self Instance) AsCanvasItem() CanvasItem.Instance