Skip to content

Popups

Compare
Choose a tag to compare
@chrisdugne chrisdugne released this 17 Dec 10:10
· 92 commits to master since this release

You can create Popups by creating a ReferenceRect extending components/popup:

# shop.gd
extends 'res://fox/components/popup.gd'

func _ready():
  super._ready()

then add a function somewhere to instantiate the popup, for example in your Router

var ShopPopup = preload('res://shop.tscn')

func openShop():
  var shop = ShopPopup.instantiate()
  $/root/app/popups.add_child(shop)