- added a few missing menu things.

This commit is contained in:
Christoph Oelckers 2020-01-03 20:37:02 +01:00
parent f2cc7e3636
commit 39c55199f9
4 changed files with 29 additions and 3 deletions

View file

@ -703,6 +703,19 @@ void C_BindDefaults()
CONFIG_SetDefaultKeys(cl_defaultconfiguration == 1 ? "engine/origbinds.txt" : cl_defaultconfiguration == 2 ? "engine/leftbinds.txt" : "engine/defbinds.txt");
}
CCMD(controlpreset)
{
if (argv.argc() < 2)
{
Printf("Usage: Controlpreset {0,1,2}\n");
return;
}
int v = atoi(argv[1]);
if (v < 0 || v > 2) return;
cl_defaultconfiguration = v;
C_BindDefaults();
}
CCMD(binddefaults)
{
C_BindDefaults();

View file

@ -158,7 +158,8 @@ public:
auto msg = GStrings.localize(mPrompt.IsNotEmpty()? mPrompt.GetChars() : "$SAFEMESSAGE");
auto actionLabel = GStrings.localize(mLabel.GetChars());
FStringf FullString("%s%s%s\n\n%s", TEXTCOLOR_WHITE, actionLabel, TEXTCOLOR_NORMAL, msg);
//FStringf FullString("%s%s%s\n\n%s", TEXTCOLOR_WHITE, actionLabel, TEXTCOLOR_NORMAL, msg);
FStringf FullString("- %s -\n%s", actionLabel, msg);
M_StartMessage(FullString, 0, mScriptId);
return true;
}

View file

@ -240,7 +240,7 @@ Default,CTRL_DEFAULT,,,,,Standard,,,,,,,,,,,,,,,,,
Classic,CTRL_CLASSIC,,,,,"Klassisch
",,,,,,,,,,,,,,,,,
Left-handed,CTRL_LEFTHANDED,,,,,Linkshändig,,,,,,,,,,,,,,,,,
Preferred control preset,CTRL_PRESET,,,,,Bevorzugter Steuerungsstandard,,,,,,,,,,,,,,,,,
Control presets,CTRL_PRESET,,,,,Voreinstellungen,,,,,,,,,,,,,,,,,
Customize Controls,CNTRLMNU_TITLE,,,,Nastavení ovládání,Steuerung einstellen,,Agordi Regilojn,Personalizar Controles ,,Ohjausasetukset,Modifier contrôles,Irányítás testreszabása,Personalizza i controlli,キー配置変更,조작 사용자 지정,Instellen van de controle,Ustaw Klawisze,Configurar Controles,Configurar Controlos,,Настройки управления,Подешавања контрола
"ENTER to change, BACKSPACE to clear",CNTRLMNU_SWITCHTEXT1,,,,"ENTER pro změnu, BACKSPACE pro smazání",ENTER: Editieren BACKSPACE: Löschen,,"ENTER klavo por ŝanĝi, BACKSPACE klavo por viŝi","ENTER para cambiar, BACKSPACE para limpiar",,"Aseta ENTERILLÄ, tyhjennä ASKELPALAUTTIMELLA","ENTREE pour changer, RET. ARRIERE pour effacer.","ENTER a változtatáshoz, BACKSPACE a törléshez","INVIO per modificare, BACKSPACE per ripulire",Enter で決定、BackSpaceで無効化,"바꿀려면 ENTER키, 지울려면 BACKSPACE키를 누르시오","ENTER om te veranderen, BACKSPACE om te wissen.","ENTER by zmienić, BACKSPACE by wyczyścić","ENTER para alterar, BACKSPACE para limpar",,,"ENTER — изменить, BACKSPACE — очистить","ENTER за промену, BACKSPACE за чишћење"
"Press new key for control, ESC to cancel",CNTRLMNU_SWITCHTEXT2,,,,"Zmáčkni novou klávesu pro nastavení, ESC pro storno",Drücke eine Taste oder ESC um abzubrechen,,"Premi novan klavon por reakiri regilon, ESC por nuligi","Presiona una tecla para el control, ESC para cancelar",,"Valitse näppäin toiminnolle, ESC peruuttaa","Appuyez sur la nouvelle touche pour l'assigner,

1 default Identifier Remarks Filter eng enc ena enz eni ens enj enb enl ent enw cs de el eo es esm esn esg esc esa esd esv eso esr ess esf esl esy esz esb ese esh esi esu fi fr hu it jp ko nl pl pt ptg ro ru sr
240 Purple TXT_COLOR_PURPLE Fialová Violett Purpura Morado Purppura Violet Lila Viola 보라색 Paars Fioletowy Roxo Фиолетовый Љубичаста
241 Olive TXT_COLOR_DULLGREEN Bledě zelená Blassgrün Gris-Verda Verde pálido Haaleanvihreä Vert pâle Verde pallido 암녹색 Saaie groen Matowa Zieleń Verde pálido Мутно-зелёный Тупа зелена
242 Auto OPTVAL_AUTO Aŭtomata Automático Automaattinen Automatico 自動 자동 Automatycznie Automático Авто Аутоматски
243 Name PLYRMNU_NAME Jméno Nomo Nombre Nimi Nom Név Nome 名前 이름 Naam Imię Nome Имя Надимак
244 Team PLYRMNU_TEAM Tým Teamo Equipo Joukkue Equipe Csapat Squadra チーム Team Drużyna Equipe Equipa Команда Тим
245 Color PLYRMNU_PLAYERCOLOR Colour Barva Farbe Koloro Väri Couleur Szín Colore 색상 Kleur Kolor Cor Цвет Боја
246 Multiplayer taunts PLRMNU_TAUNTS Mehrspieler-Spott

View file

@ -677,6 +677,11 @@ OptionMenu "CustomizeControls"// protected
Submenu "$CNTRLMNU_INVENTORY" , "InventoryControlsMenu"
Submenu "$CNTRLMNU_OTHER" , "OtherControlsMenu"
//Submenu "$MAPCNTRLMNU_CONTROLS" , "MapControlsMenu" // todo after thorough cleanup
StaticText ""
StaticText "$CTRL_PRESET"
SafeCommand "$CTRL_DEFAULT", "controlpreset 0" //engine/defbinds.txt
SafeCommand "$CTRL_CLASSIC", "controlpreset 1" //engine/origbinds.txt
SafeCommand "$CTRL_LEFTHANDED", "controlpreset 2" //engine/leftbinds.txt
}
OptionMenu "ActionControlsMenu"// protected
@ -1509,11 +1514,18 @@ OptionValue MaxFps
200, "$OPTVAL_200FPS"
}
OptionValue GPUSwitch
{
0.0, "$OPTVAL_DEFAULT"
1.0, "$OPTVAL_DEDICATED"
2.0, "$OPTVAL_INTEGRATED"
}
OptionMenu VideoModeMenu //protected
{
Title "$VIDMNU_TITLE"
Option "$VIDMNU_FULLSCREEN", "fullscreen", "YesNo"
Option "$VIDMNU_FULLSCREEN", "vid_fullscreen", "YesNo"
IfOption(Mac)
{