C# Class LWFObject, lwf

Inheritance: MonoBehaviour
Exibir arquivo Open project: explodingbarrel/lwf Class Usage Examples

Public Properties

Property Type Description
factory LWF.UnityRenderer.Factory
isAlive bool
lwf LWF.LWF
lwfName string

Protected Properties

Property Type Description
activateCount int
callUpdate bool
lwfDestroyCallbacks System.Collections.Generic.List>
lwfLoadCallbacks System.Collections.Generic.List>
rendererFactoryConstructor LWF.UnityRenderer.Factory>.System.Func
resumeCount int
useCombinedMeshRenderer bool

Public Methods

Method Description
Activate ( ) : void
AddButtonEventHandler ( string instanceName, System.Action load = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null, System.Action press = null, System.Action release = null, System.Action rollOver = null, System.Action rollOut = null, int>.System.Action keyPress = null ) : void
AddDestroyCallback ( System.Action lwfDestroyCallback ) : void
AddEventHandler ( string eventName, LWF.Button>.System.Action eventHandler ) : void
AddLoadCallback ( System.Action lwfLoadCallback ) : void
AddMovieEventHandler ( string instanceName, System.Action load = null, System.Action postLoad = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null ) : void
AddMovieLoadHandler ( string instanceName, System.Action handler, bool immortal = false ) : void
AttachLWF ( string instanceName, LWFObject, lwfObject, string attachName, int attachDepth = -1, bool reorder = false, System.Action attachHandler = null, Func,System detachHandler = null ) : void
ClearButtonEventHandler ( string instanceName ) : void
ClearButtonEventHandler ( string instanceName, LWF type ) : void
ClearEventHandler ( string eventName ) : void
ClearMovieEventHandler ( string instanceName ) : void
ClearMovieEventHandler ( string instanceName, LWF type ) : void
ClearProperty ( ) : void
Deactivate ( ) : void
DetachAllLWFs ( string instanceName ) : void
DetachLWF ( string instanceName, LWFObject, lwfObject ) : void
DetachLWF ( string instanceName, string attachName ) : void
FitForHeight ( int stageHeight ) : void
FitForWidth ( int stageWidth ) : void
GetRendererName ( ) : string
GetText ( string textName ) : string
GetText ( string instanceName, string textName ) : string
GotoAndPlayMovie ( string instanceName, int frameNo, bool immortal = false ) : void
GotoAndPlayMovie ( string instanceName, string label, bool immortal = false ) : void
GotoAndStopMovie ( string instanceName, int frameNo, bool immortal = false ) : void
GotoAndStopMovie ( string instanceName, string label, bool immortal = false ) : void
Init ( ) : void
LWFObject ( ) : System
Load ( string path, string texturePrefix = "", string fontPrefix = "", float zOffset, float zRate = 1, int renderQueueOffset, Camera camera = null, bool autoUpdate = true, bool>.System.Func lwfDataCallback = null, System.Action lwfLoadCallback = null, System.Action lwfDestroyCallback = null, Func,System lwfDataLoader = null, UnityEngine.Texture2D>.System.Func textureLoader = null, System.Action textureUnloader = null, object luaState = null ) : bool
Move ( float x, float y ) : void
MoveMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
MoveTo ( float x, float y ) : void
MoveToMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
NextFrameMovie ( string instanceName, bool immortal = false ) : void
OnDestroy ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnLoad ( ) : void
OnSceneGUI ( SceneView sceneView ) : void
Pause ( ) : void
PlayMovie ( string instanceName, bool immortal = false ) : void
PrevFrameMovie ( string instanceName, bool immortal = false ) : void
RemoveButtonEventHandler ( string instanceName, System.Action load = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null, System.Action press = null, System.Action release = null, System.Action rollOver = null, System.Action rollOut = null, int>.System.Action keyPress = null ) : void
RemoveEventHandler ( string eventName, LWF.Button>.System.Action eventHandler ) : void
RemoveMovieEventHandler ( string instanceName, System.Action load = null, System.Action postLoad = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null ) : void
Resume ( ) : void
Rotate ( float degree ) : void
RotateMovie ( string instanceName, float degree, bool immortal = false ) : void
RotateTo ( float degree ) : void
RotateToMovie ( string instanceName, float degree, bool immortal = false ) : void
Scale ( float x, float y ) : void
ScaleForHeight ( int stageHeight ) : void
ScaleForWidth ( int stageWidth ) : void
ScaleMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
ScaleTo ( float x, float y ) : void
ScaleToMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
ScreenToLWFPoint ( Vector3 screenPoint ) : Vector3
SetAlpha ( float alpha ) : void
SetAlphaMovie ( string instanceName, float v, bool immortal = false ) : void
SetAutoUpdate ( bool autoUpdate ) : void
SetBitmapFontLoader ( Func,System dataLoader = null, UnityEngine.Texture2D>.System.Func textureLoader = null, System.Action textureUnloader = null ) : void
SetButtonEventHandler ( string instanceName, System.Action load = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null, System.Action press = null, System.Action release = null, System.Action rollOver = null, System.Action rollOut = null, int>.System.Action keyPress = null ) : void
SetColorTransform ( LWF c ) : void
SetColorTransformMovie ( string instanceName, LWF c, bool immortal = false ) : void
SetEventHandler ( string eventName, LWF.Button>.System.Action eventHandler ) : void
SetLoader ( Func,System lwfDataLoader = null, UnityEngine.Texture2D>.System.Func textureLoader = null, System.Action textureUnloader = null ) : void
SetMatrix ( LWF m ) : void
SetMatrixMovie ( string instanceName, LWF matrix, float sx = 1, float sy = 1, float r, bool immortal = false ) : void
SetMovieCommand ( string instanceNames, System.Action cmd ) : void
SetMovieEventHandler ( string instanceName, System.Action load = null, System.Action postLoad = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null ) : void
SetProgramObjectConstructor ( string programObjectName, System.Func programObjectConstructor ) : void
SetRendererFactoryConstructor ( LWF.UnityRenderer.Factory>.System.Func c ) : void
SetRenderingOffsetMovie ( string instanceName, int rOffset, bool immortal = false ) : void
SetText ( string textName, string text ) : void
SetText ( string instanceName, string textName, string text ) : void
SetVisibleMovie ( string instanceName, bool visible, bool immortal = false ) : void
StopMovie ( string instanceName, bool immortal = false ) : void
Update ( ) : void
UpdateLWF ( float tick, int pointX = Int32.MinValue, int pointY = Int32.MinValue, bool press = false, bool release = false ) : void
UseCombinedMeshRenderer ( ) : void
UseDrawMeshRenderer ( ) : void
WorldToLWFPoint ( Vector3 worldPoint ) : Vector3

