forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_texturebutton
Lukas Sägesser edited this page Jun 22, 2015
·
9 revisions
####Inherits: BaseButton ####Category: Core
Button that can be themed with textures.
- 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 )
- void set_scale ( Vector2 scale )
- void set_modulate ( Color color )
- 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
- Vector2 get_scale ( ) const
- Color get_modulate ( ) const
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.