-
Notifications
You must be signed in to change notification settings - Fork 0
/
House-Warming.json.autosave
1 lines (1 loc) · 89.5 KB
/
House-Warming.json.autosave
1
{"firstLayout":"","gdVersion":{"build":99,"major":4,"minor":0,"revision":0},"properties":{"adaptGameResolutionAtRuntime":true,"antialiasingMode":"MSAA","antialisingEnabledOnMobile":false,"folderProject":true,"orientation":"default","packageName":"com.example.gamename","pixelsRounding":false,"projectUuid":"f82641da-137c-4e50-b4f6-6c9bfd117fbe","scaleMode":"nearest","sizeOnStartupMode":"","templateSlug":"","useExternalSourceFiles":false,"version":"1.0.0","name":"House-Warming","description":"","author":"","windowWidth":1920,"windowHeight":1080,"latestCompilationDirectory":"","maxFPS":60,"minFPS":20,"verticalSync":false,"platformSpecificAssets":{},"loadingScreen":{"backgroundColor":0,"backgroundFadeInDuration":0.2,"backgroundImageResourceName":"","gdevelopLogoStyle":"light","logoAndProgressFadeInDuration":0.2,"logoAndProgressLogoFadeInDelay":0.2,"minDuration":1.5,"progressBarColor":16777215,"progressBarHeight":20.0,"progressBarMaxWidth":200.0,"progressBarMinWidth":40.0,"progressBarWidthPercent":30.0,"showGDevelopSplash":true,"showProgressBar":true},"watermark":{"placement":"bottom-left","showWatermark":true},"authorIds":[],"authorUsernames":[],"categories":[],"playableDevices":[],"extensionProperties":[],"platforms":[{"name":"GDevelop JS platform"}],"currentPlatform":"GDevelop JS platform"},"resources":{"resources":[{"alwaysLoaded":false,"file":"assets/Jn-meuble2.png","kind":"image","metadata":"","name":"assets\\Jn-meuble2.png","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/UI.png","kind":"image","metadata":"","name":"assets\\UI.png","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/Jn-meuble1.png","kind":"image","metadata":"","name":"assets\\Jn-meuble1.png","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite2.png","kind":"image","metadata":"{\"extension\":\".png\",\"localFilePath\":\"assets/NewSprite2.png\"}","name":"Canapé","smoothed":false,"userAdded":false},{"alwaysLoaded":false,"file":"assets/NewSprite3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Table","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Bureau","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite5.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Chaise","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite6.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Plantes","smoothed":false,"userAdded":false},{"alwaysLoaded":false,"file":"assets/NewSprite7.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Piano","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite8.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Livres","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite10.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Télé","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite11.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"Tapis","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/New image.png","kind":"image","metadata":"{\"extension\":\".png\",\"pskl\":{}}","name":"New image","smoothed":false,"userAdded":true},{"alwaysLoaded":false,"file":"assets/NewSprite12.png","kind":"image","metadata":"{\"extension\":\".png\",\"localFilePath\":\"assets/NewSprite12.png\"}","name":"NewSprite","smoothed":false,"userAdded":false},{"alwaysLoaded":false,"file":"assets/Blue Button_Hovered.png","kind":"image","metadata":"","name":"Blue Button_Hovered.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/1ffd07cb739df2a909155dd3057f6def46b833ced6ef1a09527b6ea59e88e464_Blue Button_Hovered.png","name":"Blue Button_Hovered.png"}},{"alwaysLoaded":false,"file":"assets/Blue Button_Idle.png","kind":"image","metadata":"","name":"Blue Button_Idle.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/eeac55458b66fb84f756b38085fbf7d1e079c39363c942abd35ea9d0939465ce_Blue Button_Idle.png","name":"Blue Button_Idle.png"}},{"alwaysLoaded":false,"file":"assets/Blue Button_Pressed.png","kind":"image","metadata":"","name":"Blue Button_Pressed.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/f0ede8843d544f6e84bc09299a8aabffbce558966f25af98f7b47ab1648217ce_Blue Button_Pressed.png","name":"Blue Button_Pressed.png"}},{"alwaysLoaded":false,"file":"assets/NewSprite13.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"NewSprite2","smoothed":false,"userAdded":false}],"resourceFolders":[]},"objects":[{"adaptCollisionMaskAutomatically":false,"assetStoreId":"","name":"Meuble1","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true}],"animations":[{"name":"NewSprite","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"assets\\Jn-meuble1.png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":10.0,"y":0.0},{"x":10.0,"y":5.0},{"x":5.0,"y":5.0},{"x":5.0,"y":10.0},{"x":10.0,"y":10.0},{"x":10.0,"y":15.0},{"x":0.0,"y":15.0}]]}]}]}]},{"assetStoreId":"","name":"Drawer","type":"PrimitiveDrawing::Drawer","variables":[],"effects":[],"behaviors":[],"fillOpacity":255.0,"outlineSize":1,"outlineOpacity":255.0,"fillColor":{"b":255,"g":255,"r":255},"outlineColor":{"b":42,"g":87,"r":139},"absoluteCoordinates":false,"clearBetweenFrames":true,"antialiasing":"none"},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Canapé","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":2.0,"ID":1.0}],"animations":[{"name":"NewSprite","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Canapé","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":false,"name":"centre","x":5.0,"y":5.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":10.0,"y":0.0},{"x":10.0,"y":15.0},{"x":0.0,"y":15.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Table","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":2.0,"ID":1.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Table","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":5.0,"y":0.0},{"x":5.0,"y":5.0},{"x":0.0,"y":5.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Bureau","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":3.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Bureau","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":10.0,"y":0.0},{"x":10.0,"y":10.0},{"x":0.0,"y":10.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Chaise","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":4.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Chaise","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":5.0,"y":0.0},{"x":5.0,"y":5.0},{"x":0.0,"y":5.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":false,"assetStoreId":"","name":"Plante","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"checkCollisionMask":true,"name":"Déplaçable","type":"DraggableBehavior::Draggable"},{"name":"Meuble","type":"Meuble::Meuble","Property":5.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Plantes","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":false,"name":"centre","x":5.0,"y":5.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":15.0,"y":0.0},{"x":15.0,"y":10.0},{"x":0.0,"y":10.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Piano","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":6.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Piano","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":false,"name":"centre","x":5.0,"y":5.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":5.0,"y":0.0},{"x":5.0,"y":10.0},{"x":0.0,"y":10.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Livre","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":7.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Livres","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":false,"name":"centre","x":-0.0,"y":5.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":5.0,"y":0.0},{"x":5.0,"y":10.0},{"x":0.0,"y":10.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Télé","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":8.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Télé","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":false,"name":"centre","x":-0.0,"y":5.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":5.0,"y":0.0},{"x":5.0,"y":15.0},{"x":0.0,"y":15.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":false,"assetStoreId":"","name":"Tapis","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[{"effectType":"Outline","name":"Contour","doubleParameters":{"padding":0.0,"thickness":5.0},"stringParameters":{"color":"0;117;255"},"booleanParameters":{}}],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true},{"name":"Meuble","type":"Meuble::Meuble","Property":9.0}],"animations":[{"name":"NewSprite2","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"Tapis","points":[],"originPoint":{"name":"origine","x":-0.0,"y":0.0},"centerPoint":{"automatic":false,"name":"centre","x":15.0,"y":5.0},"customCollisionMask":[[{"x":0.0,"y":10.0},{"x":15.0,"y":10.0},{"x":15.0,"y":5.0},{"x":0.0,"y":5.0},{"x":0.0,"y":0.0},{"x":20.0,"y":0.0},{"x":20.0,"y":15.0},{"x":0.0,"y":15.0}]]}]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Meuble1"},{"objectName":"Drawer"},{"objectName":"Canapé"},{"objectName":"Table"},{"objectName":"Bureau"},{"objectName":"Chaise"},{"objectName":"Plante"},{"objectName":"Piano"},{"objectName":"Livre"},{"objectName":"Télé"},{"objectName":"Tapis"}]},"objectsGroups":[{"name":"Meuble","objects":[{"name":"Canapé"},{"name":"Table"},{"name":"Chaise"},{"name":"Bureau"},{"name":"Piano"},{"name":"Plante"},{"name":"Livre"},{"name":"Télé"},{"name":"Tapis"}]}],"variables":[],"layouts":[{"b":209,"disableInputWhenNotFocused":true,"mangledName":"Jn","name":"Jn","r":209,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":209,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":90.0,"gridHeight":90.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.4027225833325915,"windowMask":true},"objectsGroups":[],"variables":[],"instances":[{"angle":0.0,"customSize":true,"depth":18.0,"height":270.0,"layer":"","name":"Meuble1","persistentUuid":"d7ea9d33-1fdb-4c71-89d3-abd9922cf3c6","width":180.0,"x":270.0,"y":450.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":7.0,"height":450.0,"layer":"","name":"Meuble_2","persistentUuid":"fe1275dc-a89d-46d9-8d83-f5d18fffbbf1","width":450.0,"x":990.0,"y":270.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Meuble_2","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Déplaçable","type":"DraggableBehavior::Draggable","checkCollisionMask":true}],"animations":[{"name":"Carré","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"assets\\Jn-meuble2.png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":20.0,"y":13.0},{"x":49.0,"y":13.0},{"x":49.0,"y":42.0},{"x":20.0,"y":42.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Bord_apparts","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[],"animations":[{"name":"","useMultipleDirections":false,"directions":[{"looping":false,"timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"assets\\UI.png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":50.0,"y":0.0},{"x":50.0,"y":50.0},{"x":0.0,"y":50.0}]]}]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Meuble_2"},{"objectName":"Bord_apparts"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Déchets","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"Inventory::Has"},"parameters":["","\"truc\"","\"bidule\""]}],"actions":[{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","1"]},{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Meuble1","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DepartScene"},"parameters":[""]}],"actions":[{"type":{"value":"ModVarScene"},"parameters":["cellSize","=","90"]},{"type":{"value":"BuiltinExternalLayouts::CreateObjectsFromExternalLayout"},"parameters":["","\"UI_JN\"","","",""]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","0"]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Draw","source":"","type":"BuiltinCommonInstructions::Group","events":[],"parameters":[]},{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Sources :\nhttps://editor.gdevelop.io/?project=example://snap-object-to-grid"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dragged"},"parameters":["Meuble","Déplaçable"]}],"actions":[{"type":{"value":"SnapToGrid::SnapObjectToVirtualGrid"},"parameters":["","Meuble","Variable(cellSize)","Variable(cellSize)","0","0",""]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Meuble1","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","1"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Meuble1","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","1"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Meuble1","Effect","\"Contour\"","no"]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Light","doubleParameters":{"elevation":45.0,"intensity":1.0,"rotation":0.0},"stringParameters":{"groundColor":"64;64;64","skyColor":"255;255;255","top":"Y-"},"booleanParameters":{}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Meuble","type":"Meuble::Meuble"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}]},{"b":209,"disableInputWhenNotFocused":true,"mangledName":"JJ","name":"JJ","r":209,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":209,"uiSettings":{"grid":false,"gridType":"rectangular","gridWidth":32.0,"gridHeight":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":false,"zoomFactor":0.3645833333333333,"windowMask":false},"objectsGroups":[],"variables":[],"instances":[{"angle":0.0,"customSize":true,"depth":1.0,"height":403.0,"layer":"","name":"NewBBText","persistentUuid":"c144d9f6-389f-48ef-a4a5-5d0a6a3af6c4","width":989.0,"x":465.0,"y":352.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"layer":"","name":"Jouer","persistentUuid":"4582f085-29b8-4df3-b1c7-baaae3a873de","width":0.0,"x":833.0,"y":832.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"NewText","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0}},{"assetStoreId":"","name":"NewBitmapText","type":"BitmapText::BitmapTextObject","variables":[],"effects":[],"behaviors":[],"content":{"text":"Tu viens d’emmenager dans une nouvelle ville! \nPour feter ca, grosse cremaillere ce soir! \nTu te dis qu’une cremaillere, c’est mieux avec des meubles qui sont deja en place et tu as tout a fait raison! \nTu t’es peut-être laisse emporter par l’enthousiasme du changement... il te reste 1 heure et cet appartement est plus petit que l’ancien... \nVa falloir bien reflechir aux emplacements et agir vite!","opacity":255.0,"scale":1.0,"fontSize":20.0,"tint":"65;117;5","bitmapFontResourceName":"","textureAtlasResourceName":"","align":"left","wordWrap":true}},{"assetStoreId":"","name":"NewBBText","type":"BBText::BBText","variables":[],"effects":[],"behaviors":[],"content":{"text":"Tu viens d’emménager dans une nouvelle ville! \nPour fêter ça, grosse crémaillère ce soir! \nTu te dis qu’une crémaillère, c’est mieux avec des meubles qui sont déjà en place et tu as tout à fait raison! \nTu t’es peut-être laissé emporter par l’enthousiasme du changement... il te reste 1 heure et cet appartement est plus petit que l’ancien... Va falloir bien réfléchir aux emplacements et agir vite!","opacity":255.0,"fontSize":40.0,"visible":true,"color":"0;0;0","fontFamily":"Arial","align":"left","wordWrap":true}},{"assetStoreId":"90d94b6e3a23c34948e59eaaef4679740f8ab588696d59b21e0c0c2ef106b94d","name":"Jouer","type":"PanelSpriteButton::PanelSpriteButton","variables":[],"effects":[],"behaviors":[],"content":{"LeftPadding":16.0,"RightPadding":16.0,"PressedLabelOffsetY":10.0,"BottomPadding":32.0,"TopPadding":16.0,"HoveredFadeOutDuration":0.25},"childrenContent":{"Hovered":{"bottomMargin":32.0,"height":106.0,"leftMargin":16.0,"rightMargin":16.0,"texture":"Blue Button_Hovered.png","tiled":true,"topMargin":16.0,"width":256.0},"Idle":{"bottomMargin":32.0,"height":106.0,"leftMargin":16.0,"rightMargin":16.0,"texture":"Blue Button_Idle.png","tiled":true,"topMargin":16.0,"width":256.0},"Label":{"bold":false,"italic":false,"smoothed":true,"underlined":false,"string":"Jouer","font":"","textAlignment":"center","characterSize":60.0,"color":{"b":99,"g":69,"r":28}},"Pressed":{"bottomMargin":16.0,"height":106.0,"leftMargin":16.0,"rightMargin":16.0,"texture":"Blue Button_Pressed.png","tiled":true,"topMargin":32.0,"width":256.0}}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"NewText"},{"objectName":"NewBitmapText"},{"objectName":"NewBBText"},{"objectName":"Jouer"}]},"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["Jouer",""]}],"actions":[{"type":{"value":"Scene"},"parameters":["","\"Principal\"",""]}]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Light","doubleParameters":{"elevation":45.0,"intensity":1.0,"rotation":0.0},"stringParameters":{"groundColor":"64;64;64","skyColor":"255;255;255","top":"Y-"},"booleanParameters":{}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"}]},{"b":209,"disableInputWhenNotFocused":true,"mangledName":"Principal","name":"Principal","r":209,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":209,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":90.0,"gridHeight":90.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.7077142870146669,"windowMask":false},"objectsGroups":[],"variables":[{"folded":true,"name":"selectedMobilo","type":"string","value":""}],"instances":[{"angle":180.0,"customSize":true,"depth":10.0,"height":180.0,"layer":"","name":"Bureau","persistentUuid":"4b09d717-22ee-4e78-a5ec-461c5b61c947","width":180.0,"x":720.0,"y":270.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":30.0,"height":90.0,"layer":"","name":"Chaise","persistentUuid":"0aeaf11f-2b79-498e-a107-8db6d93b1be4","width":90.0,"x":720.0,"y":360.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":270.0,"customSize":true,"depth":13.0,"height":180.0,"layer":"","name":"Plante","persistentUuid":"e6d24fc3-3c6f-49f4-bbc2-3c5891801ac3","width":270.0,"x":180.0,"y":360.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":90.0,"customSize":true,"depth":30.0,"height":180.0,"layer":"","name":"Piano","persistentUuid":"cd567a68-19b3-4b4e-8ccb-801483be93d3","width":90.0,"x":180.0,"y":720.0,"zOrder":4,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":35.0,"height":180.0,"layer":"","name":"Livre","persistentUuid":"2e774208-a114-4b17-8628-ae9d19abf169","width":90.0,"x":180.0,"y":540.0,"zOrder":5,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":90.0,"customSize":true,"depth":10.0,"height":270.0,"layer":"","name":"Télé","persistentUuid":"cc7bf496-d684-47c8-9b4a-5342a622a923","width":90.0,"x":540.0,"y":180.0,"zOrder":6,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":90.0,"customSize":true,"depth":10.0,"height":270.0,"layer":"","name":"Tapis","persistentUuid":"24530ff1-02d3-492d-9d4e-767736bbd0b4","width":360.0,"x":270.0,"y":630.0,"zOrder":0,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":180.0,"customSize":true,"depth":10.0,"height":270.0,"layer":"","name":"Canapé","persistentUuid":"d27348dd-17bc-4a7c-83d9-364ee73ce9e6","width":180.0,"x":720.0,"y":630.0,"zOrder":8,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":0.0,"height":90.0,"layer":"","name":"Table","persistentUuid":"354d2eb0-9536-4f1a-a577-1a7be8fe41e7","width":90.0,"x":450.0,"y":540.0,"zOrder":9,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"Bord_apparts2","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[],"animations":[{"name":"","useMultipleDirections":false,"directions":[{"looping":false,"timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"assets\\UI.png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":50.0,"y":0.0},{"x":50.0,"y":50.0},{"x":0.0,"y":50.0}]]}]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Bord_apparts2"}]},"events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Sources :\nhttps://editor.gdevelop.io/?project=example://snap-object-to-grid"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DepartScene"},"parameters":[""]}],"actions":[{"type":{"value":"BuiltinExternalLayouts::CreateObjectsFromExternalLayout"},"parameters":["","\"UI_Principal\"","","",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DepartScene"},"parameters":[""]}],"actions":[{"type":{"value":"ModVarScene"},"parameters":["cellSize","=","90"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","0"]},{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dragged"},"parameters":["Meuble","Déplaçable"]},{"type":{"inverted":true,"value":"Inventory::Has"},"parameters":["","\"ANNULER CONDITION\"","\"\""]}],"actions":[{"type":{"value":"SnapToGrid::SnapObjectToVirtualGrid"},"parameters":["","Meuble","Variable(cellSize)","Variable(cellSize)","0","0",""]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object - ESSAI","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"Inventory::Has"},"parameters":["","\"ANNULER\"","\"ANNULER\""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"Meuble::Meuble::Activer_si_cliqué"},"parameters":["Canapé","Meuble","selectedMobilo","\"selectedMobilo\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"DebuggerTools::ConsoleLog"},"parameters":["\"Sélection PR : \" + ToString(Variable(selectedMobilo))","",""]},{"type":{"value":"Wait"},"parameters":["1"]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Canapé","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","1"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Canapé","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Canapé","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Canapé","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","1"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Canapé","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Table","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","2"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","2"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Table","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Table","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Table","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","2"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Table","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Bureau","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","3"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","3"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Bureau","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Bureau","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Bureau","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","3"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Bureau","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Chaise","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","4"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","4"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Chaise","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Chaise","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Chaise","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","4"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Chaise","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Plante","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","5"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","5"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Plante","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Plante","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Plante","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","5"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Plante","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Piano","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","6"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","6"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Piano","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Piano","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Piano","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","6"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Piano","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Livre","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","7"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","7"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Livre","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Livre","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Livre","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","7"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Livre","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Télé","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","8"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","8"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Télé","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Télé","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Télé","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","8"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Télé","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneVariableAsBoolean"},"parameters":["draggingNow",""]},{"type":{"value":"Meuble::est_cliqué"},"parameters":["","Tapis","Déplaçable",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","True"]},{"type":{"value":"ModVarScene"},"parameters":["selectedMobilo","=","9"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarScene"},"parameters":["selectedMobilo","=","9"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Tapis","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Tapis","+","90"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"DraggableBehavior::Dropped"},"parameters":["Tapis","Déplaçable"]}],"actions":[{"type":{"value":"SetSceneVariableAsBoolean"},"parameters":["draggingNow","False"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarScene"},"parameters":["selectedMobilo","=","9"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Tapis","Effect","\"Contour\"","no"]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Light","doubleParameters":{"elevation":45.0,"intensity":1.0,"rotation":0.0},"stringParameters":{"groundColor":"64;64;64","skyColor":"255;255;255","top":"Y-"},"booleanParameters":{}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Meuble","type":"Meuble::Meuble"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}]}],"externalEvents":[],"eventsFunctionsExtensions":[{"author":"","category":"User interface","extensionNamespace":"","fullName":"Panel sprite button","helpPath":"/objects/button","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTI5LDIzSDNjLTEuMSwwLTItMC45LTItMlYxMWMwLTEuMSwwLjktMiwyLTJoMjZjMS4xLDAsMiwwLjksMiwydjEwQzMxLDIyLjEsMzAuMSwyMywyOSwyM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMywxOUwxMywxOWMtMS4xLDAtMi0wLjktMi0ydi0yYzAtMS4xLDAuOS0yLDItMmgwYzEuMSwwLDIsMC45LDIsMnYyQzE1LDE4LjEsMTQuMSwxOSwxMywxOXoiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxOCIgeTE9IjEzIiB4Mj0iMTgiIHkyPSIxOSIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjIxIiB5MT0iMTMiIHgyPSIxOCIgeTI9IjE3Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSIxOSIgeDI9IjE5IiB5Mj0iMTYiLz4NCjwvc3ZnPg0K","name":"PanelSpriteButton","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_button_ok_cta_clock_tap.svg","shortDescription":"A button that can be customized.","version":"1.4.4","description":["The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.","","There are ready-to-use buttons in the asset-store [menu buttons pack](https://editor.gdevelop.io/?initial-dialog=asset-store&asset-pack=menu-buttons-menu-buttons)."],"origin":{"identifier":"PanelSpriteButton","name":"gdevelop-extension-store"},"tags":["button","ui"],"authorIds":["IWykYNRvhCZBN3vEgKEbBPOR3Oc2"],"dependencies":[],"eventsFunctions":[],"eventsBasedBehaviors":[{"description":"The finite state machine used internally by the button object.","fullName":"Button finite state machine","name":"ButtonFSM","objectType":"","private":true,"eventsFunctions":[{"fullName":"","functionType":"Action","name":"doStepPostEvents","sentence":"","events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Finite state machine","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"The \"Validated\" state only last one frame."},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Validated\""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Check position","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Make sure the cursor position is only checked once per frame."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyMouseIsInside"},"parameters":["Object","Behavior","no"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyShouldCheckHovering"},"parameters":["Object","Behavior"]},{"type":{"value":"CollisionPoint"},"parameters":["Object","MouseOnlyCursorX(Object.Layer(), 0)","MouseOnlyCursorY(Object.Layer(), 0)"]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyMouseIsInside"},"parameters":["Object","Behavior","yes"]}]},{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Touches are always pressed, so ShouldCheckHovering doesn't matter."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside"},"parameters":["Object","Behavior","no"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyTouchId"},"parameters":["Object","Behavior","!=","0"]},{"type":{"value":"CollisionPoint"},"parameters":["Object","TouchX(Object.Behavior::PropertyTouchId(), Object.Layer(), 0)","TouchY(Object.Behavior::PropertyTouchId(), Object.Layer(), 0)"]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside"},"parameters":["Object","Behavior","yes"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Handle touch start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"HasAnyTouchOrMouseStarted"},"parameters":[""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyIndex"},"parameters":["Object","Behavior","=","0"]}],"events":[{"type":"BuiltinCommonInstructions::Repeat","repeatExpression":"StartedTouchOrMouseCount()","conditions":[],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"CollisionPoint"},"parameters":["Object","TouchX(StartedTouchOrMouseId(Object.Behavior::PropertyIndex()), Object.Layer(), 0)","TouchY(StartedTouchOrMouseId(Object.Behavior::PropertyIndex()), Object.Layer(), 0)"]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyTouchId"},"parameters":["Object","Behavior","=","StartedTouchOrMouseId(Object.Behavior::PropertyIndex())"]},{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside"},"parameters":["Object","Behavior","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Hovered\""]},{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"PressedInside\""]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyIndex"},"parameters":["Object","Behavior","+","1"]}]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Apply position changes","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"PanelSpriteButton::ButtonFSM::PropertyMouseIsInside"},"parameters":["Object","Behavior"]},{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Hovered\""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyMouseIsInside"},"parameters":["Object","Behavior"]},{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"Hovered\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"PanelSpriteButton::ButtonFSM::PropertyTouchIsInside"},"parameters":["Object","Behavior"]},{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"PressedInside\""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"PressedOutside\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyTouchIsInside"},"parameters":["Object","Behavior"]},{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"PressedInside\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Handle touch end","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"HasTouchEnded"},"parameters":["","Object.Behavior::PropertyTouchId()"]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyTouchId"},"parameters":["Object","Behavior","=","0"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"PressedInside\""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"Validated\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"PressedInside\""]},{"type":{"inverted":true,"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Validated\""]}],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}]}]}],"parameters":[]}],"parameters":[]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"onDeActivate","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::ResetState"},"parameters":["Object","Behavior",""]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Reset the state of the button.","fullName":"Reset state","functionType":"Action","name":"ResetState","private":true,"sentence":"Reset the button state of _PARAM0_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]},{"type":{"value":"PanelSpriteButton::ButtonFSM::SetPropertyTouchId"},"parameters":["Object","Behavior","=","0"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is not used.","fullName":"Is idle","functionType":"Condition","name":"IsIdle","sentence":"_PARAM0_ is idle","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button was just clicked.","fullName":"Is clicked","functionType":"Condition","name":"IsClicked","sentence":"_PARAM0_ is clicked","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Validated\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the cursor is hovered over the button.","fullName":"Is hovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ is hovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is either hovered or pressed but not hovered.","fullName":"Is focused","functionType":"Condition","name":"IsFocused","sentence":"_PARAM0_ is focused","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed with mouse or touch.","fullName":"Is pressed","functionType":"Condition","name":"IsPressed","sentence":"_PARAM0_ is pressed","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"PressedInside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed outside with mouse or touch.","fullName":"Is held outside","functionType":"Condition","name":"IsPressedOutside","sentence":"_PARAM0_ is held outside","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"the touch id that is using the button or 0 if none.","fullName":"Touch id","functionType":"ExpressionAndCondition","name":"TouchId","sentence":"the touch id","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["Object.Behavior::PropertyTouchId()"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]}],"propertyDescriptors":[{"value":"true","type":"Boolean","label":"","description":"Should check hovering","group":"","extraInformation":[],"hidden":true,"name":"ShouldCheckHovering"},{"value":"Idle","type":"Choice","label":"State","description":"","group":"","extraInformation":["Idle","Hovered","PressedInside","PressedOutside","Validated"],"hidden":true,"name":"State"},{"value":"0","type":"Number","label":"Touch id","description":"","group":"","extraInformation":[],"hidden":true,"name":"TouchId"},{"value":"","type":"Boolean","label":"Touch is inside","description":"","group":"","extraInformation":[],"hidden":true,"name":"TouchIsInside"},{"value":"","type":"Boolean","label":"Mouse is inside","description":"","group":"","extraInformation":[],"hidden":true,"name":"MouseIsInside"},{"value":"","type":"Number","label":"","description":"","group":"","extraInformation":[],"hidden":true,"name":"Index"}],"sharedPropertyDescriptors":[]}],"eventsBasedObjects":[{"defaultName":"Button","description":"A button that can be customized.","fullName":"Button (panel sprite)","name":"PanelSpriteButton","eventsFunctions":[{"fullName":"","functionType":"Action","name":"onCreated","sentence":"","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Create one background instance for of each state.\nOnly the instance for the current state is shown."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"Create"},"parameters":["","Idle","0","0",""]},{"type":{"value":"Create"},"parameters":["","Hovered","0","0",""]},{"type":{"value":"Create"},"parameters":["","Pressed","0","0",""]},{"type":{"value":"Cache"},"parameters":["Hovered"]},{"type":{"value":"Cache"},"parameters":["Pressed"]},{"type":{"value":"ChangePlan"},"parameters":["Hovered","=","1"]}]},{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Place the label over the backgrounds."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"Create"},"parameters":["","Label","0","0",""]},{"type":{"value":"ChangePlan"},"parameters":["Label","=","2"]},{"type":{"value":"TextObject::SetWrapping"},"parameters":["Label","yes"]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::CenterLabel"},"parameters":["Object",""]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]}]},{"fullName":"","functionType":"Action","name":"onHotReloading","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::CenterLabel"},"parameters":["Object",""]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"doStepPostEvents","sentence":"","events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Apply states","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Show the right background accordingly to the new state."},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsIdle"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetCenterY"},"parameters":["Label","=","Object.CenterWithPaddingY()"]},{"type":{"value":"Montre"},"parameters":["Idle",""]},{"type":{"value":"Cache"},"parameters":["Pressed"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"Visible"},"parameters":["Hovered"]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::PropertyHoveredFadeOutDuration"},"parameters":["Object",">","0"]}],"actions":[{"type":{"value":"Tween::AddObjectOpacityTween"},"parameters":["Hovered","Tween","\"Fadeout\"","0","\"linear\"","Object.PropertyHoveredFadeOutDuration() * 1000",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::PropertyHoveredFadeOutDuration"},"parameters":["Object","=","0"]}],"actions":[{"type":{"value":"Cache"},"parameters":["Hovered"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteObject::Opacity"},"parameters":["Hovered","=","0"]}],"actions":[{"type":{"value":"Cache"},"parameters":["Hovered"]},{"type":{"value":"PanelSpriteObject::SetOpacity"},"parameters":["Hovered","=","255"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsHovered"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetCenterY"},"parameters":["Label","=","Object.CenterWithPaddingY()"]},{"type":{"value":"Cache"},"parameters":["Idle"]},{"type":{"value":"Montre"},"parameters":["Hovered",""]},{"type":{"value":"Cache"},"parameters":["Pressed"]},{"type":{"value":"Tween::RemoveTween"},"parameters":["Hovered","Tween","\"Fadeout\""]},{"type":{"value":"PanelSpriteObject::SetOpacity"},"parameters":["Hovered","=","255"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsPressed"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetCenterY"},"parameters":["Label","=","Object.CenterWithPaddingY() + Object.PropertyPressedLabelOffsetY()"]},{"type":{"value":"Cache"},"parameters":["Idle"]},{"type":{"value":"Cache"},"parameters":["Hovered"]},{"type":{"value":"Montre"},"parameters":["Pressed",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsFocused"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetCenterY"},"parameters":["Label","=","Object.CenterWithPaddingY()"]},{"type":{"value":"Cache"},"parameters":["Idle"]},{"type":{"value":"Montre"},"parameters":["Hovered",""]},{"type":{"value":"Cache"},"parameters":["Pressed"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Resize","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Children instances must be resized when the button size change:\n- backgrounds for each state are resized to take the full dimensions of the button\n- the label is put back at the center of the button\n\nThe scale is set back to 1 because it means that the parent instance has the same dimensions as the union of its children instances."},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"BuiltinCommonInstructions::CompareNumbers"},"parameters":["Object.Width()","!=","max(Idle.BoundingBoxRight(), Label.BoundingBoxRight()) - min(Idle.BoundingBoxLeft(), Label.BoundingBoxLeft())"]},{"type":{"value":"BuiltinCommonInstructions::CompareNumbers"},"parameters":["Object.Height()","!=","max(Idle.BoundingBoxBottom(), Label.BoundingBoxBottom()) - min(Idle.BoundingBoxTop(), Label.BoundingBoxTop())"]}]}],"actions":[{"type":{"value":"ModVarObjet"},"parameters":["Idle","Width","=","Object.Width()"]},{"type":{"value":"ModVarObjet"},"parameters":["Idle","Height","=","Object.Height()"]},{"type":{"value":"PanelSpriteButton::Scale"},"parameters":["Object","=","1"]},{"type":{"value":"PanelSpriteObject::Width"},"parameters":["Background","=","Idle.Variable(Width)"]},{"type":{"value":"PanelSpriteObject::Height"},"parameters":["Background","=","Idle.Variable(Height)"]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::CenterLabel"},"parameters":["Object",""]}]}],"parameters":[]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]}]},{"description":"Check if the button is not used.","fullName":"Is idle","functionType":"Condition","name":"IsIdle","sentence":"_PARAM0_ is idle","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsIdle"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button was just clicked.","fullName":"Is clicked","functionType":"Condition","name":"IsClicked","sentence":"_PARAM0_ is clicked","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsClicked"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the cursor is hovered over the button.","fullName":"Is hovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ is hovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsHovered"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is either hovered or pressed but not hovered.","fullName":"Is focused","functionType":"Condition","name":"IsFocused","sentence":"_PARAM0_ is focused","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsFocused"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed with mouse or touch.","fullName":"Is pressed","functionType":"Condition","name":"IsPressed","sentence":"_PARAM0_ is pressed","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsPressed"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Change the text of the button label.","fullName":"Label text","functionType":"Action","name":"SetLabelText","sentence":"Change the text of _PARAM0_ to _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextObject::String"},"parameters":["Label","=","GetArgumentAsString(\"LabelText\")"]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::CenterLabel"},"parameters":["Object",""]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"},{"description":"Text","name":"LabelText","type":"string"}],"objectGroups":[]},{"description":"Return the label text.","fullName":"Label text","functionType":"StringExpression","name":"LabelText","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnString"},"parameters":["Label.String()"]}]}],"expressionType":{"type":"string"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Return the label center Y according to the button configuration. This expression is used in doStepPostEvents when the button is pressed or released.","fullName":"","functionType":"Expression","name":"CenterWithPaddingY","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["Idle.CenterY() + (Object.PropertyTopPadding() - Object.PropertyBottomPadding()) / 2"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Center the label according to the button configuration. This is used in doStepPostEvents when the button is resized.","fullName":"","functionType":"Action","name":"CenterLabel","private":true,"sentence":"Center the label of _PARAM0_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"MettreXY"},"parameters":["Label","=","Object.PropertyLeftPadding()","=","Object.PropertyTopPadding()"]},{"type":{"value":"TextObject::WrappingWidth"},"parameters":["Label","=","Idle.Width() - Object.PropertyLeftPadding() - Object.PropertyRightPadding()"]},{"type":{"value":"SetCenterY"},"parameters":["Label","=","Object.CenterWithPaddingY()"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetCenterX"},"parameters":["Label","=","Background.CenterX() + (Object.PropertyLeftPadding() - Object.PropertyRightPadding()) / 2"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsPressed"},"parameters":["Object",""]}],"actions":[{"type":{"value":"MettreY"},"parameters":["Label","+","Object.PropertyPressedLabelOffsetY()"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]}]},{"description":"De/activate interactions with the button.","fullName":"De/activate interactions","functionType":"Action","name":"Activate","sentence":"Activate interactions with _PARAM0_: _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"GetArgumentAsBoolean"},"parameters":["\"ShouldActivate\""]}],"actions":[{"type":{"value":"ActivateBehavior"},"parameters":["Idle","ButtonFSM","yes"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"GetArgumentAsBoolean"},"parameters":["\"ShouldActivate\""]}],"actions":[{"type":{"value":"ActivateBehavior"},"parameters":["Idle","ButtonFSM","no"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"},{"description":"Activate","name":"ShouldActivate","type":"yesorno"}],"objectGroups":[]},{"description":"Check if interactions are activated on the button.","fullName":"Interactions activated","functionType":"Condition","name":"IsActivated","sentence":"Interactions on _PARAM0_ are activated","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BehaviorActivated"},"parameters":["Idle","ButtonFSM"]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]}],"propertyDescriptors":[{"value":"0","type":"Number","label":"Label offset on Y axis when pressed","description":"","group":"","extraInformation":[],"hidden":false,"name":"PressedLabelOffsetY"},{"value":"0","type":"Number","label":"Left padding","description":"","group":"Padding","extraInformation":["Label"],"hidden":false,"name":"LeftPadding"},{"value":"0","type":"Number","label":"Right padding","description":"","group":"Padding","extraInformation":["Label"],"hidden":false,"name":"RightPadding"},{"value":"0","type":"Number","label":"Top padding","description":"","group":"Padding","extraInformation":["Label"],"hidden":false,"name":"TopPadding"},{"value":"0","type":"Number","label":"Bottom padding","description":"","group":"Padding","extraInformation":["Label"],"hidden":false,"name":"BottomPadding"},{"value":"0.25","type":"Number","label":"Hovered fade out duration (in seconds)","description":"","group":"","extraInformation":[],"hidden":false,"name":"HoveredFadeOutDuration"}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"Label","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"","characterSize":20.0,"color":{"b":0,"g":0,"r":0}},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Idle","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[{"folded":true,"name":"State","type":"string","value":"Idle"}],"effects":[],"behaviors":[{"name":"ButtonFSM","type":"PanelSpriteButton::ButtonFSM","ShouldCheckHovering":true}]},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Hovered","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Tween","type":"Tween::TweenBehavior"}]},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Pressed","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Label"},{"objectName":"Idle"},{"objectName":"Hovered"},{"objectName":"Pressed"}]}}]},{"author":"@Lizard-13","category":"Game mechanic","extensionNamespace":"","fullName":"Rectangular grid","helpPath":"","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXZpZXctZ3JpZC1wbHVzLW91dGxpbmUiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMyAyMUgxMVYxM0gzTTUgMTVIOVYxOUg1TTMgMTFIMTFWM0gzTTUgNUg5VjlINU0xMyAzVjExSDIxVjNNMTkgOUgxNVY1SDE5TTE4IDE2SDIxVjE4SDE4VjIxSDE2VjE4SDEzVjE2SDE2VjEzSDE4WiIgLz48L3N2Zz4=","name":"SnapToGrid","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/view-grid-plus-outline.svg","shortDescription":"Snap objects on a virtual grid.","version":"0.0.3","description":["It allows to snap objects on a *virtual grid*.","","It's useful for:","- level editors","- building systems","","A [simple example](https://editor.gdevelop.io/?project=example://snap-object-to-grid) shows how to snap objects that are dragged with the mouse."],"origin":{"identifier":"SnapToGrid","name":"gdevelop-extension-store"},"tags":["snap","grid","positioning","tiles"],"authorIds":[],"dependencies":[],"eventsFunctions":[{"description":"Snap object to a virtual grid (i.e: this is not the grid used in the editor).","fullName":"Snap objects to a virtual grid","functionType":"Action","name":"SnapObjectToVirtualGrid","sentence":"Snap _PARAM1_ to a virtual grid using cells with width: _PARAM2_px, height _PARAM3_px and an offset position (_PARAM4_; _PARAM5_)","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Round the Object position to snap to the in-game grid"},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"MettreXY"},"parameters":["Object","=","GetArgumentAsNumber(\"CellWidth\") * round((Object.X() - GetArgumentAsNumber(\"OffsetX\")) / GetArgumentAsNumber(\"CellWidth\")) + GetArgumentAsNumber(\"OffsetX\")","=","GetArgumentAsNumber(\"CellHeight\") * round((Object.Y() - GetArgumentAsNumber(\"OffsetY\")) / GetArgumentAsNumber(\"CellHeight\")) + GetArgumentAsNumber(\"OffsetY\")"]}]}],"parameters":[{"description":"Objects to snap to the virtual grid","name":"Object","type":"objectList"},{"description":"Width of a cell of the virtual grid (in pixels)","name":"CellWidth","type":"expression"},{"description":"Height of a cell of the virtual grid (in pixels)","name":"CellHeight","type":"expression"},{"description":"Offset on the X axis of the virtual grid (in pixels)","name":"OffsetX","type":"expression"},{"description":"Offset on the Y axis of the virtual grid (in pixels)","name":"OffsetY","type":"expression"}],"objectGroups":[]}],"eventsBasedBehaviors":[],"eventsBasedObjects":[]},{"author":"","category":"","extensionNamespace":"","fullName":"","helpPath":"","iconUrl":"","name":"Meuble","previewIconUrl":"","shortDescription":"","version":"","description":"","tags":[],"authorIds":[],"dependencies":[],"eventsFunctions":[{"fullName":"","functionType":"Condition","name":"est_cliqué","sentence":"le _PARAM1_ est cliqué","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SourisSurObjet"},"parameters":["Meuble","","",""]},{"type":{"value":"MouseButtonPressed"},"parameters":["","Left"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[]}],"parameters":[{"description":"meuble","name":"Meuble","supplementaryInformation":"Sprite","type":"objectList"},{"description":"comportement","name":"Comportement","supplementaryInformation":"DraggableBehavior::Draggable","type":"behavior"}],"objectGroups":[]},{"fullName":"","functionType":"Condition","name":"est_selectionné","sentence":"l'objet selectionné est _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"meuble","name":"Meuble","supplementaryInformation":"Sprite","type":"objectList"},{"description":"comportement","name":"Comportement","supplementaryInformation":"DraggableBehavior::Draggable","type":"behavior"}],"objectGroups":[]}],"eventsBasedBehaviors":[{"description":"","fullName":"","name":"Meuble","objectType":"Sprite","eventsFunctions":[{"fullName":"","functionType":"Action","name":"Activer_si_cliqué","sentence":"objet _PARAM0_ (nom meuble sélectionné : )","events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Select object","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SourisSurObjet"},"parameters":["Object","","",""]},{"type":{"value":"MouseButtonPressed"},"parameters":["","Left"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"ModVarScene"},"parameters":["selection_variable_name","=","Object.Behavior::PropertyID()"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarObjet"},"parameters":["Object","ID","=","Variable(selection_variable_name)"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Object","Effect","\"Contour\"","yes"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"KeyPressed"},"parameters":["","r"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SetAngle"},"parameters":["Object","+","90"]},{"type":{"value":"DebuggerTools::ConsoleLog"},"parameters":["\"Propriété : \"+ToString(Object.Behavior::PropertyID())","",""]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"VarObjet"},"parameters":["Object","ID","=","Variable(selection_variable_name)"]}],"actions":[{"type":{"value":"EffectCapability::EffectBehavior::EnableEffect"},"parameters":["Object","Effect","\"Contour\"","no"]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"DebuggerTools::ConsoleLog"},"parameters":["ToString(Variable(test))","",""]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"Sprite","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"Meuble::Meuble","type":"behavior"},{"description":"","name":"test","type":"scenevar"}],"objectGroups":[]}],"propertyDescriptors":[{"value":"","type":"Number","label":"","description":"","group":"","extraInformation":[],"hidden":false,"name":"ID"}],"sharedPropertyDescriptors":[]}],"eventsBasedObjects":[]}],"externalLayouts":[{"associatedLayout":"Jn","name":"UI_JN","instances":[{"angle":0.0,"customSize":true,"depth":1.0,"height":540.0,"layer":"","name":"Bord_apparts","persistentUuid":"3c95ad52-9bda-4aaf-847f-b17b116ac79d","width":720.0,"x":180.0,"y":270.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":1.0,"height":450.0,"layer":"","name":"Bord_apparts","persistentUuid":"6493c43f-de67-4012-b67c-dbfbac569bc7","width":540.0,"x":1170.0,"y":360.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"editionSettings":{"grid":true,"gridType":"rectangular","gridWidth":90.0,"gridHeight":90.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.3645833333333333,"windowMask":false}},{"associatedLayout":"Principal","name":"UI_Principal","instances":[{"angle":0.0,"customSize":true,"depth":4.0,"height":540.0,"layer":"","name":"Bord_apparts2","persistentUuid":"a231b9e0-2e42-43cd-8126-9053e521919b","width":720.0,"x":180.0,"y":270.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":0.0,"height":450.0,"layer":"","name":"Bord_apparts2","persistentUuid":"f810633a-5270-47d8-8c43-b87145656fcb","width":540.0,"x":1170.0,"y":360.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"editionSettings":{"grid":true,"gridType":"rectangular","gridWidth":90.0,"gridHeight":90.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.43034038022076567,"windowMask":false}}],"externalSourceFiles":[]}