mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- fixed compile errors and updated string table.
This commit is contained in:
parent
3cf6e6eb78
commit
26daff79db
9 changed files with 382 additions and 325 deletions
|
@ -748,7 +748,6 @@ set (PCH_SOURCES
|
||||||
common/searchpaths.cpp
|
common/searchpaths.cpp
|
||||||
common/initfs.cpp
|
common/initfs.cpp
|
||||||
common/openaudio.cpp
|
common/openaudio.cpp
|
||||||
common/optionmenu/optionmenu.cpp
|
|
||||||
common/statistics.cpp
|
common/statistics.cpp
|
||||||
common/secrets.cpp
|
common/secrets.cpp
|
||||||
common/compositesavegame.cpp
|
common/compositesavegame.cpp
|
||||||
|
@ -774,6 +773,7 @@ set (PCH_SOURCES
|
||||||
common/console/c_commandline.cpp
|
common/console/c_commandline.cpp
|
||||||
common/console/c_dispatch.cpp
|
common/console/c_dispatch.cpp
|
||||||
common/console/d_event.cpp
|
common/console/d_event.cpp
|
||||||
|
common/console/c_con.cpp
|
||||||
|
|
||||||
common/utility/i_time.cpp
|
common/utility/i_time.cpp
|
||||||
common/utility/name.cpp
|
common/utility/name.cpp
|
||||||
|
|
|
@ -809,215 +809,3 @@ bool C_DoKey (event_t *ev, FKeyBindings *binds, FKeyBindings *doublebinds)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Todo: Move to a separate file.
|
|
||||||
//=============================================================================
|
|
||||||
//
|
|
||||||
// Interface for CON scripts to get descriptions for actions
|
|
||||||
// This code can query the 64 original game functions by index.
|
|
||||||
//
|
|
||||||
//=============================================================================
|
|
||||||
|
|
||||||
static GameFuncDesc con_gamefuncs[] = {
|
|
||||||
{"+Move_Forward", "Move_Forward"},
|
|
||||||
{"+Move_Backward", "Move_Backward"},
|
|
||||||
{"+Turn_Left", "Turn_Left"},
|
|
||||||
{"+Turn_Right", "Turn_Right"},
|
|
||||||
{"+Strafe", "Strafe"},
|
|
||||||
{"+Fire", "Fire"},
|
|
||||||
{"+Open", "Open"},
|
|
||||||
{"+Run", "Run"},
|
|
||||||
{"+Alt_Fire", "Alt_Fire"},
|
|
||||||
{"+Jump", "Jump"},
|
|
||||||
{"+Crouch", "Crouch"},
|
|
||||||
{"+Look_Up", "Look_Up"},
|
|
||||||
{"+Look_Down", "Look_Down"},
|
|
||||||
{"+Look_Left", "Look_Left"},
|
|
||||||
{"+Look_Right", "Look_Right"},
|
|
||||||
{"+Strafe_Left", "Strafe_Left"},
|
|
||||||
{"+Strafe_Right", "Strafe_Right"},
|
|
||||||
{"+Aim_Up", "Aim_Up"},
|
|
||||||
{"+Aim_Down", "Aim_Down"},
|
|
||||||
{"+Weapon_1", "Weapon_1"},
|
|
||||||
{"+Weapon_2", "Weapon_2"},
|
|
||||||
{"+Weapon_3", "Weapon_3"},
|
|
||||||
{"+Weapon_4", "Weapon_4"},
|
|
||||||
{"+Weapon_5", "Weapon_5"},
|
|
||||||
{"+Weapon_6", "Weapon_6"},
|
|
||||||
{"+Weapon_7", "Weapon_7"},
|
|
||||||
{"+Weapon_8", "Weapon_8"},
|
|
||||||
{"+Weapon_9", "Weapon_9"},
|
|
||||||
{"+Weapon_10", "Weapon_10"},
|
|
||||||
{"+Inventory", "Inventory"},
|
|
||||||
{"+Inventory_Left", "Inventory_Left"},
|
|
||||||
{"+Inventory_Right", "Inventory_Right"},
|
|
||||||
{"+Holo_Duke", "Holo_Duke"},
|
|
||||||
{"+Jetpack", "Jetpack"},
|
|
||||||
{"+NightVision", "NightVision"},
|
|
||||||
{"+MedKit", "MedKit"},
|
|
||||||
{"+TurnAround", "TurnAround"},
|
|
||||||
{"+SendMessage", "SendMessage"},
|
|
||||||
{"+Map", "Map"},
|
|
||||||
{"+Shrink_Screen", "Shrink_Screen"},
|
|
||||||
{"+Enlarge_Screen", "Enlarge_Screen"},
|
|
||||||
{"+Center_View", "Center_View"},
|
|
||||||
{"+Holster_Weapon", "Holster_Weapon"},
|
|
||||||
{"+Show_Opponents_Weapon", "Show_Opponents_Weapon"},
|
|
||||||
{"+Map_Follow_Mode", "Map_Follow_Mode"},
|
|
||||||
{"+See_Coop_View", "See_Coop_View"},
|
|
||||||
{"+Mouse_Aiming", "Mouse_Aiming"},
|
|
||||||
{"+Toggle_Crosshair", "Toggle_Crosshair"},
|
|
||||||
{"+Steroids", "Steroids"},
|
|
||||||
{"+Quick_Kick", "Quick_Kick"},
|
|
||||||
{"+Next_Weapon", "Next_Weapon"},
|
|
||||||
{"+Previous_Weapon", "Previous_Weapon"},
|
|
||||||
{"+Show_Console", "Show_Console"},
|
|
||||||
{"+Show_DukeMatch_Scores", "Show_Scoreboard"},
|
|
||||||
{"+Dpad_Select", "Dpad_Select"},
|
|
||||||
{"+Dpad_Aiming", "Dpad_Aiming"},
|
|
||||||
{"+AutoRun", "AutoRun"},
|
|
||||||
{"+Last_Used_Weapon", "Last_Used_Weapon"},
|
|
||||||
{"+Quick_Save", "Quick_Save"},
|
|
||||||
{"+Quick_Load", "Quick_Load"},
|
|
||||||
{"+Alt_Weapon", "Alt_Weapon"},
|
|
||||||
{"+Third_Person_View", "Third_Person_View"},
|
|
||||||
{"+Toggle_Crouch", "Toggle_Crouch"}
|
|
||||||
};
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//=============================================================================
|
|
||||||
|
|
||||||
void C_CON_SetAliases()
|
|
||||||
{
|
|
||||||
if (g_gameType & GAMEFLAG_NAM)
|
|
||||||
{
|
|
||||||
con_gamefuncs[32].description = "Holo_Soldier";
|
|
||||||
con_gamefuncs[33].description = "Huey";
|
|
||||||
con_gamefuncs[48].description = "Tank_Mode";
|
|
||||||
}
|
|
||||||
if (g_gameType & GAMEFLAG_WW2GI)
|
|
||||||
{
|
|
||||||
con_gamefuncs[32].description = "Fire_Mission";
|
|
||||||
con_gamefuncs[33].description = "";
|
|
||||||
con_gamefuncs[48].description = "Smokes";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static FString C_CON_GetGameFuncOnKeyboard(int gameFunc)
|
|
||||||
{
|
|
||||||
if (gameFunc >= 0 && gameFunc < countof(con_gamefuncs))
|
|
||||||
{
|
|
||||||
auto keys = Bindings.GetKeysForCommand(con_gamefuncs[gameFunc].action);
|
|
||||||
for (auto key : keys)
|
|
||||||
{
|
|
||||||
if (key < KEY_FIRSTMOUSEBUTTON)
|
|
||||||
{
|
|
||||||
auto scan = KB_ScanCodeToString(key);
|
|
||||||
if (scan) return scan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
static FString C_CON_GetGameFuncOnMouse(int gameFunc)
|
|
||||||
{
|
|
||||||
if (gameFunc >= 0 && gameFunc < countof(con_gamefuncs))
|
|
||||||
{
|
|
||||||
auto keys = Bindings.GetKeysForCommand(con_gamefuncs[gameFunc].action);
|
|
||||||
for (auto key : keys)
|
|
||||||
{
|
|
||||||
if ((key >= KEY_FIRSTMOUSEBUTTON && key < KEY_FIRSTJOYBUTTON) || (key >= KEY_MWHEELUP && key <= KEY_MWHEELLEFT))
|
|
||||||
{
|
|
||||||
auto scan = KB_ScanCodeToString(key);
|
|
||||||
if (scan) return scan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
char const* C_CON_GetGameFuncOnJoystick(int gameFunc)
|
|
||||||
{
|
|
||||||
if (gameFunc >= 0 && gameFunc < countof(con_gamefuncs))
|
|
||||||
{
|
|
||||||
auto keys = Bindings.GetKeysForCommand(con_gamefuncs[gameFunc].action);
|
|
||||||
for (auto key : keys)
|
|
||||||
{
|
|
||||||
if (key >= KEY_FIRSTJOYBUTTON && !(key >= KEY_MWHEELUP && key <= KEY_MWHEELLEFT))
|
|
||||||
{
|
|
||||||
auto scan = KB_ScanCodeToString(key);
|
|
||||||
if (scan) return scan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
FString C_CON_GetBoundKeyForLastInput(int gameFunc)
|
|
||||||
{
|
|
||||||
if (CONTROL_LastSeenInput == LastSeenInput::Joystick)
|
|
||||||
{
|
|
||||||
FString name = C_CON_GetGameFuncOnJoystick(gameFunc);
|
|
||||||
if (name.IsNotEmpty())
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
FString name = C_CON_GetGameFuncOnKeyboard(gameFunc);
|
|
||||||
if (name.IsNotEmpty())
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
name = C_CON_GetGameFuncOnMouse(gameFunc);
|
|
||||||
if (name.IsNotEmpty())
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
name = C_CON_GetGameFuncOnJoystick(gameFunc);
|
|
||||||
if (name.IsNotEmpty())
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
return "UNBOUND";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//=============================================================================
|
|
||||||
|
|
||||||
void C_CON_SetButtonAlias(int num, const char *text)
|
|
||||||
{
|
|
||||||
if (num >= 0 && num < countof(con_gamefuncs))
|
|
||||||
{
|
|
||||||
if (con_gamefuncs[num].replaced) free((void*)con_gamefuncs[num].description);
|
|
||||||
con_gamefuncs[num].description = strdup(text);
|
|
||||||
con_gamefuncs[num].replaced = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//=============================================================================
|
|
||||||
|
|
||||||
void C_CON_ClearButtonAlias(int num)
|
|
||||||
{
|
|
||||||
if (num >= 0 && num < countof(con_gamefuncs))
|
|
||||||
{
|
|
||||||
if (con_gamefuncs[num].replaced) free((void*)con_gamefuncs[num].description);
|
|
||||||
con_gamefuncs[num].description = "";
|
|
||||||
con_gamefuncs[num].replaced = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
276
source/common/console/c_con.cpp
Normal file
276
source/common/console/c_con.cpp
Normal file
|
@ -0,0 +1,276 @@
|
||||||
|
/*
|
||||||
|
** c_con.cpp
|
||||||
|
** Interface for CON scripts.
|
||||||
|
**
|
||||||
|
**
|
||||||
|
**---------------------------------------------------------------------------
|
||||||
|
** Copyright 2019 Christoph Oelckers
|
||||||
|
** All rights reserved.
|
||||||
|
**
|
||||||
|
** Redistribution and use in source and binary forms, with or without
|
||||||
|
** modification, are permitted provided that the following conditions
|
||||||
|
** are met:
|
||||||
|
**
|
||||||
|
** 1. Redistributions of source code must retain the above copyright
|
||||||
|
** notice, this list of conditions and the following disclaimer.
|
||||||
|
** 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
** notice, this list of conditions and the following disclaimer in the
|
||||||
|
** documentation and/or other materials provided with the distribution.
|
||||||
|
** 3. The name of the author may not be used to endorse or promote products
|
||||||
|
** derived from this software without specific prior written permission.
|
||||||
|
**
|
||||||
|
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
|
** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
|
** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||||
|
** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
**---------------------------------------------------------------------------
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "basics.h"
|
||||||
|
#include "zstring.h"
|
||||||
|
#include "c_bind.h"
|
||||||
|
#include "gamecontrol.h"
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
//
|
||||||
|
// Interface for CON scripts to get descriptions for actions
|
||||||
|
// This code can query the 64 original game functions by index.
|
||||||
|
//
|
||||||
|
// This is mostly an ill-advised hackery to change menu texts. It no longer
|
||||||
|
// changes the menu but gets used when scripts try to write
|
||||||
|
// key related messages. Ion Fury uses this and is one of the reasons
|
||||||
|
// why that game is by all accounts not localizable.
|
||||||
|
//
|
||||||
|
// Important note: The list of actions may not be altered. If some of these
|
||||||
|
// commands get refactored, the string below needs to be changed to match
|
||||||
|
// the new command.
|
||||||
|
//
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
static GameFuncDesc con_gamefuncs[] = {
|
||||||
|
{"+Move_Forward", "Move_Forward"},
|
||||||
|
{"+Move_Backward", "Move_Backward"},
|
||||||
|
{"+Turn_Left", "Turn_Left"},
|
||||||
|
{"+Turn_Right", "Turn_Right"},
|
||||||
|
{"+Strafe", "Strafe"},
|
||||||
|
{"+Fire", "Fire"},
|
||||||
|
{"+Open", "Open"},
|
||||||
|
{"+Run", "Run"},
|
||||||
|
{"+Alt_Fire", "Alt_Fire"},
|
||||||
|
{"+Jump", "Jump"},
|
||||||
|
{"+Crouch", "Crouch"},
|
||||||
|
{"+Look_Up", "Look_Up"},
|
||||||
|
{"+Look_Down", "Look_Down"},
|
||||||
|
{"+Look_Left", "Look_Left"},
|
||||||
|
{"+Look_Right", "Look_Right"},
|
||||||
|
{"+Strafe_Left", "Strafe_Left"},
|
||||||
|
{"+Strafe_Right", "Strafe_Right"},
|
||||||
|
{"+Aim_Up", "Aim_Up"},
|
||||||
|
{"+Aim_Down", "Aim_Down"},
|
||||||
|
{"+Weapon_1", "Weapon_1"},
|
||||||
|
{"+Weapon_2", "Weapon_2"},
|
||||||
|
{"+Weapon_3", "Weapon_3"},
|
||||||
|
{"+Weapon_4", "Weapon_4"},
|
||||||
|
{"+Weapon_5", "Weapon_5"},
|
||||||
|
{"+Weapon_6", "Weapon_6"},
|
||||||
|
{"+Weapon_7", "Weapon_7"},
|
||||||
|
{"+Weapon_8", "Weapon_8"},
|
||||||
|
{"+Weapon_9", "Weapon_9"},
|
||||||
|
{"+Weapon_10", "Weapon_10"},
|
||||||
|
{"+Inventory", "Inventory"},
|
||||||
|
{"+Inventory_Left", "Inventory_Left"},
|
||||||
|
{"+Inventory_Right", "Inventory_Right"},
|
||||||
|
{"+Holo_Duke", "Holo_Duke"},
|
||||||
|
{"+Jetpack", "Jetpack"},
|
||||||
|
{"+NightVision", "NightVision"},
|
||||||
|
{"+MedKit", "MedKit"},
|
||||||
|
{"+TurnAround", "TurnAround"},
|
||||||
|
{"+SendMessage", "SendMessage"},
|
||||||
|
{"+Map", "Map"},
|
||||||
|
{"+Shrink_Screen", "Shrink_Screen"},
|
||||||
|
{"+Enlarge_Screen", "Enlarge_Screen"},
|
||||||
|
{"+Center_View", "Center_View"},
|
||||||
|
{"+Holster_Weapon", "Holster_Weapon"},
|
||||||
|
{"+Show_Opponents_Weapon", "Show_Opponents_Weapon"},
|
||||||
|
{"+Map_Follow_Mode", "Map_Follow_Mode"},
|
||||||
|
{"+See_Coop_View", "See_Coop_View"},
|
||||||
|
{"+Mouse_Aiming", "Mouse_Aiming"},
|
||||||
|
{"+Toggle_Crosshair", "Toggle_Crosshair"},
|
||||||
|
{"+Steroids", "Steroids"},
|
||||||
|
{"+Quick_Kick", "Quick_Kick"},
|
||||||
|
{"+Next_Weapon", "Next_Weapon"},
|
||||||
|
{"+Previous_Weapon", "Previous_Weapon"},
|
||||||
|
{"ToggleConsole", "Show_Console"},
|
||||||
|
{"+Show_DukeMatch_Scores", "Show_Scoreboard"},
|
||||||
|
{"+Dpad_Select", "Dpad_Select"},
|
||||||
|
{"+Dpad_Aiming", "Dpad_Aiming"},
|
||||||
|
{"+AutoRun", "AutoRun"},
|
||||||
|
{"+Last_Used_Weapon", "Last_Used_Weapon"},
|
||||||
|
{"QuickSave", "Quick_Save"},
|
||||||
|
{"QuickLoad", "Quick_Load"},
|
||||||
|
{"+Alt_Weapon", "Alt_Weapon"},
|
||||||
|
{"+Third_Person_View", "Third_Person_View"},
|
||||||
|
{"+Toggle_Crouch", "Toggle_Crouch"}
|
||||||
|
};
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
void C_CON_SetAliases()
|
||||||
|
{
|
||||||
|
if (g_gameType & GAMEFLAG_NAM)
|
||||||
|
{
|
||||||
|
con_gamefuncs[32].description = "Holo_Soldier";
|
||||||
|
con_gamefuncs[33].description = "Huey";
|
||||||
|
con_gamefuncs[48].description = "Tank_Mode";
|
||||||
|
}
|
||||||
|
if (g_gameType & GAMEFLAG_WW2GI)
|
||||||
|
{
|
||||||
|
con_gamefuncs[32].description = "Fire_Mission";
|
||||||
|
con_gamefuncs[33].description = "";
|
||||||
|
con_gamefuncs[48].description = "Smokes";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static FString C_CON_GetGameFuncOnKeyboard(int gameFunc)
|
||||||
|
{
|
||||||
|
if (gameFunc >= 0 && gameFunc < countof(con_gamefuncs))
|
||||||
|
{
|
||||||
|
auto keys = Bindings.GetKeysForCommand(con_gamefuncs[gameFunc].action);
|
||||||
|
for (auto key : keys)
|
||||||
|
{
|
||||||
|
if (key < KEY_FIRSTMOUSEBUTTON)
|
||||||
|
{
|
||||||
|
auto scan = KB_ScanCodeToString(key);
|
||||||
|
if (scan) return scan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
static FString C_CON_GetGameFuncOnMouse(int gameFunc)
|
||||||
|
{
|
||||||
|
if (gameFunc >= 0 && gameFunc < countof(con_gamefuncs))
|
||||||
|
{
|
||||||
|
auto keys = Bindings.GetKeysForCommand(con_gamefuncs[gameFunc].action);
|
||||||
|
for (auto key : keys)
|
||||||
|
{
|
||||||
|
if ((key >= KEY_FIRSTMOUSEBUTTON && key < KEY_FIRSTJOYBUTTON) || (key >= KEY_MWHEELUP && key <= KEY_MWHEELLEFT))
|
||||||
|
{
|
||||||
|
auto scan = KB_ScanCodeToString(key);
|
||||||
|
if (scan) return scan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
char const* C_CON_GetGameFuncOnJoystick(int gameFunc)
|
||||||
|
{
|
||||||
|
if (gameFunc >= 0 && gameFunc < countof(con_gamefuncs))
|
||||||
|
{
|
||||||
|
auto keys = Bindings.GetKeysForCommand(con_gamefuncs[gameFunc].action);
|
||||||
|
for (auto key : keys)
|
||||||
|
{
|
||||||
|
if (key >= KEY_FIRSTJOYBUTTON && !(key >= KEY_MWHEELUP && key <= KEY_MWHEELLEFT))
|
||||||
|
{
|
||||||
|
auto scan = KB_ScanCodeToString(key);
|
||||||
|
if (scan) return scan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
FString C_CON_GetBoundKeyForLastInput(int gameFunc)
|
||||||
|
{
|
||||||
|
if (CONTROL_LastSeenInput == LastSeenInput::Joystick)
|
||||||
|
{
|
||||||
|
FString name = C_CON_GetGameFuncOnJoystick(gameFunc);
|
||||||
|
if (name.IsNotEmpty())
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
FString name = C_CON_GetGameFuncOnKeyboard(gameFunc);
|
||||||
|
if (name.IsNotEmpty())
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
name = C_CON_GetGameFuncOnMouse(gameFunc);
|
||||||
|
if (name.IsNotEmpty())
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
name = C_CON_GetGameFuncOnJoystick(gameFunc);
|
||||||
|
if (name.IsNotEmpty())
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
return "UNBOUND";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
void C_CON_SetButtonAlias(int num, const char *text)
|
||||||
|
{
|
||||||
|
if (num >= 0 && num < countof(con_gamefuncs))
|
||||||
|
{
|
||||||
|
if (con_gamefuncs[num].replaced) free((void*)con_gamefuncs[num].description);
|
||||||
|
con_gamefuncs[num].description = strdup(text);
|
||||||
|
con_gamefuncs[num].replaced = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
void C_CON_ClearButtonAlias(int num)
|
||||||
|
{
|
||||||
|
if (num >= 0 && num < countof(con_gamefuncs))
|
||||||
|
{
|
||||||
|
if (con_gamefuncs[num].replaced) free((void*)con_gamefuncs[num].description);
|
||||||
|
con_gamefuncs[num].description = "";
|
||||||
|
con_gamefuncs[num].replaced = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
const char *C_CON_GetButtonFunc(int num)
|
||||||
|
{
|
||||||
|
if (num >= 0 && num < countof(con_gamefuncs))
|
||||||
|
{
|
||||||
|
return con_gamefuncs[num].action;
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
|
@ -185,13 +185,6 @@ void D_PostEvent (const event_t *ev)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((GUICapture & 8) && ev->type == EV_KeyDown)
|
|
||||||
{
|
|
||||||
// This must bypass the entire event management
|
|
||||||
sendKeyForBinding(ev->data1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add the key to the global keyboard state.
|
// Add the key to the global keyboard state.
|
||||||
// This is probably the biggest roadblock with the input system as it undermines a proper event driven approach.
|
// This is probably the biggest roadblock with the input system as it undermines a proper event driven approach.
|
||||||
// Too much code depends on just checking this instead of waiting for events to happen.
|
// Too much code depends on just checking this instead of waiting for events to happen.
|
||||||
|
|
|
@ -1,96 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "imgui.h"
|
|
||||||
#include "v_draw.h"
|
|
||||||
#include "gamecvars.h"
|
|
||||||
#include "c_buttons.h"
|
|
||||||
#include "c_bind.h"
|
|
||||||
#include "inputstate.h"
|
|
||||||
|
|
||||||
FString activeCommand;
|
|
||||||
|
|
||||||
void sendKeyForBinding(int key)
|
|
||||||
{
|
|
||||||
Bindings.DoBind(KeyName(key), activeCommand);
|
|
||||||
GUICapture &= ~8;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool ShowOptionMenu()
|
|
||||||
{
|
|
||||||
bool isOpen = true;
|
|
||||||
int w = screen->GetWidth(), h = screen->GetHeight();
|
|
||||||
double scale;
|
|
||||||
if (w >= 1024 && h >= 768)
|
|
||||||
{
|
|
||||||
scale = 1;
|
|
||||||
ImGui::SetNextWindowPos(ImVec2((w-1024)/2, (h-768)/2), ImGuiCond_Always);
|
|
||||||
ImGui::SetNextWindowSize(ImVec2(1024, 768), ImGuiCond_Always);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// This should use a smaller font!
|
|
||||||
scale = 640.0/1024.0;
|
|
||||||
ImGui::SetNextWindowPos(ImVec2((w-640)/2, (h-480)/2), ImGuiCond_Always);
|
|
||||||
ImGui::SetNextWindowSize(ImVec2(640, 480), ImGuiCond_Always);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const int window_flags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize;
|
|
||||||
// Main body of the Demo window starts here.
|
|
||||||
if (!ImGui::Begin("Customize Controls", &isOpen, window_flags))
|
|
||||||
{
|
|
||||||
// Early out if the window is collapsed, as an optimization.
|
|
||||||
ImGui::End();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
FString emptiness = " ";
|
|
||||||
|
|
||||||
for (int i = 0; i < NUMGAMEFUNCTIONS; i++)
|
|
||||||
{
|
|
||||||
FString al = buttonMap.GetButtonAlias(i);
|
|
||||||
FString cmd = "+" + al;
|
|
||||||
if (al.IsNotEmpty())
|
|
||||||
{
|
|
||||||
al.Substitute('_', ' ');
|
|
||||||
ImGui::Text(al.GetChars());
|
|
||||||
ImGui::SameLine(300*scale);
|
|
||||||
al = buttonMap.GetButtonName(i);
|
|
||||||
auto binds = Bindings.GetKeysForCommand(cmd);
|
|
||||||
al = C_NameKeys(binds.Data(), binds.Size());
|
|
||||||
// This looks like an ImGui bug - it doesn't like two identically labelled buttons on the same page, it seems.
|
|
||||||
// Work around this by using strings with different numbers of spaces. Stupid but effective.
|
|
||||||
if (al.IsEmpty()) { al = emptiness; emptiness << " "; }
|
|
||||||
if (ImGui::Button(al, ImVec2(450 * scale, 0)))
|
|
||||||
{
|
|
||||||
activeCommand = cmd;
|
|
||||||
ImGui::OpenPopup("Bind");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (ImGui::BeginPopupModal("Bind", NULL, ImGuiWindowFlags_AlwaysAutoResize))
|
|
||||||
{
|
|
||||||
auto binds = Bindings.GetKeysForCommand(activeCommand);
|
|
||||||
auto al = C_NameKeys(binds.Data(), binds.Size());
|
|
||||||
|
|
||||||
ImGui::Text("Press 'bind' to enter binding mode or\n'delete' to clear all bindings for this action\n\nCurrently bound to this action:\n%s\n\n", al.GetChars());
|
|
||||||
ImGui::Separator();
|
|
||||||
if (ImGui::Button("Done", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); }
|
|
||||||
ImGui::SetItemDefaultFocus();
|
|
||||||
ImGui::SameLine();
|
|
||||||
if (ImGui::Button("Clear", ImVec2(120, 0))) { Bindings.UnbindACommand(activeCommand); }
|
|
||||||
ImGui::SameLine();
|
|
||||||
if (ImGui::Button("Bind", ImVec2(120, 0)))
|
|
||||||
{
|
|
||||||
// Todo: Set event handler to binding mode.
|
|
||||||
// Wait for a bound key to arrive and add to the current command.
|
|
||||||
GUICapture |= 8;
|
|
||||||
}
|
|
||||||
ImGui::EndPopup();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ImGui::End();
|
|
||||||
return isOpen;
|
|
||||||
}
|
|
|
@ -39,12 +39,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "menu/menu.h"
|
#include "menu/menu.h"
|
||||||
#include "stringtable.h"
|
#include "stringtable.h"
|
||||||
|
|
||||||
|
void C_CON_SetButtonAlias(int num, const char* text);
|
||||||
|
void C_CON_ClearButtonAlias(int num);
|
||||||
|
|
||||||
BEGIN_DUKE_NS
|
BEGIN_DUKE_NS
|
||||||
|
|
||||||
#define LINE_NUMBER (g_lineNumber << 12)
|
#define LINE_NUMBER (g_lineNumber << 12)
|
||||||
|
|
||||||
void C_CON_SetButtonAlias(int num, const char* text);
|
|
||||||
void C_CON_ClearButtonAlias(int num);
|
|
||||||
|
|
||||||
int32_t g_scriptVersion = 13; // 13 = 1.3D-style CON files, 14 = 1.4/1.5 style CON files
|
int32_t g_scriptVersion = 13; // 13 = 1.3D-style CON files, 14 = 1.4/1.5 style CON files
|
||||||
|
|
||||||
|
@ -5072,7 +5073,7 @@ repeatcase:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
build.Push(0);
|
build.Push(0);
|
||||||
buttonMap.SetButtonAlias(j, build.Data());
|
C_CON_SetButtonAlias(j, build.Data());
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -5091,7 +5092,7 @@ repeatcase:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
buttonMap.ClearButtonAlias(j);
|
C_CON_ClearButtonAlias(j);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case CON_DEFINESKILLNAME:
|
case CON_DEFINESKILLNAME:
|
||||||
|
|
|
@ -43,6 +43,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "debugbreak.h"
|
#include "debugbreak.h"
|
||||||
extern bool rotatesprite_2doverride;
|
extern bool rotatesprite_2doverride;
|
||||||
|
|
||||||
|
FString C_CON_GetBoundKeyForLastInput(int gameFunc);
|
||||||
|
const char* C_CON_GetButtonFunc(int num);
|
||||||
|
|
||||||
BEGIN_DUKE_NS
|
BEGIN_DUKE_NS
|
||||||
|
|
||||||
#if KRANDDEBUG
|
#if KRANDDEBUG
|
||||||
|
@ -55,7 +58,6 @@ BEGIN_DUKE_NS
|
||||||
|
|
||||||
vmstate_t vm;
|
vmstate_t vm;
|
||||||
|
|
||||||
FString C_CON_GetBoundKeyForLastInput(int gameFunc);
|
|
||||||
|
|
||||||
|
|
||||||
#if !defined LUNATIC
|
#if !defined LUNATIC
|
||||||
|
@ -3669,7 +3671,7 @@ badindex:
|
||||||
VM_ASSERT((unsigned)quoteIndex < MAXQUOTES && apStrings[quoteIndex], "invalid quote %d\n", quoteIndex);
|
VM_ASSERT((unsigned)quoteIndex < MAXQUOTES && apStrings[quoteIndex], "invalid quote %d\n", quoteIndex);
|
||||||
VM_ASSERT((unsigned)gameFunc < NUMGAMEFUNCTIONS, "invalid function %d\n", gameFunc);
|
VM_ASSERT((unsigned)gameFunc < NUMGAMEFUNCTIONS, "invalid function %d\n", gameFunc);
|
||||||
|
|
||||||
auto bindings = Bindings.GetKeysForCommand(buttonMap.GetButtonAlias(gameFunc));
|
auto bindings = Bindings.GetKeysForCommand(C_CON_GetButtonFunc(gameFunc));
|
||||||
if ((unsigned)funcPos >= bindings.Size()) funcPos = 0;
|
if ((unsigned)funcPos >= bindings.Size()) funcPos = 0;
|
||||||
Bstrcpy(apStrings[quoteIndex], KB_ScanCodeToString(bindings[funcPos]));
|
Bstrcpy(apStrings[quoteIndex], KB_ScanCodeToString(bindings[funcPos]));
|
||||||
dispatch();
|
dispatch();
|
||||||
|
|
|
@ -3305,9 +3305,13 @@ MNU_DoSlider(short dir, MenuItem_p item, SWBOOL draw)
|
||||||
|
|
||||||
case sldr_joyaxisanalog:
|
case sldr_joyaxisanalog:
|
||||||
{
|
{
|
||||||
const char *p;
|
#if 0
|
||||||
|
const char *p;
|
||||||
|
|
||||||
barwidth = MNU_ControlAxisOffset(analog_maxtype);
|
barwidth = MNU_ControlAxisOffset(analog_maxt
|
||||||
|
|
||||||
|
|
||||||
|
ype);
|
||||||
offset = slidersettings[item->slider] + dir;
|
offset = slidersettings[item->slider] + dir;
|
||||||
|
|
||||||
if (TEST(item->flags, mf_disabled))
|
if (TEST(item->flags, mf_disabled))
|
||||||
|
@ -3327,6 +3331,7 @@ MNU_DoSlider(short dir, MenuItem_p item, SWBOOL draw)
|
||||||
while (*p != 0 && *p != '_') p++;
|
while (*p != 0 && *p != '_') p++;
|
||||||
if (*p == '_') p++;
|
if (*p == '_') p++;
|
||||||
MNU_DrawSmallString(OPT_XSIDE+tilesiz[pic_slidelend].x+tilesiz[pic_sliderend].x+(barwidth+1)*tilesiz[pic_slidebar].x, item->y+4, p, 1, 16);
|
MNU_DrawSmallString(OPT_XSIDE+tilesiz[pic_slidelend].x+tilesiz[pic_sliderend].x+(barwidth+1)*tilesiz[pic_slidebar].x, item->y+4, p, 1, 16);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,9 @@ No files,MNU_NOFILES,,,,Žádné soubory,Keine Dateien,,Neniuj dosieroj,Sin arch
|
||||||
",Deseja mesmo apagar o jogo,,"Вы действительно хотите удалить сохранение
|
",Deseja mesmo apagar o jogo,,"Вы действительно хотите удалить сохранение
|
||||||
",Да ли стварно желите да избришете сачувану игру
|
",Да ли стварно желите да избришете сачувану игру
|
||||||
,,,,,,,,,,,,,,,,,,,,,,,
|
,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Off,OPTVAL_OFF,,,,Vyp,Aus,,Malaktiva,Desactivado,,Pois,,,Disattivo,オフ,끔,Uit,Wyłączone,Desligado,,,Откл.,Искљ.
|
||||||
|
On,OPTVAL_ON,,,,Zap,An,,Aktiva,Activado,,Päällä,,,Attivo,オン,켬,Aan,Włączone,Ligado,,,Вкл.,Укљ.
|
||||||
|
Auto,OPTVAL_AUTO,,,,,,,Aŭtomata,Automático,,Automaattinen,,,Automatico,自動,자동,,Automatycznie,Automático,,,Авто,Аутоматски
|
||||||
Options,OPTMNU_TITLE,,,,Možnosti,Optionen,,Agordoj,Opciones,,Asetukset,Options,Beállítások,Opzioni,オプション,설정,Opties,Opcje,Opções,,,Настройки,Подешавања
|
Options,OPTMNU_TITLE,,,,Možnosti,Optionen,,Agordoj,Opciones,,Asetukset,Options,Beállítások,Opzioni,オプション,설정,Opties,Opcje,Opções,,,Настройки,Подешавања
|
||||||
Customize Controls,OPTMNU_CONTROLS,,,,Nastavení ovládání,Steuerung einstellen,,Agordi Regilojn,Personalizar Controles,,Ohjausasetukset,Modifier les Contrôles,Irányítás testreszabása,Personalizza i controlli,キー配置変更,조작 사용자 지정,Instellen van de controle,Ustaw Klawisze,Configurar Controles,Configurar Controlos,,Управление,Контроле
|
Customize Controls,OPTMNU_CONTROLS,,,,Nastavení ovládání,Steuerung einstellen,,Agordi Regilojn,Personalizar Controles,,Ohjausasetukset,Modifier les Contrôles,Irányítás testreszabása,Personalizza i controlli,キー配置変更,조작 사용자 지정,Instellen van de controle,Ustaw Klawisze,Configurar Controles,Configurar Controlos,,Управление,Контроле
|
||||||
Mouse Options,OPTMNU_MOUSE,,,,Nastavení myši,Mauseinstellungen,,Musagordoj,Opciones de Ratón,,Hiiriasetukset,Options de la Souris,Egér beállítások,Opzioni Mouse,マウス オプション,마우스 설정,Muis opties,Opcje Myszki,Opções de mouse,Opções do rato,,Мышь,Миш
|
Mouse Options,OPTMNU_MOUSE,,,,Nastavení myši,Mauseinstellungen,,Musagordoj,Opciones de Ratón,,Hiiriasetukset,Options de la Souris,Egér beállítások,Opzioni Mouse,マウス オプション,마우스 설정,Muis opties,Opcje Myszki,Opções de mouse,Opções do rato,,Мышь,Миш
|
||||||
|
@ -231,3 +234,88 @@ Set video mode,OPTMNU_VIDEO,,,,Nastavit režim displeje,Videomodus,,Agordi video
|
||||||
Reset to defaults,OPTMNU_DEFAULTS,,,,Obnovit původní,Auf Vorgaben zurücksetzen,,Reŝanĝi al defaŭltoj,Valores por Defecto,,Palauta oletusasetukset,Réinitialiser les paramètres,Alapértelmezett beállítások használata,Reimposta ai valori di default,初期設定に戻す,초기화,Terugzetten naar standaardinstellingen,Resetuj do domyślnych,Redefinir para configurações padrão,,,Сбросить все настройки,Врати подразумевано
|
Reset to defaults,OPTMNU_DEFAULTS,,,,Obnovit původní,Auf Vorgaben zurücksetzen,,Reŝanĝi al defaŭltoj,Valores por Defecto,,Palauta oletusasetukset,Réinitialiser les paramètres,Alapértelmezett beállítások használata,Reimposta ai valori di default,初期設定に戻す,초기화,Terugzetten naar standaardinstellingen,Resetuj do domyślnych,Redefinir para configurações padrão,,,Сбросить все настройки,Врати подразумевано
|
||||||
Reset to last saved,OPTMNU_RESETTOSAVED,,,,Obnovit naposledy uložené,Auf gespeicherte Werte zurücksetzen,,Reŝanĝi al lasta konservo,Últimos Valores Guardados,,Palauta viimeksi tallennettu tila,Recharger dernière config.,Legutóbbi mentett beállítások használata,Reimposta ai valori salvati l'ultima volta,最後に保存した設定に戻す,이전 설정으로 초기화,Reset naar laatste opgeslagen,Resetuj do ostatnio zapisanych,Redefinir para última configuração salva,Redefinir para última configuração gravada,,Вернуть предыдущие настройки,Врати задње сачувано
|
Reset to last saved,OPTMNU_RESETTOSAVED,,,,Obnovit naposledy uložené,Auf gespeicherte Werte zurücksetzen,,Reŝanĝi al lasta konservo,Últimos Valores Guardados,,Palauta viimeksi tallennettu tila,Recharger dernière config.,Legutóbbi mentett beállítások használata,Reimposta ai valori salvati l'ultima volta,最後に保存した設定に戻す,이전 설정으로 초기화,Reset naar laatste opgeslagen,Resetuj do ostatnio zapisanych,Redefinir para última configuração salva,Redefinir para última configuração gravada,,Вернуть предыдущие настройки,Врати задње сачувано
|
||||||
Go to console,OPTMNU_CONSOLE,,,,Jít do konzole,Öffne Konsole,,Iri al konzolo,Ir a la consola,,Mene konsoliin,Ouvrir la console,Konzol megnyitása,Vai alla console,コンソールを開く,콘솔로 이동,Ga naar de console,Przejdź do konsoli,Abrir console,Abrir consola,,Открыть консоль,Отвори конзолу
|
Go to console,OPTMNU_CONSOLE,,,,Jít do konzole,Öffne Konsole,,Iri al konzolo,Ir a la consola,,Mene konsoliin,Ouvrir la console,Konzol megnyitása,Vai alla console,コンソールを開く,콘솔로 이동,Ga naar de console,Przejdź do konsoli,Abrir console,Abrir consola,,Открыть консоль,Отвори конзолу
|
||||||
|
,Controls submenu,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
"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,
|
||||||
|
Appuyez sur ECHAP pour annuler.","Nyomj meg egy gombot, ESC a törléshez","Premi un nuovo tasto per il controllo, ESC per cancellare","登録したいキーを押すか, Escでキャンセル","명령을 얽으려면 아무 키를, 취소는 ESC키를 누르시오","Druk op de nieuwe toets voor controle, ESC om te annuleren.","Wciśnij nowy przycisk by zmienić klawisz, ESC by anulować","Aperte a nova tecla para o comando, ESC para cancelar","Carrega a nova tecla para o comando, ESC para cancelar",,"Нажмите клавишу управления, ESC для отмены","Притисните ново тастер за одређивање контроле, ESC за отказивање"
|
||||||
|
Controls,CNTRLMNU_CONTROLS,,,,Ovládání,Steuerung,,Regiloj,Controles,,Ohjaimet,Contrôles,Irányítás,Controlli,操作系統,조작,Bedieningselementen,Klawisze,Comandos,Controlos,,Управление,Контроле
|
||||||
|
Fire,CNTRLMNU_ATTACK,,,,Střelba,Feuer,,Pafi,Fuego,,Tuli,Tirer,Tűz,Fuoco,撃つ,공격,Vuur,Strzał,Atirar,,,Атака,Нападни
|
||||||
|
Secondary Fire,CNTRLMNU_ALTATTACK,,,,Sekundární střelba,Alternativfeuer,,Duaranga Pafi,Fuego secundario,,Vaihtoehtoistuli,Tir Secondaire,Másodlagos tüzelés,Fuoco secondario,セカンダリ,보조 공격,Secundaire vuur,Strzał Alternatywny,Tiro Secundário,,,Вторичная атака,Секундарни напад
|
||||||
|
Alternative Weapon,CNTRLMNU_ALTWEAPON,,,,,Alternative Waffe,,,,,,,,,,,,,,,,,
|
||||||
|
Use / Open,CNTRLMNU_USE,,,,Použít / otevřít,Benutzen / Öffnen,,Uzi / Malfermi,Usar / Abrir,,Käytä / Avaa,Utiliser/Ouvrir,Használ / Ajtónyitás,Usa / Apri,開く / スイッチ等使用,사용/열기,Gebruik / Openen,Użyj / Otwórz,Usar / Abrir,,,Использовать/открыть,Користи / Отвори
|
||||||
|
Move forward,CNTRLMNU_FORWARD,,,,Pohyb vpřed,Vorwärts bewegen,,Movi anatŭe,Avanzar,,Liiku eteenpäin,Avancer,Előre mozgás,Movimento in Avanti,前進,앞으로 이동,Voorwaarts bewegen,Idź do przodu,Mover para frente,,,Движение вперёд,Крећи се напред
|
||||||
|
Move backward,CNTRLMNU_BACK,,,,Pohyb vzad,Rückwarts bewegen,,Movi malantaŭe,Retroceder,,Liiku taaksepäin,Reculer,Hátra mozgás,Movimento in Indietro,後退,뒤로 이동,Achteruit bewegen,Idź do tyłu,Mover para trás,,,Движение назад,Крећи се уназад
|
||||||
|
Strafe left,CNTRLMNU_MOVELEFT,,,,Pohyb doleva,Nach links bewegen,,Flankmovi maldekstre,Moverse a la izquierda,,Astu sivuun vasemmalle,Aller à Gauche,Balra oldalazás,Movimento laterale a sinistra,左移動,왼쪽으로 이동,Verplaats naar links,Unik w lewo,Mover para a esquerda,,,Движение влево,Крећи се лево
|
||||||
|
Strafe right,CNTRLMNU_MOVERIGHT,,,,Pohyb doprava,Nach rechts bewegen,,Flankmovi dekstre,Moverse a la derecha,,Astu sivuun oikealle,Aller à Droite,Jobbra oldalazás,Movimento laterale a destra,右移動,오른쪽으로 이동,Verplaats naar rechts,Unik w prawo,Mover para a direita,,,Движение вправо,Крећи се десно
|
||||||
|
Turn left,CNTRLMNU_TURNLEFT,,,,Otočení vlevo,Nach links drehen,,Turni maldekstre,Girar a la izquierda,,Käänny vasemmalle,Tourner à Gauche,Balra fordul,"Gira a sinistra
|
||||||
|
",左を向く,왼쪽으로 회전,Draai naar links,Obróć się w lewo,Girar para a esquerda,,,Поворот налево,Окрени се лево
|
||||||
|
Turn right,CNTRLMNU_TURNRIGHT,,,,Otočení vpravo,Nach rechts drehen,,Turni dekstre,Girar a la derecha,,Käänny oikealle,Tourner à Droite,Jobbra fordul,Gira a destra,右を向く,오른쪽으로 회전,Draai naar rechts,Obróć się w prawo,Girar para a direita,,,Поворот направо,Окрени се десно
|
||||||
|
Quick Turn,CNTRLMNU_TURN180,,,,Rychlé otočení,Schnelle Drehung,,Rapida turno,Giro rápido,,Pikakäännös,Faire un 180,Megfordulás,Rotazione rapida,背後を向く,빠른 회전,Snelle draai,Nagły Obrót,Giro rápido,,,Быстрый разворот,Брзи окрет
|
||||||
|
Jump,CNTRLMNU_JUMP,,,,Skok,Springen,,Salti,Saltar,,Hyppää,Sauter,Ugrás,Salta,ジャンプ,점프,Springen,Skok,Pular,Saltar,,Прыжок,Скок
|
||||||
|
Crouch,CNTRLMNU_CROUCH,,,,Kleknutí,Ducken,,Kaŭri,Agacharse,,Kyyristy,S'accroupir (tenir),Guggolás,Abbassati,屈む,숙이기,Hurken,Kucnięcie,Agachar,,,Приседание,Чучни
|
||||||
|
Crouch Toggle,CNTRLMNU_TOGGLECROUCH,,,,Zap. / Vyp. kleknutí,Ducken an/aus,,Kaŭrbaskulo,Alternar agachado,,Kyyristymisen vaihtokytkin,S'accroupir (alterner),Guggolási kapcsoló,Toggle abbassamento,屈む切替,숙이기 토글,Hurken Toggle,Włącz / Wyłącz kucnięcie,Agachar (Liga/Desliga),,,Сесть/встать,Чучни (без држања)
|
||||||
|
Mouse look,CNTRLMNU_MOUSELOOK,,,,Pohled myší,Maus-Blick,,Musilregardo,Vista con ratón,,Hiirikatselu,Vue à la souris,Egérrel való nézelődés,Modalità vista col mouse,マウス視点上下化,마우스 룩,Muis-look,Rozglądanie się myszką,Vista com o mouse,Vista com o rato,,Обзор мышью,Гледај мишем
|
||||||
|
Look up,CNTRLMNU_LOOKUP,,,,Pohled vzhůru,Nach oben schauen,,Rigardi supre,Mirar arriba,,Katso ylös,Regarder en haut,Felfele nézés,Guarda sopra,視点を上げる,위로 보기,Kijk omhoog,Patrz w górę,Olhar para cima,,,Смотреть вверх,Гледај горе
|
||||||
|
Look down,CNTRLMNU_LOOKDOWN,,,,Pohled dolů,Nach unten schauen,,Rigardi malsupre,Mirar abajo,,Katso alas,Regarder en bas,Lefele nézés,Guarda sotto,視点を下げる,아래로 보기,Kijk naar beneden,Patrz w dół,Olhar para baixo,,,Смотреть вниз,Гледај доле
|
||||||
|
Center view,CNTRLMNU_CENTERVIEW,,,Centre view,Vystředit pohled,Ansicht zentrieren,,Centra vidon,Centrar vista,,Keskitä katse,Recentrer Vue,Nézet középreigazítása,Sguardo centrato,視点を戻す,중앙 시점으로 보기,Middenaanzicht,Wyśrodkuj widok,Olhar para o centro,,,Отцентрировать взгляд,Централизирај поглед
|
||||||
|
Run,CNTRLMNU_RUN,,,,Běh,Rennen,,Kuri,Correr,,Juokse,Courir (tenir),Futás,Corri,駆け足,달리기,Rennen,Bieg,Correr,,,Бег,Трчи
|
||||||
|
Toggle Run,CNTRLMNU_TOGGLERUN,,,,Zap. / Vyp. běh,Rennen an/aus,,Baskulkuri,Alternar Correr,,Juoksun vaihtokytkin,Courir (alterner),Futás kapcsoló,Toggle corsa,常時駆け足切替,달리기 토글,Rennen aan/uit,Włącz / Wyłącz bieg,Correr (Liga/Desliga),,,Бежать/идти,Трчи (без држања)
|
||||||
|
Strafe,CNTRLMNU_STRAFE,,,,Pohyb vlevo/vpravo,Seitwärts,,Flankmovi,Desplazamiento,,Astu sivuttain,Pas de côté,,Spostamento laterale,横移動化,양옆으로 이동,Zijdelings bewegen,Uniki,Deslocamento lateral,,,Движение боком,Кретање у страну
|
||||||
|
Show Scoreboard,CNTRLMNU_SCOREBOARD,,,,Zobrazit tabulku skóre,Punktetafel anzeigen,,Montri poentartabulon,Mostrar Marcador,,Näytä pistetaulu,Afficher Scores (tenir),Eredményjelző megjelenítése,Mostra la tabella punteggio,スコアボード表示,점수창 표시,Scorebord tonen,Pokaż tablicę wyników,Mostrar pontuação,,,Таблица очков,Табела
|
||||||
|
Action,CNTRLMNU_ACTION,,,,Akce,Aktion,,Ago,Acción,,Toiminta,,Akció,Azione,アクション,동작,Actie,Akcja,Ação,,,Основное,Радња
|
||||||
|
Customize Action Controls,CNTRLMNU_ACTION_TITLE,,,,Nastavit ovládání akcí,Aktions-Steuerung einstellen,,Agordi Agajn Regilojn,Controles de Acción,,Toimintaohjausasetukset,Changer Contrôles Action,Akció beállítások testreszabása,Personalizza i controlli di azione,アクション操作設定,사용자 지정 동작 컨트롤,Aanpassen van de actiecontroles,Ustaw Klawisze Akcji,Configurar Comandos de Ação,Configurar Controlos de Ação,,Основные клавиши управления,Контроле радње
|
||||||
|
Say,CNTRLMNU_SAY,,,,Říct,Reden,,Diro,Hablar,,Sano,Parler,Üzenet ,Parla,発言,채팅하기,Zeg,Powiedz,Fala,Falar,,Сообщение,Пиши
|
||||||
|
Customize Chat Controls,CNTRLMNU_CHAT_TITLE,,,,Nastavit ovládání chatu,Chat-Steuerung einstellen,,Agordi Babiladajn Regilojn,Controles de Chat,,Keskusteluohjausasetukset,Changer Contrôles Chat,Chat beállítások testreszabása,Personalizza i controlli della chat,チャット操作設定,사용자 지정 채팅 컨트롤,Chat-controles aanpassen aan uw wensen,Ustaw Klawisze Czatu,Configurar Comandos de Chat,Configurar Controlos de Chat,,Клавиши управления чатом,Контроле ћаскања
|
||||||
|
Customize Weapon Controls,CNTRLMNU_WEAPONS_TITLE,,,,Nastavit ovládání zbraní,Waffen-Steuerung einstellen,,Agordi Armilojn Regilojn,Controles de Armas,,Aseohjausasetukset,Changer Contrôles Armes,Fegyver beállítások testreszabása,Personalizza i controlli delle armi,武器操作設定,사용자 지정 무기 컨트롤,Wapencontroles aanpassen aan uw eigen wensen,Ustaw Klawisze Broni,Configurar Comandos de Arma,Configurar Controlos de Armas,,Клавиши управления оружием,Контроле оружја
|
||||||
|
Customize Inventory Controls,CNTRLMNU_INVENTORY_TITLE,,,,Nastavit ovládání inventáře,Inventar-Steuerung einstellen,,Agordi Inventarajn Regilojn,Controles de Inventario,,Varusteohjausasetukset,Changer Contrôles Inventaires,Eszköztár beállítások testreszabása,Personalizza i controlli dell'inventario,インベントリ操作設定,사용자 지정 인벤토리 컨트롤,Inventariscontroles aanpassen aan uw wensen,Ustaw Klawisze Ekwipunku,Configurar Comandos de Inventário,Configurar Controlos de Inventário,,Клавиши управления инвентарём,Контроле складишта
|
||||||
|
Customize Other Controls,CNTRLMNU_OTHER_TITLE,,,,Nastavit ostatní ovládání,Sonstige Steuerung einstellen,,Agordi Ekstrajn Regilojn,Otros Controles,,Muut ohjausasetukset,Changer Autres Contrôles,Egyéb irányítás testreszabása,Personalizza altri controlli,その他の操作設定,사용자 지정 그 외 컨트롤,Andere bedieningselementen aanpassen,Ustaw Inne Klawisze,Configurar Outros Comandos,Configurar Outros Controlos,,Прочие клавиши,Друге контроле
|
||||||
|
Weapons,CNTRLMNU_WEAPONS,,,,Zbraně,Waffen,,Armiloj,Armas,,Aseet,Armes,Fegyverek,Armi,武器,무기,Wapens,Bronie,Armas,,,Оружие,Оружје
|
||||||
|
Next weapon,CNTRLMNU_NEXTWEAPON,,,,Další zbraň,Nächste Waffe,,Proksima armilo,Arma siguiente,,Seuraava ase,Arme Suivante,Következő fegyver,Arma successiva,次の武器,다음 무기,Volgende wapen,Następna broń,Próxima arma,,,Следующее оружие,Следеће оружје
|
||||||
|
Previous weapon,CNTRLMNU_PREVIOUSWEAPON,,,,Předchozí zbraň,Vorherige Waffe,,Antaŭa armilo,Arma anterior,,Edellinen ase,Arme Précédente,Előző fegyver,Arma precedente,前の武器,이전 무기,Vorige wapen,Poprzednia broń,Arma anterior,,,Предыдущее оружие,Претходно оружје
|
||||||
|
Weapon 1,CNTRLMNU_SLOT1,Todo - make game specific,,,Slot zbraně 1,Waffe 1,,Armingo 1,Ranura de Arma 1,,Aselokero 1,Emplacement D'Arme 1,1. Fegyver,Slot arma 1,武器スロット 1,무기 슬롯 1,Wapenslot 1,Broń 1,Arma 1,,,Оружие 1,Оружје 1
|
||||||
|
Weapon 2,CNTRLMNU_SLOT2,"only show appropriate slots per game
|
||||||
|
",,,Slot zbraně 2,Waffe 2,,Armingo 2,Ranura de Arma 2,,Aselokero 2,Emplacement D'Arme 2,2. Fegyver,Slot arma 2,武器スロット 2,무기 슬롯 2,Wapenslot 2,Broń 2,Arma 2,,,Оружие 2,Оружје 2
|
||||||
|
Weapon 3,CNTRLMNU_SLOT3,,,,Slot zbraně 3,Waffe 3,,Armingo 3,Ranura de Arma 3,,Aselokero 3,Emplacement D'Arme 3,3. Fegyver,Slot arma 3,武器スロット 3,무기 슬롯 3,Wapenslot 3,Broń 3,Arma 3,,,Оружие 3,Оружје 3
|
||||||
|
Weapon 4,CNTRLMNU_SLOT4,,,,Slot zbraně 4,Waffe 4,,Armingo 4,Ranura de Arma 4,,Aselokero 4,Emplacement D'Arme 4,4. Fegyver,Slot arma 4,武器スロット 4,무기 슬롯 4,Wapenslot 4,Broń 4,Arma 4,,,Оружие 4,Оружје 4
|
||||||
|
Weapon 5,CNTRLMNU_SLOT5,,,,Slot zbraně 5,Waffe 5,,Armingo 5,Ranura de Arma 5,,Aselokero 5,Emplacement D'Arme 5,5. Fegyver,Slot arma 5,武器スロット 5,무기 슬롯 5,Wapenslot 5,Broń 5,Arma 5,,,Оружие 5,Оружје 5
|
||||||
|
Weapon 6,CNTRLMNU_SLOT6,,,,Slot zbraně 6,Waffe 6,,Armingo 6,Ranura de Arma 6,,Aselokero 6,Emplacement D'Arme 6,6. Fegyver,Slot arma 6,武器スロット 6,무기 슬롯 6,Wapenslot 6,Broń 6,Arma 6,,,Оружие 6,Оружје 6
|
||||||
|
Weapon 7,CNTRLMNU_SLOT7,,,,Slot zbraně 7,Waffe 7,,Armingo 7,Ranura de Arma 7,,Aselokero 7,Emplacement D'Arme 7,7. Fegyver,Slot arma 7,武器スロット 7,무기 슬롯 7,Wapenslot 7,Broń 7,Arma 7,,,Оружие 7,Оружје 7
|
||||||
|
Weapon 8,CNTRLMNU_SLOT8,,,,Slot zbraně 8,Waffe 8,,Armingo 8,Ranura de Arma 8,,Aselokero 8,Emplacement D'Arme 8,8. Fegyver,Slot arma 8,武器スロット 8,무기 슬롯 8,Wapenslot 8,Broń 8,Arma 8,,,Оружие 8,Оружје 8
|
||||||
|
Weapon 9,CNTRLMNU_SLOT9,,,,Slot zbraně 9,Waffe 9,,Armingo 9,Ranura de Arma 9,,Aselokero 9,Emplacement D'Arme 9,9. Fegyver,Slot arma 9,武器スロット 9,무기 슬롯 9,Wapenslot 9,Broń 9,Arma 9,,,Оружие 9,Оружје 9
|
||||||
|
Weapon 10,CNTRLMNU_SLOT0,,,,Slot zbraně 10,Waffe 10,,Armingo 0,Ranura de Arma 0,,Aselokero 0,Emplacement D'Arme 0,0. Fegyver,Slot arma 0,武器スロット 0,무기 슬롯 0,Wapenslot 0,Broń 10,Arma 0,,,Оружие 0,Оружје 0
|
||||||
|
Inventory,CNTRLMNU_INVENTORY,,,,Inventář,Inventar,,Inventaro,Inventario,,Varusteet,Inventaire,Eszköztár beállítások testreszabása,Inventario,所持品,인벤토리,Inventaris,Ekwipunek,Inventário,,,Инвентарь,Инвентар
|
||||||
|
Activate item,CNTRLMNU_USEITEM,,,,Aktivovat předmět,Gegenstand aktivieren,,Aktivigi aĵon,Activar objeto,,Aktivoi varuste,Activer objet,Eszköz használata,Attiva oggetto,アイテムを使用,선택한 아이템 사용,Item activeren,Użyj przedmiot,Ativar item,,,Использовать предмет,Активирај предмет
|
||||||
|
Activate all items,CNTRLMNU_USEALLITEMS,,,,Aktivovat všechny předměty,Alle Gegenstände aktivieren,,Aktivigi ĉiuj aĵojn,Activar todos los objetos,,Aktivoi kaikki varusteet,Activer tous les objets,Minden eszköz használata,Attiva tutti gli oggetti,全てのアイテムを使用,모든 아이템 사용,Activeer alle items,Użyj wszystkie przedmioty,Ativar todos os itens,,,Использовать все предметы,Активирај све предмете
|
||||||
|
Next item,CNTRLMNU_NEXTITEM,,,,Další předmět,Nächster Gegenstand,,Proksima aĵo,Objeto siguiente,,Seuraava varuste,Objet suivant,Következő eszköz,Oggetto successivo,次のアイテム,다음 아이템,Volgende item,Następny przedmiot,Próximo item,,,Следующий предмет,Следећи предмет
|
||||||
|
Previous item,CNTRLMNU_PREVIOUSITEM,,,,Předchozí předmět,Vorheriger Gegenstand,,Antaŭa aĵo,Objeto anterior,,Edellinen varuste,Objet précédent,Előző eszköz,Oggetto precedente,前のアイテム,이전 아이템,Vorige item,Poprzedni przedmiot,Item anterior,,,Предыдущий предмет,Претходни предмет
|
||||||
|
Holster Weapon,CNTRLMNU_HOLSTER,,,,,Waffe wegstecken,,,,,,,,,,,,,,,,,
|
||||||
|
Quick Kick,CNTRLMNU_QUICKKICK,,,,,Schneller Tritt,,,,,,,,,,,,,,,,,
|
||||||
|
Pee,CNTRLMNU_PEE,,,,,Pinkeln,,,,,,,,,,,,,,,,,
|
||||||
|
Proximity Bomb,CNTRLMNU_PROXIMITYBOMBS,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Remote Bomb,CNTRLMNU_REMOTEBOMBS,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Smoke Bomb,CNTRLMNU_SMOKEBOMB,,,,,Rauchbombe,,,,,,,,,,,,,,,,,
|
||||||
|
Gas Bomb,CNTRLMNU_GASBOMB,,,,,Gasgranate,,,,,,,,,,,,,,,,,
|
||||||
|
Flash Bomb,"CNTRLMNU_FLASHBOMB
|
||||||
|
",,,,,Blendgranate,,,,,,,,,,,,,,,,,
|
||||||
|
Caltrops,CNTRLMNU_CALTROPS,,,,,Krähenfüße,,,,,,,,,,,,,,,,,
|
||||||
|
Holo Duke,CNTRLMNU_HOLODUKE,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Jetpack,CNTRLMNU_JETPACK,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Night Vision,CNTRLMNU_NIGHTVISION,,,,,Nachtsichtgerät,,,,,,,,,,,,,,,,,
|
||||||
|
Medkit,CNTRLMNU_MEDKIT,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Steroids,CNTRLMNU_STEROIDS,,,,,Steroide,,,,,,,,,,,,,,,,,
|
||||||
|
Holo Soldier,CNTRLMNU_HOLOSOLDIER,,,,,Holosoldat,,,,,,,,,,,,,,,,,
|
||||||
|
Huey,CNTRLMNU_HUEY,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Bier,CNTRLMNU_BEER,,,,,Bier,,,,,,,,,,,,,,,,,
|
||||||
|
Cow Pie,CNTRLMNU_COWPIE,not translatable,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Yeehaa,CNTRLMNU_YEEHAA,not translatable,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Whiskey,CNTRLMNU_WHISKEY,,,,,Whisky,,,,,,,,,,,,,,,,,
|
||||||
|
Moonshine,CNTRLMNU_MOONSHINE,,,,,Schwarzgebrannter,,,,,,,,,,,,,,,,,
|
||||||
|
Crystal Ball,CNTRLMNU_CRYSTALBALL,,,,,Kristallkugel,,,,,,,,,,,,,,,,,
|
||||||
|
Jump Boots,CNTRLMNU_JUMPBOOTS,,,,,Sprungstiefel,,,,,,,,,,,,,,,,,
|
||||||
|
Beast Vision,CNTRLMNU_BEASTVISION,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Tank Mode,CNTRLMNU_TANKMODE,,,,,Panzermodus,,,,,,,,,,,,,,,,,
|
||||||
|
Smokes,CNTRLMNU_SMOKES,What precisely is this?,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Fire Mission,CNTRLMNU_FIREMISSION,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
Reload,CNTRLMENU_RELOAD,,,,,"Waffe laden
|
||||||
|
",,,,,,,,,,,,,,,,,
|
||||||
|
Radar,CNTRLMENU_RADAR,,,,,,,,,,,,,,,,,,,,,,
|
|
Loading…
Reference in a new issue