Ejemplo n.º 1
0
 public PMapUI(Transform _Background) : base(_Background)
 {
     InitializeControls <Button>();
     InitializeControls <PToolTipedButton>();
     InitializeControls <Image>();
     InitializeControls <Text>();
     InitializeControls <ScrollRect>();
     InformationList        = new List <string>();
     Scene                  = new PMapScene(GameObject.Find("Map").transform);
     MessageBox             = new PMessageBox(UIBackgroundImage.Find("MessageBox"));
     PlayerInformationGroup = new PPlayerInformationBoxGroup(UIBackgroundImage.Find("PlayerInformationBoxes"));
     HandCardArea           = new PCardUIGroup(UIBackgroundImage.Find("HandCardArea"))
     {
         StartIndex = 0
     };
     EquipCardArea = new PCardUIGroup(UIBackgroundImage.Find("EquipCardArea"))
     {
         StartIndex = 1000
     };
     AmbushCardArea = new PCardUIGroup(UIBackgroundImage.Find("AmbushCardArea"))
     {
         StartIndex = 2000
     };
     ToolTip          = new PToolTip(UIBackgroundImage.Find("ToolTipImage"));
     CameraController = new PCameraController();
     DiceSpriteList   = new Sprite[6];
     for (int i = 0; i < 6; ++i)
     {
         DiceSpriteList[i] = Resources.Load <Sprite>("Images/Dice/" + (i + 1).ToString());
     }
     Close();
 }
Ejemplo n.º 2
0
 public PGeneralUI(Transform _Background) : base(_Background)
 {
     InitializeControls <Button>();
     InitializeControls <InputField>();
     GeneralPanel = new PGeneralPanel(UIBackgroundImage.Find("GeneralPanel"));
     GeneralPanel.Initialize();
     Close();
 }
Ejemplo n.º 3
0
 public PMapScene(Transform _Background) : base(_Background)
 {
     Background  = UIBackgroundImage.Find("Background");
     PlayerGroup = new PPlayerGroupScene(UIBackgroundImage.Find("Players"));
     BlockGroup  = new PBlockGroupScene(UIBackgroundImage.Find("Blocks"));
     PortalGroup = new PPortalGroupScene(UIBackgroundImage.Find("Portals"));
     Close();
 }
Ejemplo n.º 4
0
 public PRoomUI(Transform _Background) : base(_Background)
 {
     InitializeControls <Button>();
     InitializeControls <Text>();
     SeatList = new List <PSeat>();
     for (int i = 0; i < MaxCapacity; ++i)
     {
         SeatList.Add(new PSeat(UIBackgroundImage.Find("SeatImage (" + (i + 1).ToString() + ")"), i));
     }
     Close();
 }
Ejemplo n.º 5
0
 public PBlockScene(Transform _Background) : base(_Background)
 {
     InitializeControls <TextMesh>();
     BlockImage = UIBackgroundImage.Find("BlockImage");
     Close();
 }