Verse Library verse

01 Snippet

Manages customizable popup windows for notifications, dialogue, or tooltips per player.

extracted-snippets/community/snippets/J5Gp/fortnite-ezui-popup-with-custom-art-fnc-graphics-support-per-player-ui/01-snippet.verse

# Source URL: https://dev.epicgames.com/community/snippets/J5Gp/fortnite-ezui-popup-with-custom-art-fnc-graphics-support-per-player-ui
# Local doc:  epic-docs/community/snippets/J5Gp/fortnite-ezui-popup-with-custom-art-fnc-graphics-support-per-player-ui.md
  <#
  A generic pop-up box which can be used for a variety of purposes
  in games such as notifications, NPC dialogue, tooltips, weclome
  messages, ect..
  #>
  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_PopUpManager := class ()
  {
  <#
  adjusts the general UI position on-screen by pixels based upon a 1080p resolution
  be aware that button's have no DefaultDesiredSize so their margin's will need to
  be manually adjusted as you move the pop-up around
  #>
  var UI_Pos_Horizonal : float = 0.0
  var UI_Pos_Vertical: float = 0.0
  EZ_LinkedCreativeDevice<public> : ez_ui_popup # 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_PopUpBoxMsg<public> : message # the pop up box text

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