The manager that holds widgets is the WidgetManager
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
UIManager named the category, not the contents. Every other manager is named after what it registers — ItemManager holds Items, SceneManager holds Scenes — so the one that registers Widgets is the WidgetManager. The alias, the Game field and both manual pages move together. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ func Run(g *Game) error {
|
||||
}
|
||||
// If the domain didn't register any widgets, fall back to the SCUMM
|
||||
// preset so the game is still playable.
|
||||
if g.UIManager.Len() == 0 {
|
||||
if g.WidgetManager.Len() == 0 {
|
||||
RegisterDefaultUI(g)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user