Exemple #1
0
 /// <summary>
 /// テキストのみ描画する
 /// </summary>
 public void DrawText()
 {
     if (FontHandle >= 0)
     {
         FontAsset.Draw(FontHandle, Text, TextPosX, TextPosY, TextColor);
     }
 }
Exemple #2
0
 /// <summary>
 /// 文字列のみ描画する関数(透明度設定なし)
 /// </summary>
 private void DrawTextWithoutMODESETTING()
 {
     if (FontHandle >= 0)
     {
         FontAsset.Draw(FontHandle, Text, TextPosX, TextPosY, TextColor);
     }
 }
Exemple #3
0
 public void Draw()
 {
     if (!IsVisible)
     {
         return;
     }
     DX.DrawBox(X - 1, Y - 1, X + Width + 1, Y + Height + 1, WindowBaseColor, DX.TRUE);
     DX.DrawBox(X - 1, Y - 1, X + Width + 1, Y + Height + 1, WindowFrameColor, DX.FALSE);
     ReloadButton.Draw();
     CloseButton.Draw();
     if (!IsHaveInfo)
     {
         FontAsset.Draw(TextFont, "Please Reload",
                        X + Width / 2 - FontAsset.GetDrawTextWidth(TextFont, "Please Reload") / 2,
                        Y + 60, TextColor
                        );
     }
     else if (IsReloading)
     {
         FontAsset.Draw(TextFont, "Loading...",
                        X + Width / 2 - FontAsset.GetDrawTextWidth(TextFont, "Loading...") / 2,
                        Y + 60, TextColor
                        );
     }
     else
     {
         foreach (var button in MatchesListButtons)
         {
             button.Draw();
             button.DrawText();
         }
     }
 }
Exemple #4
0
 /// <summary>
 /// マウスが重なっている場合、重ねて色をテキストのみ描画する。透明度設定なし
 /// </summary>
 public void MouseOverDrawTextWithoutMODESETTING()
 {
     if (!MouseOver())
     {
         return;
     }
     if (FontHandle >= 0)
     {
         FontAsset.Draw(FontHandle, Text, TextPosX, TextPosY, MouseOverColor);
     }
 }
Exemple #5
0
 /// <summary>
 /// マウスが重なっている場合、重ねて色をテキストにのみ描画する
 /// </summary>
 public void MouseOverDrawText()
 {
     if (!MouseOver())
     {
         return;
     }
     DX.SetDrawBlendMode(DX.DX_BLENDMODE_ALPHA, 100);
     if (FontHandle >= 0)
     {
         FontAsset.Draw(FontHandle, Text, TextPosX, TextPosY, MouseOverColor);
     }
     DX.SetDrawBlendMode(DX.DX_BLENDMODE_NOBLEND, 0);
 }
Exemple #6
0
 /// <summary>
 /// ゲームシーンの描画処理
 /// </summary>
 public void Draw()
 {
     SugorokuFrame.Draw();
     DiceButton.Draw();
     DiceButton.MouseOverDraw();
     DiceTexture.Draw();
     MyPlayer.Draw();
     MyPlayerText.DrawText();
     FontAsset.Draw(MessageTextFont, MessageText, 0, 800, DX.GetColor(50, 50, 50));
     if (state == State.DrawRanking)
     {
         SugorokuFrame.Draw();
         CloseButton.Draw();
         CloseButton.DrawText();
     }
 }
Exemple #7
0
 /// <summary>
 /// 文字列のみ描画する関数
 /// </summary>
 public void DrawText()
 {
     if (FontHandle >= 0)
     {
         if (fadeoutFrame <= fadeoutFrameCount)
         {
             return;
         }
         if (nowFadein || nowFadeout)
         {
             DX.SetDrawBlendMode(DX.DX_BLENDMODE_ALPHA, alpha);
             FontAsset.Draw(FontHandle, Text, TextPosX, TextPosY, TextColor);
             DX.SetDrawBlendMode(DX.DX_BLENDMODE_NOBLEND, 0);
         }
         else
         {
             FontAsset.Draw(FontHandle, Text, TextPosX, TextPosY, TextColor);
         }
     }
 }
Exemple #8
0
        /// <summary>
        /// シーン内の描画処理
        /// </summary>
        public void Draw()
        {
            TextureAsset.Draw(LogoImageHandle, 490, 90, 300, 300, DX.TRUE);
            IpAddressText.Draw();
            PortNumberText.Draw();
            SaveIpAddressButton.Draw();
            switch (state)
            {
            case State.Start:
                StartButton.Draw();
                StartButton.DrawText();
                EndButton.Draw();
                EndButton.DrawText();
                break;

            case State.Select:
                BackButton.Draw();
                BackButton.DrawText();
                MakeRoomButton.Draw();
                MakeRoomButton.DrawText();
                JoinRoomButton.Draw();
                JoinRoomButton.DrawText();
                break;

            case State.FindRoom:
                BackButton.Draw();
                BackButton.DrawText();
                FindRoomButton.Draw();
                FindRoomButton.DrawText();
                SubmitButton.Draw();
                SubmitButton.DrawText();
                roomName.Draw();
                playerName.Draw();
                FontAsset.Draw("button1Base", "部屋名", roomName.x1 - 250, roomName.y1 + 5, DX.GetColor(125, 125, 125));
                FontAsset.Draw("button1Base", "プレイヤー名", playerName.x1 - 250, playerName.y1 + 5, DX.GetColor(125, 125, 125));
                break;

            case State.MakeRoom:
                BackButton.Draw();
                BackButton.DrawText();
                SubmitButton.Draw();
                SubmitButton.DrawText();
                roomName.Draw();
                playerName.Draw();
                playerNum.Draw();
                FontAsset.Draw("button1Base", "部屋名", roomName.x1 - 260, roomName.y1 + 5, DX.GetColor(125, 125, 125));
                FontAsset.Draw("button1Base", "プレイヤー名", playerName.x1 - 260, playerName.y1 + 5, DX.GetColor(125, 125, 125));
                FontAsset.Draw("button1Base", "人数", playerNum.x1 - 260, playerNum.y1 + 5, DX.GetColor(125, 125, 125));
                break;

            case State.Load:
                BackButton.Draw();
                BackButton.DrawText();
                LoadTexture.Draw();
                break;

            case State.Popup:
                if (FindRoomWindow.IsVisible)
                {
                    FindRoomWindow.Draw();
                }
                break;

            default:
                break;
            }
        }