Method Details

Activate() public method

public Activate ( ) : void
return void

AddButtonEventHandler() public method

public AddButtonEventHandler ( string instanceName, System.Action load = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null, System.Action press = null, System.Action release = null, System.Action rollOver = null, System.Action rollOut = null, int>.System.Action keyPress = null ) : void
instanceName string
load System.Action
unload System.Action
enterFrame System.Action
update System.Action
render System.Action
press System.Action
release System.Action
rollOver System.Action
rollOut System.Action
keyPress int>.System.Action
return void

AddDestroyCallback() public method

public AddDestroyCallback ( System.Action lwfDestroyCallback ) : void
lwfDestroyCallback System.Action
return void

AddEventHandler() public method

public AddEventHandler ( string eventName, LWF.Button>.System.Action eventHandler ) : void
eventName string
eventHandler LWF.Button>.System.Action
return void

AddLoadCallback() public method

public AddLoadCallback ( System.Action lwfLoadCallback ) : void
lwfLoadCallback System.Action
return void

AddMovieEventHandler() public method

public AddMovieEventHandler ( string instanceName, System.Action load = null, System.Action postLoad = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null ) : void
instanceName string
load System.Action
postLoad System.Action
unload System.Action
enterFrame System.Action
update System.Action
render System.Action
return void

AddMovieLoadHandler() public method

public AddMovieLoadHandler ( string instanceName, System.Action handler, bool immortal = false ) : void
instanceName string
handler System.Action
immortal bool
return void

AttachLWF() public method

