Verse Library verse

01 Snippet

Configurable tabbed menu screen for managing game options and triggering devices.

extracted-snippets/community/snippets/90l4/fortnite-ezui-customizable-options-screen/01-snippet.verse

# Source URL: https://dev.epicgames.com/community/snippets/90l4/fortnite-ezui-customizable-options-screen
# Local doc:  epic-docs/community/snippets/90l4/fortnite-ezui-customizable-options-screen.md
  <#
  A basic options screen suitable for triggering devices via a
  tabbed menu and is easily configured within the creative
  device's custom properties
  #>
  using { /Fortnite.com/Devices }
  using { /Verse.org/Simulation }
  using { /UnrealEngine.com/Temporary/Diagnostics }
  #imports
  using { /UnrealEngine.com/Temporary/UI }
  using { /Fortnite.com/UI }
  using { /Verse.org/Colors }
  using { /UnrealEngine.com/Temporary/SpatialMath }
  using { /Verse.org/Assets }
  using {EZUI}
  EZ_OptionsScreen:= class ()
  {
  EZ_LinkedCreativeDevice<public> : ez_ui_optionsscreen # a backreference to the device that created this EZUI class
  EZ_LinkedPlayer<public> : player # the player linked to this instance of the EZUI class
  EZ_UI_ID<public> : int # used to control what UI is initialised by the class
  EZ_OptionsButtonArray<public> : []EZ_OptionsButton # all options buttons that form the tabbed menu
  EZ_OptionsTabs_HorizonalPos <public> : type{_X:float where -900.000000 <= _X, _X <= 900.000000}
  EZ_OptionsTabs_VerticalPos <public> : type{_X:float where -900.000000 <= _X, _X <= 900.000000}
  EZ_OptionsTab_Padding <public> : float
  EZ_OptionsTab_Distribution <public> : float
  EZ_OptionsTab_Colour <public> : color
  EZ_OptionsTab_Opacity <public> : type {_X:float where 0.000000 <= _X, _X <= 1.000000}
  EZ_OptionsTab_OutlineColour <public> : color

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in