Table of Contents

Class FSliceButton

Namespace
Global
Assembly
Assembly-CSharp.dll
public class FSliceButton : FContainer, FSingleTouchableInterface, FCapturedTouchableInterface
Inheritance
FSliceButton
Implements
Inherited Members

Constructors

FSliceButton(float, float, string, string)

public FSliceButton(float width, float height, string upElementName, string downElementName)

Parameters

width float
height float
upElementName string
downElementName string

FSliceButton(float, float, string, string, string)

public FSliceButton(float width, float height, string upElementName, string downElementName, string soundName)

Parameters

width float
height float
upElementName string
downElementName string
soundName string

FSliceButton(float, float, string, string, Color)

public FSliceButton(float width, float height, string upElementName, string downElementName, Color color)

Parameters

width float
height float
upElementName string
downElementName string
color Color

FSliceButton(float, float, string, string, Color, string)

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

FSliceButton(float, float, string, string, Color, Color, 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

_anchorX

public float _anchorX

Field Value

float

_anchorY

public float _anchorY

Field Value

float

_bg

public FSliceSprite _bg

Field Value

FSliceSprite

_downColor

public Color _downColor

Field Value

Color

_downElement

public FAtlasElement _downElement

Field Value

FAtlasElement

_isEnabled

public bool _isEnabled

Field Value

bool

_labelA

public FLabel _labelA

Field Value

FLabel

_labelB

public FLabel _labelB

Field Value

FLabel

_soundName

public string _soundName

Field Value

string

_upColor

public Color _upColor

Field Value

Color

_upElement

public FAtlasElement _upElement

Field Value

FAtlasElement

expansionAmount

public float expansionAmount

Field Value

float

Properties

anchorX

public float anchorX { get; set; }

Property Value

float

anchorY

public float anchorY { get; set; }

Property Value

float

height

public float height { get; set; }

Property Value

float

isEnabled

public bool isEnabled { get; set; }

Property Value

bool

labelA

public FLabel labelA { get; }

Property Value

FLabel

labelB

public FLabel labelB { get; }

Property Value

FLabel

sprite

public FSprite sprite { get; }

Property Value

FSprite

width

public float width { get; set; }

Property Value

float

Methods

AddLabelA(string, string, float, float, Color)

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

AddLabelB(string, string, float, float, Color)

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

HandleAddedToStage()

public override void HandleAddedToStage()

HandleRemovedFromStage()

public override void HandleRemovedFromStage()

HandleSingleTouchBegan(FTouch)

public bool HandleSingleTouchBegan(FTouch touch)

Parameters

touch FTouch

Returns

bool

HandleSingleTouchCanceled(FTouch)

public void HandleSingleTouchCanceled(FTouch touch)

Parameters

touch FTouch

HandleSingleTouchEnded(FTouch)

public void HandleSingleTouchEnded(FTouch touch)

Parameters

touch FTouch

HandleSingleTouchMoved(FTouch)

public void HandleSingleTouchMoved(FTouch touch)

Parameters

touch FTouch

SetAnchor(float, float)

public void SetAnchor(float x, float y)

Parameters

x float
y float

Events

SignalPress

public event FSliceButton.FSliceButtonSignalDelegate SignalPress

Event Type

FSliceButton.FSliceButtonSignalDelegate

SignalRelease

public event FSliceButton.FSliceButtonSignalDelegate SignalRelease

Event Type

FSliceButton.FSliceButtonSignalDelegate

SignalReleaseOutside

public event FSliceButton.FSliceButtonSignalDelegate SignalReleaseOutside

Event Type

FSliceButton.FSliceButtonSignalDelegate