Starsector API
Loading...
Searching...
No Matches
ButtonAPI.java
Go to the documentation of this file.
1
package
com.fs.starfarer.api.ui;
2
3
public
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
();
20
void
unhighlight
();
21
boolean
isHighlighted
();
22
void
setHighlightBrightness
(
float
highlightBrightness);
23
float
getHighlightBrightness
();
24
void
setQuickMode
(
boolean
quickMode);
25
void
setClickable
(
boolean
clickable);
26
float
getGlowBrightness
();
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);
49
boolean
isPerformActionWhenDisabled
();
50
boolean
isSkipPlayingPressedSoundOnce
();
51
Object
getCustomData
();
52
void
setCustomData
(Object customData);
53
}
com.fs.starfarer.api.ui.ButtonAPI
Definition
ButtonAPI.java:3
com.fs.starfarer.api.ui.ButtonAPI.flash
void flash(boolean withSound)
com.fs.starfarer.api.ui.ButtonAPI.getGlowBrightness
float getGlowBrightness()
com.fs.starfarer.api.ui.ButtonAPI.setCustomData
void setCustomData(Object customData)
com.fs.starfarer.api.ui.ButtonAPI.setShowTooltipWhileInactive
void setShowTooltipWhileInactive(boolean showTooltipWhileInactive)
com.fs.starfarer.api.ui.ButtonAPI.setEnabled
void setEnabled(boolean enabled)
com.fs.starfarer.api.ui.ButtonAPI.getHighlightBrightness
float getHighlightBrightness()
com.fs.starfarer.api.ui.ButtonAPI.setRightClicksOkWhenDisabled
void setRightClicksOkWhenDisabled(boolean rightClicksOkWhenDisabled)
com.fs.starfarer.api.ui.ButtonAPI.isSkipPlayingPressedSoundOnce
boolean isSkipPlayingPressedSoundOnce()
com.fs.starfarer.api.ui.ButtonAPI.flash
void flash(boolean withSound, float in, float out)
com.fs.starfarer.api.ui.ButtonAPI.setPerformActionWhenDisabled
void setPerformActionWhenDisabled(boolean performActionWhenDisabled)
com.fs.starfarer.api.ui.ButtonAPI.isHighlighted
boolean isHighlighted()
com.fs.starfarer.api.ui.ButtonAPI.setGlowBrightness
void setGlowBrightness(float glowBrightness)
com.fs.starfarer.api.ui.ButtonAPI.flash
void flash()
com.fs.starfarer.api.ui.ButtonAPI.isPerformActionWhenDisabled
boolean isPerformActionWhenDisabled()
com.fs.starfarer.api.ui.ButtonAPI.setClickable
void setClickable(boolean clickable)
com.fs.starfarer.api.ui.ButtonAPI.setButtonPressedSound
void setButtonPressedSound(String buttonPressedSound)
com.fs.starfarer.api.ui.ButtonAPI.isChecked
boolean isChecked()
com.fs.starfarer.api.ui.ButtonAPI.setHighlightBounceDown
void setHighlightBounceDown(boolean b)
com.fs.starfarer.api.ui.ButtonAPI.setText
void setText(String text)
com.fs.starfarer.api.ui.ButtonAPI.setButtonDisabledPressedSound
void setButtonDisabledPressedSound(String buttonDisabledPressedSound)
com.fs.starfarer.api.ui.ButtonAPI.isEnabled
boolean isEnabled()
com.fs.starfarer.api.ui.ButtonAPI.unhighlight
void unhighlight()
com.fs.starfarer.api.ui.ButtonAPI.setMouseOverSound
void setMouseOverSound(String mouseOverSound)
com.fs.starfarer.api.ui.ButtonAPI.setFlashBrightness
void setFlashBrightness(float flashBrightness)
com.fs.starfarer.api.ui.ButtonAPI.setHighlightBrightness
void setHighlightBrightness(float highlightBrightness)
com.fs.starfarer.api.ui.ButtonAPI.setShortcut
void setShortcut(int key, boolean putLast)
com.fs.starfarer.api.ui.ButtonAPI.setQuickMode
void setQuickMode(boolean quickMode)
com.fs.starfarer.api.ui.ButtonAPI.setSkipPlayingPressedSoundOnce
void setSkipPlayingPressedSoundOnce(boolean skipPlayingPressedSoundOnce)
com.fs.starfarer.api.ui.ButtonAPI.getText
String getText()
com.fs.starfarer.api.ui.ButtonAPI.getCustomData
Object getCustomData()
com.fs.starfarer.api.ui.ButtonAPI.setChecked
void setChecked(boolean checked)
com.fs.starfarer.api.ui.ButtonAPI.highlight
void highlight()
com.fs.starfarer.api.ui.UIComponentAPI
Definition
UIComponentAPI.java:7
src
com
fs
starfarer
api
ui
ButtonAPI.java
Generated by
1.9.8