Starsector API
Loading...
Searching...
No Matches
ButtonAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.ui;
2
3public interface ButtonAPI extends UIComponentAPI {
4
5 public static enum UICheckboxSize {
6 TINY,
7 SMALL,
8 LARGE,
9 }
10
11 void setShortcut(int key, boolean putLast);
12 void setEnabled(boolean enabled);
13 boolean isEnabled();
14 void setButtonPressedSound(String buttonPressedSound);
15 void setMouseOverSound(String mouseOverSound);
16 void setButtonDisabledPressedSound(String buttonDisabledPressedSound);
17 boolean isChecked();
18 void setChecked(boolean checked);
19 void highlight();
21 boolean isHighlighted();
22 void setHighlightBrightness(float highlightBrightness);
24 void setQuickMode(boolean quickMode);
25 void setClickable(boolean clickable);
27 void setGlowBrightness(float glowBrightness);
28
33 void setText(String text);
37 String getText();
38
39
40 void setSkipPlayingPressedSoundOnce(boolean skipPlayingPressedSoundOnce);
41 void setHighlightBounceDown(boolean b);
42 void setShowTooltipWhileInactive(boolean showTooltipWhileInactive);
43 void setRightClicksOkWhenDisabled(boolean rightClicksOkWhenDisabled);
44 void setFlashBrightness(float flashBrightness);
45 void flash(boolean withSound, float in, float out);
46 void flash(boolean withSound);
47 void flash();
48 void setPerformActionWhenDisabled(boolean performActionWhenDisabled);
51 Object getCustomData();
52 void setCustomData(Object customData);
53}
void flash(boolean withSound)
void setCustomData(Object customData)
void setShowTooltipWhileInactive(boolean showTooltipWhileInactive)
void setEnabled(boolean enabled)
void setRightClicksOkWhenDisabled(boolean rightClicksOkWhenDisabled)
void flash(boolean withSound, float in, float out)
void setPerformActionWhenDisabled(boolean performActionWhenDisabled)
void setGlowBrightness(float glowBrightness)
void setClickable(boolean clickable)
void setButtonPressedSound(String buttonPressedSound)
void setHighlightBounceDown(boolean b)
void setButtonDisabledPressedSound(String buttonDisabledPressedSound)
void setMouseOverSound(String mouseOverSound)
void setFlashBrightness(float flashBrightness)
void setHighlightBrightness(float highlightBrightness)
void setShortcut(int key, boolean putLast)
void setQuickMode(boolean quickMode)
void setSkipPlayingPressedSoundOnce(boolean skipPlayingPressedSoundOnce)
void setChecked(boolean checked)