FairyGUI.GButton
class FairyGUI.GButton
Fields and Properties:
float soundVolumeScale- Description: Volume of the click sound. (0-1)
bool changeStateOnClick- Description: For radio or checkbox. if false, the button will not change selected status on click. Default is true.
FairyGUI.GObject linkedPopup- Description: Show a popup on click. A linked popup component can be set for the button, which will be automatically displayed when the button is clicked.
- (static)
string FairyGUI.GButton.UP - (static)
string FairyGUI.GButton.DOWN - (static)
string FairyGUI.GButton.OVER - (static)
string FairyGUI.GButton.SELECTED_OVER - (static)
string FairyGUI.GButton.DISABLED - (static)
string FairyGUI.GButton.SELECTED_DISABLED FairyGUI.EventListener onChanged- Description: Dispatched when the button status was changed. This event is triggered when the selected status of a radio or checkbox button changes.
string icon- Description: Icon of the button.
string title- Description: Title of the button
string text- Description: Same of the title.
string selectedIcon- Description: Icon value on selected status.
string selectedTitle- Description: Title value on selected status.
UnityEngine.Color titleColor- Description: Title color.
UnityEngine.Color color- Description:
int titleFontSize- Description:
bool selected- Description: If the button is in selected status.
FairyGUI.ButtonMode mode- Description: Button mode.
FairyGUI.Controller relatedController- Description: A controller is connected to this button, the activate page of this controller will change while the button status changed.
string relatedPageId- Description:
Constructors:
FairyGUI.GButton.New()
Methods:
void SetIconData(double)void FireClick(bool, bool)- Description: Simulates a click on this button.
- Parameter downEffect: If the down effect will simulate too.
FairyGUI.GTextField GetTextField()- Description:
- Return:
void HandleControllerChanged(FairyGUI.Controller)