Skip to main content

UI

  • Code location: /io/io_ui.js

  • The UI provides interactive functions beyond the 3D environment, such as information, location, etc., and also provides support for extending the functionality of the Septopus Engine.

  • The UI supports rewriting, which means that all components can be replaced, so that the front-end UI can be completely customized.

Methods

  • A unified calling method is used to use UI components, VBW.ui.show(type,ctx,cfg). The list of available components is as follows:
NameFunctionUse Case
toastDisplay of prompt informationOutput system prompt information and other functions
dailogPop-up dialog boxInteraction of large amounts of complex information, such as the display of 2D maps, etc.
compassJust compassDisplays the player's location information
sidebarSidebarIn edit mode, multiple editing options are displayed
formFormMultiple inputs in edit mode
foldCollapse MenuOptimize UI experience and fold function menu
menuButton list menuMain function menu implementation
popPop-up menuList of operation functions of different adjuncts in edit mode
modeMode switch buttonSwitching game modes and viewing game configurations
countdownCountdown componentPlayer death recovery countdown
statusStatus display buttonBlock information display
  • By combining basic UIs, more display structures can be implemented, such as page implementation.