mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 09:13:24 +00:00
FIX - complete LB custom app compatibility (#11)
* FIX - preserve LB custom app lifecycle * FIX - reset LB export aliases before startup * FIX - report competing custom app providers * FIX - identify LB app frames as live NUI * FIX - complete LB custom app compatibility * FIX - provide LB PicChat runtime exports * FIX - route LB PicChat through Sky Phone * FIX - return cached LB equipped phone number * FIX - harden PicChat compatibility migration * ENH - complete modular phone provider and Creator APIs * DOC - document the Sky Phone Creator API --------- Co-authored-by: DerEchteAlec <bycraky@gmail.com> Co-authored-by: DerEchteAlec <alec.schitzkat@luwan.io>
This commit is contained in:
co-authored by
DerEchteAlec
DerEchteAlec
parent
9aec3eefef
commit
30559048fd
@@ -67,6 +67,7 @@ end
|
||||
function CreateCam(name, active)
|
||||
assert(name == "DEFAULT_SCRIPTED_CAMERA" and active, "selfie camera must be created active")
|
||||
camera_created = true
|
||||
camera_destroyed = false
|
||||
return 73
|
||||
end
|
||||
|
||||
@@ -122,4 +123,29 @@ assert(close_enough(camera_target.z, 2.73))
|
||||
assert(response_from("camera:setFacing", { front = false }).success)
|
||||
assert(camera_destroyed and not scripted_camera_rendering, "rear mode must release the selfie camera")
|
||||
|
||||
assert(type(SkyPhoneCamera.EnableWalkable) == "function", "walkable camera enable seam must exist")
|
||||
assert(type(SkyPhoneCamera.DisableWalkable) == "function", "walkable camera disable seam must exist")
|
||||
assert(type(SkyPhoneCamera.SetSelfie) == "function", "selfie camera seam must exist")
|
||||
assert(type(SkyPhoneCamera.ToggleFrozen) == "function", "frozen camera seam must exist")
|
||||
assert(type(SkyPhoneCamera.SetFlashlight) == "function", "flashlight seam must exist")
|
||||
assert(type(SkyPhoneCamera.GetState) == "function", "camera state seam must exist")
|
||||
|
||||
SkyPhoneCamera.SetFlashlight(true)
|
||||
assert(SkyPhoneCamera.GetState().flashEnabled, "flashlight state must report enabled")
|
||||
SkyPhoneCamera.SetFlashlight(false)
|
||||
assert(not SkyPhoneCamera.GetState().flashEnabled, "flashlight state must report disabled")
|
||||
|
||||
SkyPhoneCamera.EnableWalkable(true)
|
||||
local walkable_state = SkyPhoneCamera.GetState()
|
||||
assert(walkable_state.walkable, "walkable camera must report enabled")
|
||||
assert(walkable_state.selfie, "walkable camera must preserve selfie mode")
|
||||
assert(walkable_state.active, "walkable camera must open the camera")
|
||||
SkyPhoneCamera.SetSelfie(false)
|
||||
assert(not SkyPhoneCamera.GetState().selfie, "selfie camera must switch back to rear mode")
|
||||
SkyPhoneCamera.ToggleFrozen()
|
||||
SkyPhoneCamera.DisableWalkable()
|
||||
local closed_state = SkyPhoneCamera.GetState()
|
||||
assert(not closed_state.walkable, "walkable camera must report disabled")
|
||||
assert(not closed_state.active, "walkable camera disable must close the camera")
|
||||
|
||||
print("Client camera tests passed")
|
||||
|
||||
Reference in New Issue
Block a user