public AttachLWF ( string instanceName, LWFObject, lwfObject, string attachName, int attachDepth = -1, bool reorder = false, System.Action attachHandler = null, Func,System detachHandler = null ) : void
instanceName string
lwfObject LWFObject,
attachName string
attachDepth int
reorder bool
attachHandler System.Action
detachHandler Func,System
return void

ClearButtonEventHandler() public method

public ClearButtonEventHandler ( string instanceName ) : void
instanceName string
return void

ClearButtonEventHandler() public method

public ClearButtonEventHandler ( string instanceName, LWF type ) : void
instanceName string
type LWF
return void

ClearEventHandler() public method

public ClearEventHandler ( string eventName ) : void
eventName string
return void

ClearMovieEventHandler() public method

public ClearMovieEventHandler ( string instanceName ) : void
instanceName string
return void

ClearMovieEventHandler() public method

public ClearMovieEventHandler ( string instanceName, LWF type ) : void
instanceName string
type LWF
return void

ClearProperty() public method

public ClearProperty ( ) : void
return void

Deactivate() public method

public Deactivate ( ) : void
return void

DetachAllLWFs() public method

public DetachAllLWFs ( string instanceName ) : void
instanceName string
return void

DetachLWF() public method

public DetachLWF ( string instanceName, LWFObject, lwfObject ) : void
instanceName string
lwfObject LWFObject,
return void

DetachLWF() public method

public DetachLWF ( string instanceName, string attachName ) : void
instanceName string
attachName string
return void

FitForHeight() public method

public FitForHeight ( int stageHeight ) : void
stageHeight int
return void

FitForWidth() public method

public FitForWidth ( int stageWidth ) : void
stageWidth int
return void

GetRendererName() public method

public GetRendererName ( ) : string
return string

GetText() public method

public GetText ( string textName ) : string
textName string
return string

GetText() public method

public GetText ( string instanceName, string textName ) : string
instanceName string
textName string
return string

GotoAndPlayMovie() public method

public GotoAndPlayMovie ( string instanceName, int frameNo, bool immortal = false ) : void
instanceName string
frameNo int
immortal bool
return void

GotoAndPlayMovie() public method

public GotoAndPlayMovie ( string instanceName, string label, bool immortal = false ) : void
instanceName string
label string
immortal bool
return void

GotoAndStopMovie() public method

public GotoAndStopMovie ( string instanceName, int frameNo, bool immortal = false ) : void
instanceName string
frameNo int
immortal bool
return void

GotoAndStopMovie() public method

public GotoAndStopMovie ( string instanceName, string label, bool immortal = false ) : void
instanceName string
label string
immortal bool
return void

Init() public method

public Init ( ) : void
return void

LWFObject() public method

public LWFObject ( ) : System
return System

Load() public method

public Load ( string path, string texturePrefix = "", string fontPrefix = "", float zOffset, float zRate = 1, int renderQueueOffset, Camera camera = null, bool autoUpdate = true, bool>.System.Func lwfDataCallback = null, System.Action lwfLoadCallback = null, System.Action lwfDestroyCallback = null, Func,System lwfDataLoader = null, UnityEngine.Texture2D>.System.Func textureLoader = null, System.Action textureUnloader = null, object luaState = null ) : bool
path string
texturePrefix string
fontPrefix string
zOffset float
zRate float
renderQueueOffset int
camera Camera
autoUpdate bool
lwfDataCallback bool>.System.Func
lwfLoadCallback System.Action
lwfDestroyCallback System.Action
lwfDataLoader Func,System
textureLoader UnityEngine.Texture2D>.System.Func
textureUnloader System.Action
luaState object
return bool

Move() public method

public Move ( float x, float y ) : void
x float
y float
return void

MoveMovie() public method

public MoveMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
instanceName string
vx float
vy float
immortal bool
return void

MoveTo() public method

public MoveTo ( float x, float y ) : void
x float
y float
return void

MoveToMovie() public method

public MoveToMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
instanceName string
vx float
vy float
immortal bool
return void

NextFrameMovie() public method

public NextFrameMovie ( string instanceName, bool immortal = false ) : void
instanceName string
immortal bool
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnLoad() public method

public OnLoad ( ) : void
return void

OnSceneGUI() public method

