X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
| Revision | 330 (tree) |
|---|---|
| Time | 2022-09-25 01:24:45 |
| Author | |
デバック用コンソールにおける"config"コマンドの表示を改善
| @@ -3690,12 +3690,14 @@ | ||
| 3690 | 3690 | |
| 3691 | 3691 | //configの情報 |
| 3692 | 3692 | if( strcmp(NewCommand, "config") == 0 ){ |
| 3693 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "[Basic Config]"); | |
| 3694 | + | |
| 3693 | 3695 | //キーコード表示 |
| 3694 | 3696 | char str2[8]; |
| 3695 | 3697 | char str3[MAX_CONSOLELEN]; |
| 3696 | - AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "Keycode : "); | |
| 3698 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), " Keycode : "); | |
| 3697 | 3699 | for(int i=0; i*10<TOTAL_ControlKey; i++){ |
| 3698 | - strcpy(str, ""); | |
| 3700 | + strcpy(str, " "); | |
| 3699 | 3701 | for(int j=0; j<10; j++){ |
| 3700 | 3702 | if( i*10+j >= TOTAL_ControlKey ){ break; } |
| 3701 | 3703 | sprintf(str2, " 0x%02X", GameConfig.GetKeycode(i*10+j)); |
| @@ -3704,9 +3706,11 @@ | ||
| 3704 | 3706 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
| 3705 | 3707 | } |
| 3706 | 3708 | |
| 3709 | + strcpy(str, " "); | |
| 3710 | + | |
| 3707 | 3711 | //マウス感度 |
| 3708 | 3712 | sprintf(str3, "MouseSensitivity : %2d ", GameConfig.GetMouseSensitivity()); |
| 3709 | - strcpy(str, str3); | |
| 3713 | + strcat(str, str3); | |
| 3710 | 3714 | |
| 3711 | 3715 | //画面表示モード |
| 3712 | 3716 | if( GameConfig.GetFullscreenFlag() == false ){ |
| @@ -3719,12 +3723,14 @@ | ||
| 3719 | 3723 | //表示 |
| 3720 | 3724 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
| 3721 | 3725 | |
| 3726 | + strcpy(str, " "); | |
| 3727 | + | |
| 3722 | 3728 | //効果音設定 |
| 3723 | 3729 | if( GameConfig.GetSoundFlag() == false ){ |
| 3724 | - strcpy(str, "SoundFlag : false (OFF) "); | |
| 3730 | + strcat(str, "SoundFlag : false (OFF) "); | |
| 3725 | 3731 | } |
| 3726 | 3732 | else{ |
| 3727 | - strcpy(str, "SoundFlag : true (ON) "); | |
| 3733 | + strcat(str, "SoundFlag : true (ON) "); | |
| 3728 | 3734 | } |
| 3729 | 3735 | |
| 3730 | 3736 | //出血設定 |
| @@ -3738,9 +3744,11 @@ | ||
| 3738 | 3744 | //表示 |
| 3739 | 3745 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
| 3740 | 3746 | |
| 3747 | + strcpy(str, " "); | |
| 3748 | + | |
| 3741 | 3749 | //画面の明るさ設定 |
| 3742 | 3750 | sprintf(str3, "Brightness : %2d ", GameConfig.GetBrightness()); |
| 3743 | - strcpy(str, str3); | |
| 3751 | + strcat(str, str3); | |
| 3744 | 3752 | |
| 3745 | 3753 | //マウス反転設定 |
| 3746 | 3754 | if( GameConfig.GetInvertMouseFlag() == false ){ |
| @@ -3753,12 +3761,14 @@ | ||
| 3753 | 3761 | //表示 |
| 3754 | 3762 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
| 3755 | 3763 | |
| 3764 | + strcpy(str, " "); | |
| 3765 | + | |
| 3756 | 3766 | //フレームスキップ設定 |
| 3757 | 3767 | if( GameConfig.GetFrameskipFlag() == false ){ |
| 3758 | - strcpy(str, "FrameskipFlag : false (OFF) "); | |
| 3768 | + strcat(str, "FrameskipFlag : false (OFF) "); | |
| 3759 | 3769 | } |
| 3760 | 3770 | else{ |
| 3761 | - strcpy(str, "FrameskipFlag : true (ON) "); | |
| 3771 | + strcat(str, "FrameskipFlag : true (ON) "); | |
| 3762 | 3772 | } |
| 3763 | 3773 | |
| 3764 | 3774 | //別の照準を使用設定 |
| @@ -3772,12 +3782,33 @@ | ||
| 3772 | 3782 | //表示 |
| 3773 | 3783 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
| 3774 | 3784 | |
| 3785 | + strcpy(str, " "); | |
| 3786 | + | |
| 3775 | 3787 | //プレイヤー名表示 |
| 3776 | 3788 | char namestr[MAX_PLAYERNAME+1]; |
| 3777 | 3789 | GameConfig.GetPlayerName(namestr); |
| 3778 | - strcpy(str, "PlayerName : "); | |
| 3790 | + strcat(str, "PlayerName : "); | |
| 3779 | 3791 | strcat(str, namestr); |
| 3780 | 3792 | AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); |
| 3793 | + | |
| 3794 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "[Add Config]"); | |
| 3795 | + | |
| 3796 | + strcpy(str, " "); | |
| 3797 | + | |
| 3798 | + //言語設定 | |
| 3799 | + sprintf(str3, "Language : %d ", GameConfig.GetLanguage()); | |
| 3800 | + strcat(str, str3); | |
| 3801 | + | |
| 3802 | + //画面解像度 | |
| 3803 | + sprintf(str3, "ScreenSize : %dx%d ", GameConfig.GetScreenWidth(), GameConfig.GetScreenHeight()); | |
| 3804 | + strcat(str, str3); | |
| 3805 | + | |
| 3806 | + //音量設定 | |
| 3807 | + sprintf(str3, "MasterVolume : %d%%", (int)(GameConfig.GetVolume()*100)); | |
| 3808 | + strcat(str, str3); | |
| 3809 | + | |
| 3810 | + //表示 | |
| 3811 | + AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str); | |
| 3781 | 3812 | } |
| 3782 | 3813 | |
| 3783 | 3814 | //MIFの情報表示 |