IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
AdditionalInfo.cs
1 using UnityEngine;
2 using System.Collections;
3 
4 public class AdditionalInfo {
5 
6  public enum AdditionalInfoType { TEXT, CUSTOM }; //, TEXTWITH2BUTTONS, };
7  private AdditionalInfoType type;
8  private GameObject customUIElement;
9  private string additionalInfoText;
10  //private delegate yes;
11  //private delegate no;
12 
14  public AdditionalInfo(string additionalInfoText)
15  {
16  this.type = AdditionalInfoType.TEXT;
17  this.additionalInfoText = additionalInfoText;
18  this.customUIElement = null;
19  }
20 
21  /*
23  public AdditionalInfo(string additionalInfoText, methode1, methode2
24  {
25  this.type = AdditionalInfoType.CUSTOM;
26  this.additionalInfoText = additionalInfoText;
27  this.customUIElement = null;
28  }*/
29 
31  public AdditionalInfo(GameObject customUIElement)
32  {
33  this.type = AdditionalInfoType.CUSTOM;
34  this.additionalInfoText = null;
35  this.customUIElement = customUIElement;
36  }
37 
38  public AdditionalInfoType Type
39  {
40  get { return type; }
41  }
42 
43  public string AdditionalInfoText
44  {
45  get { return additionalInfoText; }
46  }
47 
48  public GameObject CustomUIElement
49  {
50  get { return customUIElement; }
51  }
52 
53 }
AdditionalInfo(GameObject customUIElement)
Uses the custom ui element given in customUIElement.
AdditionalInfo(string additionalInfoText)
Creates a default ui element above the notification with the text given in additionalInfoText.