GithubHelp home page GithubHelp logo

unity_popupui's Introduction

Popup UI for your game

A powerful,Customizable, and esay-to-use Popup UI for Unity

Popup UI



■ Supporting Platforms :

  • All platforms (Standalone Builds, Android, iOS, WebGl, and more..)

■ How to use? :

1- Import EasyUI_Popup package.

⚠️ NOTE! : No need to add any prefab to the scene

3- Add EasyUI.Popup namespace in your script :

using EasyUI.Popup ;

4- Now Simply write Popup.Show(..):

// Only Text :
Popup.Show ("Hello GameDevs") ;

// Title & Text :
Popup.Show ("Message", "Hello GameDevs") ;

■ Change text styling :

Popup.Show ("Custom text color", "Hello, <color=red>This text is red</color>");

Toast ui

for more supported style tags : Text supported styles

■ All options popup :

void Start(){
  Popup.Show ("Popup title", "With Unity we can do anything.", "Click Me", PopupColor.Red, OnClose);
}

void OnClose(){
  Debug.Log("Red Popup closed");
}

Toast ui

or you can use lambda expression => for the event :

void Start(){
  Popup.Show ("Popup title", "Hello world", "Click Me", PopupColor.Red,
    () => {
      Debug.Log("Red Popup closed");
    }
  );
  
  // or remove {} since we have only one line:
  // Popup.Show ("Popup title", "Hello world", "Click Me", PopupColor.Red, () => Debug.Log("Red Popup closed") );
}

■ Dismiss popup :

Popup.Dismiss();

■ All Show(..) versions :

Popup.Show (string text);

Popup.Show (string text, UnityAction onCloseAction);

Popup.Show (string title, string text);

Popup.Show (string title, string text, UnityAction onCloseAction);

Popup.Show (string title, string text, string buttonText);

Popup.Show (string title, string text, string buttonText, UnityAction onCloseAction);

Popup.Show (string title, string text, string buttonText, PopupColor buttonColor);

Popup.Show (string title, string text, string buttonText, PopupColor buttonColor, UnityAction onCloseAction);





❤️ Donate

Paypal

BuyMeACoffee

Patreon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.