コード例 #1
0
ファイル: PMapUI.cs プロジェクト: ClazyChen/Richer-4
 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();
 }
コード例 #2
0
ファイル: PGeneralUI.cs プロジェクト: ClazyChen/Richer-4
 public PGeneralUI(Transform _Background) : base(_Background)
 {
     InitializeControls <Button>();
     InitializeControls <InputField>();
     GeneralPanel = new PGeneralPanel(UIBackgroundImage.Find("GeneralPanel"));
     GeneralPanel.Initialize();
     Close();
 }
コード例 #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();
 }
コード例 #4
0
ファイル: PRoomUI.cs プロジェクト: ClazyChen/Richer-4
 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();
 }
コード例 #5
0
ファイル: PBlockScene.cs プロジェクト: ClazyChen/Richer-4
 public PBlockScene(Transform _Background) : base(_Background)
 {
     InitializeControls <TextMesh>();
     BlockImage = UIBackgroundImage.Find("BlockImage");
     Close();
 }