• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

Revision330 (tree)
Time2022-09-25 01:24:45
Authorxops-mikan

Log Message

デバック用コンソールにおける"config"コマンドの表示を改善

Change Summary

Incremental Difference

--- trunk/gamemain.cpp (revision 329)
+++ trunk/gamemain.cpp (revision 330)
@@ -3690,12 +3690,14 @@
36903690
36913691 //configの情報
36923692 if( strcmp(NewCommand, "config") == 0 ){
3693+ AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), "[Basic Config]");
3694+
36933695 //キーコード表示
36943696 char str2[8];
36953697 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 : ");
36973699 for(int i=0; i*10<TOTAL_ControlKey; i++){
3698- strcpy(str, "");
3700+ strcpy(str, " ");
36993701 for(int j=0; j<10; j++){
37003702 if( i*10+j >= TOTAL_ControlKey ){ break; }
37013703 sprintf(str2, " 0x%02X", GameConfig.GetKeycode(i*10+j));
@@ -3704,9 +3706,11 @@
37043706 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
37053707 }
37063708
3709+ strcpy(str, " ");
3710+
37073711 //マウス感度
37083712 sprintf(str3, "MouseSensitivity : %2d ", GameConfig.GetMouseSensitivity());
3709- strcpy(str, str3);
3713+ strcat(str, str3);
37103714
37113715 //画面表示モード
37123716 if( GameConfig.GetFullscreenFlag() == false ){
@@ -3719,12 +3723,14 @@
37193723 //表示
37203724 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
37213725
3726+ strcpy(str, " ");
3727+
37223728 //効果音設定
37233729 if( GameConfig.GetSoundFlag() == false ){
3724- strcpy(str, "SoundFlag : false (OFF) ");
3730+ strcat(str, "SoundFlag : false (OFF) ");
37253731 }
37263732 else{
3727- strcpy(str, "SoundFlag : true (ON) ");
3733+ strcat(str, "SoundFlag : true (ON) ");
37283734 }
37293735
37303736 //出血設定
@@ -3738,9 +3744,11 @@
37383744 //表示
37393745 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
37403746
3747+ strcpy(str, " ");
3748+
37413749 //画面の明るさ設定
37423750 sprintf(str3, "Brightness : %2d ", GameConfig.GetBrightness());
3743- strcpy(str, str3);
3751+ strcat(str, str3);
37443752
37453753 //マウス反転設定
37463754 if( GameConfig.GetInvertMouseFlag() == false ){
@@ -3753,12 +3761,14 @@
37533761 //表示
37543762 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
37553763
3764+ strcpy(str, " ");
3765+
37563766 //フレームスキップ設定
37573767 if( GameConfig.GetFrameskipFlag() == false ){
3758- strcpy(str, "FrameskipFlag : false (OFF) ");
3768+ strcat(str, "FrameskipFlag : false (OFF) ");
37593769 }
37603770 else{
3761- strcpy(str, "FrameskipFlag : true (ON) ");
3771+ strcat(str, "FrameskipFlag : true (ON) ");
37623772 }
37633773
37643774 //別の照準を使用設定
@@ -3772,12 +3782,33 @@
37723782 //表示
37733783 AddInfoConsole(d3dg->GetColorCode(1.0f,1.0f,1.0f,1.0f), str);
37743784
3785+ strcpy(str, " ");
3786+
37753787 //プレイヤー名表示
37763788 char namestr[MAX_PLAYERNAME+1];
37773789 GameConfig.GetPlayerName(namestr);
3778- strcpy(str, "PlayerName : ");
3790+ strcat(str, "PlayerName : ");
37793791 strcat(str, namestr);
37803792 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);
37813812 }
37823813
37833814 //MIFの情報表示