class_texturebutton - vkbsb/godot GitHub Wiki
TextureButton
####Inherits: BaseButton ####Category: Core
Brief Description
Button that can be themed with textures.
Member Functions
- void set_normal_texture ( Texture texture )
- void set_pressed_texture ( Texture texture )
- void set_hover_texture ( Texture texture )
- void set_disabled_texture ( Texture texture )
- void set_focused_texture ( Texture texture )
- void set_click_mask ( BitMap mask )
- Texture get_normal_texture ( ) const
- Texture get_pressed_texture ( ) const
- Texture get_hover_texture ( ) const
- Texture get_disabled_texture ( ) const
- Texture get_focused_texture ( ) const
- BitMap get_click_mask ( ) const
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.