# Module `ExpGamingCore.Gui.Popup`

Adds a location for popups which can be dismissed by a player and created from other scripts

### Info:

- License: https://github.com/explosivegaming/scenario/blob/master/LICENSE
- Author: Cooldude2606

## Functions

_comment () | This is a submodule of ExpGamingCore.Gui but for ldoc reasons it is under its own module
add (obj) | Used to add a popup gui style
open (style, data[, players=game.connected_players]) | Use to open a popup for these players

## Functions

_comment ()
  This is a submodule of ExpGamingCore.Gui but for ldoc reasons it is under its own module
add (obj)
  Used to add a popup gui style

  ### Parameters:

  - obj this is what will be made, needs a name and a draw function(root_frame,data)

  ### Returns:

  the object that is made to... well idk but for the future

  ### Usage:

      Gui.left.add{name='foo',caption='Foo',draw=function}

open (style, data[, players=game.connected_players])
  Use to open a popup for these players

  ### Parameters:

  - style string this is the name you gave to the popup when added
  - data this is the data that is sent to the draw function
  - players table the players to open the popup for (default game.connected_players)

  ### Usage:

      Gui.popup.open('ban',nil,{player=1,reason='foo'})

generated by LDoc 1.4.6 Last updated 2018-06-07 12:58:23