Neo Async Loading ScreenDocsNeo Settings
ReferenceBridge

Bridge

What the plugin and Neo Settings call of each other while the game runs and in the editor: the contract between the two plugins.

On this page
  1. The rules
  2. What Neo Async Loading Screen serves
  3. What Neo Async Loading Screen reads of Neo Settings
  4. The editor

In a game on Direct3D 12, Windows 64-bit, Neo Async Loading Screen's own thread draws the loading screen while the engine loads (While the Engine Loads).

You need none of it to use them together (Using with Neo Settings): this page is for developers who want to know the contract, or who check a version of one plugin against the other. Neo Settings' side of it: its Compatibility page.

The rules

Your game has no reason to call the bridge: use the Neo Async Loading Screen nodes, or Neo Settings' own, which forward to them. Both sides check every function below before their first call, each written as "Name(Param: type, ...) -> type", and call nothing that does not match. This is version 2 of the bridge, the one Neo Settings 1.0.0 reads and serves. Within version 2 nothing is renamed, removed or retyped; a version 3 would be a new class, served beside this one.

What Neo Async Loading Screen serves

/Script/NeoLoadingScreen.NeoLoadingScreenBridge: static functions, not in the Blueprint palette, called on the class default object on the game thread. Neo Settings calls these ten, in this order:

  1. GetBridgeVersion() -> int
  2. ShowLoadingScreen(WorldContextObject: object Object, Reason: text) -> void
  3. HideLoadingScreen(WorldContextObject: object Object) -> void
  4. AddLoadingScreenHold(Holder: object Object, Reason: string) -> void
  5. RemoveLoadingScreenHold(Holder: object Object) -> void
  6. IsLoadingScreenVisible(WorldContextObject: object Object) -> bool
  7. GetLoadingPhase(WorldContextObject: object Object) -> uint8
  8. GetLoadingRevision(WorldContextObject: object Object) -> int
  9. TravelBehindLoadingScreen(WorldContextObject: object Object, Url: string, Kind: uint8) -> bool
  10. NotifyLookChanged() -> void

Served, not called by Neo Settings (the modular feature NeoLoadingScreen.Owner alone decides who draws):

  • GetBridgeCapabilities() -> array name
  • IsLoadingOwner() -> bool

Its capabilities: Owner, ShowHide, Holds, Visibility, Phase, Travel, ImportLook, ImportLayers, ImportFacts, and Setup when Neo Async Loading Screen's editor module is loaded. The phase is a byte whose values never change: 0 Hidden, 1 Opening, 2 Covering, 3 Holding, 4 Closing. The travel's kind: 0 opens a map, 1 is a host's server travel, 2 a networked game's return to the main menu; false means the caller travels itself.

What Neo Async Loading Screen reads of Neo Settings

/Script/NeoSettings.NeoSettingsBridge, version 2 or later, each part on its own (one that does not match is not read, and that part stays Neo Async Loading Screen's own, HLP503):

  • GetBridgeVersion() -> int
  • GetBridgeCapabilities() -> array name
  • GetLookRevision() -> int
  • ExportLoadingLook(ThemeId: string) -> string
  • ExportLoadingLayers() -> string
  • ExportLoadingFacts(Player: object PlayerController) -> string

A part that does not match is said once in the log (HLP503).

The editor

/Script/NeoLoadingScreenEditor.NeoLoadingScreenSetupBridge: EnableLoadingScreens() and OpenLoadingSetup(), no parameter, each returning a bool, true when done, called by Neo Settings' Setup tab. Neo Async Loading Screen's cards, checklist and preview are entries of the shared Setup menus (NeoSetup.Cards.v1, NeoSetup.Checklist.v1, NeoSetup.Preview.v1), hosted by Neo Settings' Setup tab when it announces NeoSetup.Host.v1 (Setup Tab).

Something not as described? Every code the editor or the log shows has its own entry in Troubleshooting.