public OnSceneGUI ( SceneView sceneView ) : void
sceneView SceneView
return void

Pause() public method

public Pause ( ) : void
return void

PlayMovie() public method

public PlayMovie ( string instanceName, bool immortal = false ) : void
instanceName string
immortal bool
return void

PrevFrameMovie() public method

public PrevFrameMovie ( string instanceName, bool immortal = false ) : void
instanceName string
immortal bool
return void

RemoveButtonEventHandler() public method

public RemoveButtonEventHandler ( string instanceName, System.Action load = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null, System.Action press = null, System.Action release = null, System.Action rollOver = null, System.Action rollOut = null, int>.System.Action keyPress = null ) : void
instanceName string
load System.Action
unload System.Action
enterFrame System.Action
update System.Action
render System.Action
press System.Action
release System.Action
rollOver System.Action
rollOut System.Action
keyPress int>.System.Action
return void

RemoveEventHandler() public method

public RemoveEventHandler ( string eventName, LWF.Button>.System.Action eventHandler ) : void
eventName string
eventHandler LWF.Button>.System.Action
return void

RemoveMovieEventHandler() public method

public RemoveMovieEventHandler ( string instanceName, System.Action load = null, System.Action postLoad = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null ) : void
instanceName string
load System.Action
postLoad System.Action
unload System.Action
enterFrame System.Action
update System.Action
render System.Action
return void

Resume() public method

public Resume ( ) : void
return void

Rotate() public method

public Rotate ( float degree ) : void
degree float
return void

RotateMovie() public method

public RotateMovie ( string instanceName, float degree, bool immortal = false ) : void
instanceName string
degree float
immortal bool
return void

RotateTo() public method

public RotateTo ( float degree ) : void
degree float
return void

RotateToMovie() public method

public RotateToMovie ( string instanceName, float degree, bool immortal = false ) : void
instanceName string
degree float
immortal bool
return void

Scale() public method

public Scale ( float x, float y ) : void
x float
y float
return void

ScaleForHeight() public method

public ScaleForHeight ( int stageHeight ) : void
stageHeight int
return void

ScaleForWidth() public method

public ScaleForWidth ( int stageWidth ) : void
stageWidth int
return void

ScaleMovie() public method

public ScaleMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
instanceName string
vx float
vy float
immortal bool
return void

ScaleTo() public method

public ScaleTo ( float x, float y ) : void
x float
y float
return void

ScaleToMovie() public method

public ScaleToMovie ( string instanceName, float vx, float vy, bool immortal = false ) : void
instanceName string
vx float
vy float
immortal bool
return void

ScreenToLWFPoint() public method

public ScreenToLWFPoint ( Vector3 screenPoint ) : Vector3
screenPoint Vector3
return Vector3

SetAlpha() public method

public SetAlpha ( float alpha ) : void
alpha float
return void

SetAlphaMovie() public method

public SetAlphaMovie ( string instanceName, float v, bool immortal = false ) : void
instanceName string
v float
immortal bool
return void

SetAutoUpdate() public method

public SetAutoUpdate ( bool autoUpdate ) : void
autoUpdate bool
return void

SetBitmapFontLoader() public static method

public static SetBitmapFontLoader ( Func,System dataLoader = null, UnityEngine.Texture2D>.System.Func textureLoader = null, System.Action textureUnloader = null ) : void
dataLoader Func,System
textureLoader UnityEngine.Texture2D>.System.Func
textureUnloader System.Action
return void

SetButtonEventHandler() public method

public SetButtonEventHandler ( string instanceName, System.Action load = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null, System.Action press = null, System.Action release = null, System.Action rollOver = null, System.Action rollOut = null, int>.System.Action keyPress = null ) : void
instanceName string
load System.Action
unload System.Action
enterFrame System.Action
update System.Action
render System.Action
press System.Action
release System.Action
rollOver System.Action
rollOut System.Action
keyPress int>.System.Action
return void

SetColorTransform() public method

public SetColorTransform ( LWF c ) : void
c LWF
return void

SetColorTransformMovie() public method

public SetColorTransformMovie ( string instanceName, LWF c, bool immortal = false ) : void
instanceName string
c LWF
immortal bool
return void

