PhotoModeStickersController class
game.ui.PhotoModeStickersController
Inheritance
Base: game.ui.WidgetGameController
Derived
None.
Properties
| Property | Type | |
|---|---|---|
backgroundPrefabRef | NodeRef | |
ResetStickers | ink.EmptyCallback | |
SetStickerImage | game.ui.StickerImageCallback | |
SetFrameImage | game.ui.StickerFrameCallback | |
SetBackground | game.ui.StickerBackgroundCallback | |
SetSetSelectedSticker | game.ui.StickerCallback | |
stickerLibraryId | CName | scripted |
stickersRoot | ink.WidgetReference | scripted |
frameRoot | ink.WidgetReference | scripted |
backgroundViewRoot | ink.WidgetReference | scripted |
stickers | WeakHandle<ink.Widget>[] | scripted |
frame | WeakHandle<ink.Widget> | scripted |
frameLogic | WeakHandle<PhotoModeFrame> | scripted |
currentHovered | int | scripted |
currentMouseDrag | int | scripted |
currentMouseRotate | int | scripted |
stickerDragStartRotation | float | scripted |
stickerDragStartScale | Vector2 | scripted |
stickerDragStartPos | Vector2 | scripted |
mouseDragStartPos | Vector2 | scripted |
mouseDragCurrentPos | Vector2 | scripted |
currentSticker | int | scripted |
stickerMove | Vector2 | scripted |
stickerRotation | float | scripted |
stickerScale | float | scripted |
stickersAreaSize | Vector2 | scripted |
cursorInputEnabled | bool | scripted |
editorEnabled | bool | scripted |
root | WeakHandle<ink.CanvasWidget> | scripted |
isInPhotoMode | bool | scripted |
Functions
void OnStickerTransformChanged(int stickerIndex, Vector2 stickerPosition, float stickerScale, float stickerRotation)RTTIvoid OnMouseHover(int stickerIndex)RTTIbool OnInitialize()RTTIvoid ResetState()RTTIbool OnUninitialize()RTTIbool OnEnterPhotoMode()RTTIbool OnExitPhotomode()RTTIbool OnEnableStickerEditor()RTTIbool OnDisableStickerEditor()RTTIvoid ResetStickerCursorState()RTTIbool OnCursorInputEnabled(bool enable)RTTIbool OnStickersButtonRelease(ink.PointerEvent e)RTTIbool OnStickersButtonHold(ink.PointerEvent e)RTTIbool OnStickersButtonPress(ink.PointerEvent e)RTTIbool OnStickersAxisInput(ink.PointerEvent e)RTTIfloat DiffAngle(float a, float b)RTTIvoid RotateScaleSticker(ink.Widget sticker)RTTIbool OnForceStickerTransform(int stickerIndex, Vector2 position, float scale, float rotation)RTTIbool OnUpdateStickers(float timeDelta)RTTIbool OnSetSetSelectedSticker(int stickerIndex)RTTIbool OnSetStickerImage(uint stickerIndex, red.ResourceReferenceScriptToken atlasPath, CName imagePart, int imageIndex)RTTIbool OnResetStickers()RTTIbool OnSetFrameImage(red.ResourceReferenceScriptToken atlasPath, CName[] imageParts, CName libraryItemName, Color color, bool flipHorizontal, bool flipVertical)RTTIbool OnSetBackground(bool enabled)RTTIvoid AddSticker()RTTIWeakHandle<ink.Widget> AddFrame(CName libraryItem)RTTIvoid StickerHoveredOutByMouse(WeakHandle<ink.Widget> sticker)RTTIvoid StickerHoveredByMouse(WeakHandle<ink.Widget> sticker)RTTI