Dialogbox - GeoPlayerRu/PixPhys-Unofficial-Wiki GitHub Wiki

Dialogbox has two public functions and some variables.

Variables

Output

To help you with output, DialogController allows you to get field content.
FieldString is field's string content.
FieldColor is field's color content.
FieldKey is field's single key content.

Misc

StartColor is standard color of Dialog if type is color.
main I think is main dialogbox.
IsAnyOpen

Enum

DialogController has enum named DialogType, that contains types of dialog. Here's list of them:

  • Empty
  • Text
  • Number
  • Color
  • Key Trigger

Functions

Next function is main function of using dialogbox.

DialogController.main.Show(string Title, DialogButton[] Buttons, DialogType type,string enteredText = "")

Also, you can hide dialogbox.

DialogController.main.Hide()

Using of DialogController

Using of dialogcontroller is pretty simple, it has this structure:

DialogController.main.Show("Name of dialog",new DialogButton[]{
   new DialogButton("Text" () =>
   {
      // Actions  
   });
   // Other buttons
}, DialogController.DialogType.TypeYouNeed);