Skip to content

Commit

Permalink
Applied same semantic patch to Breakout ImNui.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanedds committed Oct 1, 2024
1 parent 4e3d6ec commit a0c46c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Projects/Breakout ImNui/Gameplay.fs
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,8 @@ type GameplayDispatcher () =
// advance gameplay time
let gameDelta = world.GameDelta
let gameplay = { gameplay with GameplayTime = gameplay.GameplayTime + gameDelta.Updates }
(gameplay, world)
(gameplay, world)

// this is a semantic fix-up that allows the editor to avoid creating an unused group. This is specific to the
// ImNui API that is needed to patch a little semantic hole inherent in the immediate-mode programming idiom.
override this.CreateDefaultGroup (screen, world) = World.createGroup (Some "Gui") screen world

0 comments on commit a0c46c7

Please sign in to comment.