mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- added a few missing menu things.
This commit is contained in:
parent
f2cc7e3636
commit
39c55199f9
4 changed files with 29 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue