Class FSliceButton
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
public class FSliceButton : FContainer, FSingleTouchableInterface, FCapturedTouchableInterface
- Inheritance
-
FSliceButton
- Implements
-
- Inherited Members
-
Constructors
public FSliceButton(float width, float height, string upElementName, string downElementName)
Parameters
width float
height float
upElementName string
downElementName string
public FSliceButton(float width, float height, string upElementName, string downElementName, string soundName)
Parameters
width float
height float
upElementName string
downElementName string
soundName string
public FSliceButton(float width, float height, string upElementName, string downElementName, Color color)
Parameters
width float
height float
upElementName string
downElementName string
color Color
public FSliceButton(float width, float height, string upElementName, string downElementName, Color color, string soundName)
Parameters
width float
height float
upElementName string
downElementName string
color Color
soundName string
public FSliceButton(float width, float height, string upElementName, string downElementName, Color upColor, Color downColor, string soundName)
Parameters
width float
height float
upElementName string
downElementName string
upColor Color
downColor Color
soundName string
Fields
Field Value
- float
Field Value
- float
Field Value
- FSliceSprite
Field Value
- Color
public FAtlasElement _downElement
Field Value
- FAtlasElement
Field Value
- bool
Field Value
- FLabel
Field Value
- FLabel
Field Value
- string
Field Value
- Color
public FAtlasElement _upElement
Field Value
- FAtlasElement
public float expansionAmount
Field Value
- float
Properties
public float anchorX { get; set; }
Property Value
- float
public float anchorY { get; set; }
Property Value
- float
public float height { get; set; }
Property Value
- float
public bool isEnabled { get; set; }
Property Value
- bool
public FLabel labelA { get; }
Property Value
- FLabel
public FLabel labelB { get; }
Property Value
- FLabel
public FSprite sprite { get; }
Property Value
- FSprite
public float width { get; set; }
Property Value
- float
Methods
public FLabel AddLabelA(string fontName, string text, float scale, float offsetY, Color color)
Parameters
fontName string
text string
scale float
offsetY float
color Color
Returns
- FLabel
public FLabel AddLabelB(string fontName, string text, float scale, float offsetY, Color color)
Parameters
fontName string
text string
scale float
offsetY float
color Color
Returns
- FLabel
public override void HandleAddedToStage()
public override void HandleRemovedFromStage()
public bool HandleSingleTouchBegan(FTouch touch)
Parameters
touch FTouch
Returns
- bool
public void HandleSingleTouchCanceled(FTouch touch)
Parameters
touch FTouch
public void HandleSingleTouchEnded(FTouch touch)
Parameters
touch FTouch
public void HandleSingleTouchMoved(FTouch touch)
Parameters
touch FTouch
public void SetAnchor(float x, float y)
Parameters
x float
y float
Events
public event FSliceButton.FSliceButtonSignalDelegate SignalPress
Event Type
- FSliceButton.FSliceButtonSignalDelegate
public event FSliceButton.FSliceButtonSignalDelegate SignalRelease
Event Type
- FSliceButton.FSliceButtonSignalDelegate
public event FSliceButton.FSliceButtonSignalDelegate SignalReleaseOutside
Event Type
- FSliceButton.FSliceButtonSignalDelegate