1- // Gaia - The Nu Game Engine editor.
1+ // Gaia - The Nu Game Engine editor.
22// Copyright (C) Bryan Edds.
33
44namespace Nu.Gaia
@@ -1053,7 +1053,7 @@ DockSpace ID=0x7C6B3D9B Window=0xA87D555D Pos=0,0 Size=1280,720 Split=
10531053 World.cutEntityToClipboard entity world
10541054 true
10551055 else
1056- MessageBoxOpt <- Some " Cannot cut a protected simulant (such as an entity created by the ImSim of MMCC API)."
1056+ MessageBoxOpt <- Some " Cannot cut a protected simulant (such as an entity created by the ImSim or MMCC API)."
10571057 false
10581058 | Some _ | None -> false
10591059
@@ -1136,7 +1136,7 @@ DockSpace ID=0x7C6B3D9B Window=0xA87D555D Pos=0,0 Size=1280,720 Split=
11361136 GroupFileDialogState.FileName <- " "
11371137 true
11381138 else
1139- MessageBoxOpt <- Some " Cannot load into a protected simulant (such as a group created by the ImSim of MMCC API)."
1139+ MessageBoxOpt <- Some " Cannot load into a protected simulant (such as a group created by the ImSim or MMCC API)."
11401140 false
11411141 with exn ->
11421142 MessageBoxOpt <- Some ( " Could not load group file due to: " + scstring exn)
@@ -1989,7 +1989,8 @@ DockSpace ID=0x7C6B3D9B Window=0xA87D555D Pos=0,0 Size=1280,720 Split=
19891989 | name -> name)
19901990 for propertyDescriptor in propertyDescriptors do
19911991 if containsProperty propertyDescriptor.PropertyName simulant world then // NOTE: this check is necessary because interaction with a property rollout can cause properties to be removed.
1992- if propertyDescriptor.PropertyName = Constants.Engine.NamePropertyName then // NOTE: name edit properties can't be replaced.
1992+ match propertyDescriptor.PropertyName with
1993+ | Constants.Engine.NamePropertyName -> // NOTE: name edit properties can't be replaced.
19931994 match simulant with
19941995 | :? Screen as screen ->
19951996 let mutable name = screen.Name
@@ -2018,7 +2019,7 @@ DockSpace ID=0x7C6B3D9B Window=0xA87D555D Pos=0,0 Size=1280,720 Split=
20182019 ImGui.Text ( " (" + string ( entity.GetId world) + " )" )
20192020 | _ -> ()
20202021 if ImGui.IsItemFocused () then focusPropertyOpt None world
2021- elif propertyDescriptor.PropertyName = Constants.Engine.ModelPropertyName then
2022+ | Constants.Engine.ModelPropertyName ->
20222023 let getPropertyValue propertyDescriptor simulant world =
20232024 let propertyValue = getPropertyValue propertyDescriptor simulant world
20242025 if propertyDescriptor.PropertyName = Constants.Engine.ModelPropertyName then
@@ -2047,7 +2048,7 @@ DockSpace ID=0x7C6B3D9B Window=0xA87D555D Pos=0,0 Size=1280,720 Split=
20472048 FSharpType.isRecordAbstract propertyDescriptor.PropertyType then
20482049 imGuiEditPropertyRecord getPropertyValue setPropertyValue focusProperty false propertyDescriptor simulant world
20492050 else imGuiEditProperty getPropertyValue setPropertyValue focusProperty propertyDescriptor simulant world
2050- else
2051+ | _ ->
20512052 let focusProperty () = focusPropertyOpt ( Some ( propertyDescriptor, simulant)) world
20522053 let mutable replaced = false
20532054 let replaceProperty =
@@ -2663,7 +2664,7 @@ DockSpace ID=0x7C6B3D9B Window=0xA87D555D Pos=0,0 Size=1280,720 Split=
26632664 selectEntityOpt ( Some sourceEntity') world
26642665 ShowSelectedEntity <- true
26652666 else MessageBoxOpt <- Some " Cannot unparent an entity when there exists another unparented entity with the same name."
2666- else MessageBoxOpt <- Some " Cannot relocate a protected simulant (such as an entity created by the ImSim of MMCC API)."
2667+ else MessageBoxOpt <- Some " Cannot relocate a protected simulant (such as an entity created by the ImSim or MMCC API)."
26672668 | None -> ()
26682669 ImGui.EndDragDropTarget ()
26692670
@@ -4267,4 +4268,4 @@ DockSpace ID=0x7C6B3D9B Window=0xA87D555D Pos=0,0 Size=1280,720 Split=
42674268 runWithCleanUp gaiaState targetDir screen world
42684269
42694270 // handle error
4270- | Left error -> Log.error error; Constants.Engine.ExitCodeFailure
4271+ | Left error -> Log.error error; Constants.Engine.ExitCodeFailure
0 commit comments