TextureButton¶
Inherits: BaseButton < Control < CanvasItem < Node < Object
Category: Core
Brief Description¶
Button that can be themed with textures.
Member Functions¶
BitMap | get_click_mask ( ) const |
Texture | get_disabled_texture ( ) const |
Texture | get_focused_texture ( ) const |
Texture | get_hover_texture ( ) const |
Color | get_modulate ( ) const |
Texture | get_normal_texture ( ) const |
Texture | get_pressed_texture ( ) const |
Vector2 | get_texture_scale ( ) const |
void | set_click_mask ( BitMap mask ) |
void | set_disabled_texture ( Texture texture ) |
void | set_focused_texture ( Texture texture ) |
void | set_hover_texture ( Texture texture ) |
void | set_modulate ( Color color ) |
void | set_normal_texture ( Texture texture ) |
void | set_pressed_texture ( Texture texture ) |
void | set_texture_scale ( Vector2 scale ) |
Description¶
Button that can be themed with textures. This is like a regular Button but can be themed by assigning textures to it. This button is intended to be easy to theme, however a regular button can expand (that uses styleboxes) and still be better if the interface is expect to have internationalization of texts.
Only the normal texture is required, the others are optional.
Member Function Description¶
- BitMap get_click_mask ( ) const
- Texture get_disabled_texture ( ) const
- Texture get_focused_texture ( ) const
- Texture get_hover_texture ( ) const
- Color get_modulate ( ) const
- Texture get_normal_texture ( ) const
- Texture get_pressed_texture ( ) const
- Vector2 get_texture_scale ( ) const
- void set_click_mask ( BitMap mask )
- void set_disabled_texture ( Texture texture )
- void set_focused_texture ( Texture texture )
- void set_hover_texture ( Texture texture )
- void set_modulate ( Color color )
- void set_normal_texture ( Texture texture )
- void set_pressed_texture ( Texture texture )
- void set_texture_scale ( Vector2 scale )