SetEventHandler() public method

public SetEventHandler ( string eventName, LWF.Button>.System.Action eventHandler ) : void
eventName string
eventHandler LWF.Button>.System.Action
return void

SetLoader() public static method

public static SetLoader ( Func,System lwfDataLoader = null, UnityEngine.Texture2D>.System.Func textureLoader = null, System.Action textureUnloader = null ) : void
lwfDataLoader Func,System
textureLoader UnityEngine.Texture2D>.System.Func
textureUnloader System.Action
return void

SetMatrix() public method

public SetMatrix ( LWF m ) : void
m LWF
return void

SetMatrixMovie() public method

public SetMatrixMovie ( string instanceName, LWF matrix, float sx = 1, float sy = 1, float r, bool immortal = false ) : void
instanceName string
matrix LWF
sx float
sy float
r float
immortal bool
return void

SetMovieCommand() public method

public SetMovieCommand ( string instanceNames, System.Action cmd ) : void
instanceNames string
cmd System.Action
return void

SetMovieEventHandler() public method

public SetMovieEventHandler ( string instanceName, System.Action load = null, System.Action postLoad = null, System.Action unload = null, System.Action enterFrame = null, System.Action update = null, System.Action render = null ) : void
instanceName string
load System.Action
postLoad System.Action
unload System.Action
enterFrame System.Action
update System.Action
render System.Action
return void

SetProgramObjectConstructor() public method

public SetProgramObjectConstructor ( string programObjectName, System.Func programObjectConstructor ) : void
programObjectName string
programObjectConstructor System.Func
return void

SetRendererFactoryConstructor() public method

public SetRendererFactoryConstructor ( LWF.UnityRenderer.Factory>.System.Func c ) : void
c LWF.UnityRenderer.Factory>.System.Func
return void

SetRenderingOffsetMovie() public method

public SetRenderingOffsetMovie ( string instanceName, int rOffset, bool immortal = false ) : void
instanceName string
rOffset int
immortal bool
return void

SetText() public method

public SetText ( string textName, string text ) : void
textName string
text string
return void

SetText() public method

public SetText ( string instanceName, string textName, string text ) : void
instanceName string
textName string
text string
return void

SetVisibleMovie() public method

public SetVisibleMovie ( string instanceName, bool visible, bool immortal = false ) : void
instanceName string
visible bool
immortal bool
return void

StopMovie() public method

public StopMovie ( string instanceName, bool immortal = false ) : void
instanceName string
immortal bool
return void

Update() public method

public Update ( ) : void
return void

UpdateLWF() public method

public UpdateLWF ( float tick, int pointX = Int32.MinValue, int pointY = Int32.MinValue, bool press = false, bool release = false ) : void
tick float
pointX int
pointY int
press bool
release bool
return void

UseCombinedMeshRenderer() public method

public UseCombinedMeshRenderer ( ) : void
return void

UseDrawMeshRenderer() public method

public UseDrawMeshRenderer ( ) : void
return void

WorldToLWFPoint() public method

public WorldToLWFPoint ( Vector3 worldPoint ) : Vector3
worldPoint Vector3
return Vector3

Property Details

activateCount protected_oe property

protected int activateCount
return int

callUpdate protected_oe property

protected bool callUpdate
return bool

factory public_oe property

public LWF.UnityRenderer.Factory factory
return LWF.UnityRenderer.Factory

isAlive public_oe property

public bool isAlive
return bool

lwf public_oe property

public LWF,LWF lwf
return LWF.LWF

lwfDestroyCallbacks protected_oe property

protected System.Collections.Generic.List> lwfDestroyCallbacks
return System.Collections.Generic.List>

lwfLoadCallbacks protected_oe property

protected System.Collections.Generic.List> lwfLoadCallbacks
return System.Collections.Generic.List>

lwfName public_oe property

public string lwfName
return string

rendererFactoryConstructor protected_oe property

protected System.Func rendererFactoryConstructor
return LWF.UnityRenderer.Factory>.System.Func

resumeCount protected_oe property

protected int resumeCount
return int

useCombinedMeshRenderer protected_oe property

protected bool useCombinedMeshRenderer
return bool