mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge branch 'master' of git://github.com/oy/teeworlds into DDRace
This commit is contained in:
commit
5ebf60891c
|
@ -1,20 +1,19 @@
|
||||||
|
|
||||||
##### translated strings #####
|
##### translated strings #####
|
||||||
|
|
||||||
%d Bytes
|
%d Bytes
|
||||||
== %d Bytes
|
== %d Bajtova
|
||||||
|
|
||||||
%d of %d servers, %d players
|
%d of %d servers, %d players
|
||||||
== %d od %d server(a), %d igrač(a)
|
== %d od %d server(a), %d igrač(a)
|
||||||
|
|
||||||
%d%% loaded
|
%d%% loaded
|
||||||
== Učitano %d%%
|
== %d%% učitano
|
||||||
|
|
||||||
%ds left
|
%ds left
|
||||||
== Još %ds
|
== Još %ds
|
||||||
|
|
||||||
%i minute left
|
%i minute left
|
||||||
== Još %ds
|
== %i minut preostao
|
||||||
|
|
||||||
%i minutes left
|
%i minutes left
|
||||||
== Preostalo: %i min.
|
== Preostalo: %i min.
|
||||||
|
@ -26,7 +25,7 @@
|
||||||
== Preostalo: %i sek.
|
== Preostalo: %i sek.
|
||||||
|
|
||||||
%s wins!
|
%s wins!
|
||||||
== %s je pobijedio!
|
== %s je pobedio!
|
||||||
|
|
||||||
-Page %d-
|
-Page %d-
|
||||||
== -Strana %d-
|
== -Strana %d-
|
||||||
|
@ -68,7 +67,7 @@ Automatically record demos
|
||||||
== Automatski snimi demo
|
== Automatski snimi demo
|
||||||
|
|
||||||
Automatically take game over screenshot
|
Automatically take game over screenshot
|
||||||
== Automatski napravi screenshot
|
== Automatski snimi screenshot
|
||||||
|
|
||||||
Blue team
|
Blue team
|
||||||
== Plavi tim
|
== Plavi tim
|
||||||
|
@ -104,7 +103,7 @@ Connect
|
||||||
== Konektuj
|
== Konektuj
|
||||||
|
|
||||||
Connecting to
|
Connecting to
|
||||||
== Konektujem na
|
== Konektujem se na
|
||||||
|
|
||||||
Connection Problems...
|
Connection Problems...
|
||||||
== Problemi sa konekcijom...
|
== Problemi sa konekcijom...
|
||||||
|
@ -116,7 +115,7 @@ Controls
|
||||||
== Kontrole
|
== Kontrole
|
||||||
|
|
||||||
Count players only
|
Count players only
|
||||||
== Izbroj samo igrače
|
== Broj samo igrače
|
||||||
|
|
||||||
Country
|
Country
|
||||||
== Država
|
== Država
|
||||||
|
@ -149,7 +148,7 @@ Demofile: %s
|
||||||
== Demo-snimak: %s
|
== Demo-snimak: %s
|
||||||
|
|
||||||
Demos
|
Demos
|
||||||
== Demoi
|
== Demo-i
|
||||||
|
|
||||||
Disconnect
|
Disconnect
|
||||||
== Diskonektuj
|
== Diskonektuj
|
||||||
|
@ -167,7 +166,7 @@ Draw!
|
||||||
== Nerešeno!
|
== Nerešeno!
|
||||||
|
|
||||||
Dynamic Camera
|
Dynamic Camera
|
||||||
== Dinamička kamera
|
== Dinamična kamera
|
||||||
|
|
||||||
Emoticon
|
Emoticon
|
||||||
== Emoticon
|
== Emoticon
|
||||||
|
@ -197,10 +196,10 @@ Filter
|
||||||
== Filter
|
== Filter
|
||||||
|
|
||||||
Fire
|
Fire
|
||||||
== Pucanje
|
== Pucaj
|
||||||
|
|
||||||
Folder
|
Folder
|
||||||
== Direktorijum
|
== Folder
|
||||||
|
|
||||||
Force vote
|
Force vote
|
||||||
== Obavezno glasanje
|
== Obavezno glasanje
|
||||||
|
@ -248,7 +247,7 @@ High Detail
|
||||||
== Visoki detalji
|
== Visoki detalji
|
||||||
|
|
||||||
Hook
|
Hook
|
||||||
== Lanac
|
== Kuka
|
||||||
|
|
||||||
Host address
|
Host address
|
||||||
== Adresa servera
|
== Adresa servera
|
||||||
|
@ -338,10 +337,10 @@ Name
|
||||||
== Ime
|
== Ime
|
||||||
|
|
||||||
Name plates size
|
Name plates size
|
||||||
== Veličina pozadine za ime
|
== Veličina pločice za ime
|
||||||
|
|
||||||
Netversion:
|
Netversion:
|
||||||
== Net-verzija:
|
== Net verzija:
|
||||||
|
|
||||||
New name:
|
New name:
|
||||||
== Novo ime:
|
== Novo ime:
|
||||||
|
@ -368,13 +367,13 @@ No servers match your filter criteria
|
||||||
== Nijedan server ne odgovara zadatom kriteriju
|
== Nijedan server ne odgovara zadatom kriteriju
|
||||||
|
|
||||||
Ok
|
Ok
|
||||||
== OK
|
== Ok
|
||||||
|
|
||||||
Open
|
Open
|
||||||
== Otvori
|
== Otvori
|
||||||
|
|
||||||
Parent Folder
|
Parent Folder
|
||||||
== Prethodni direktorijum
|
== Prethodni folder
|
||||||
|
|
||||||
Password
|
Password
|
||||||
== Lozinka
|
== Lozinka
|
||||||
|
@ -458,7 +457,7 @@ Rename
|
||||||
== Preimenuj
|
== Preimenuj
|
||||||
|
|
||||||
Rename demo
|
Rename demo
|
||||||
== Preimenuj demo-snimak
|
== Preimenuj demo
|
||||||
|
|
||||||
Reset filter
|
Reset filter
|
||||||
== Poništi filter
|
== Poništi filter
|
||||||
|
@ -467,7 +466,7 @@ Reset to defaults
|
||||||
== Resetuj podešavanja
|
== Resetuj podešavanja
|
||||||
|
|
||||||
Rifle
|
Rifle
|
||||||
== Laser
|
== Puška
|
||||||
|
|
||||||
Round
|
Round
|
||||||
== Runda
|
== Runda
|
||||||
|
@ -518,7 +517,7 @@ Show chat
|
||||||
== Prikaži chat
|
== Prikaži chat
|
||||||
|
|
||||||
Show friends only
|
Show friends only
|
||||||
== Prikaži isključivo prijatelje
|
== Prikaži samo prijatelje
|
||||||
|
|
||||||
Show ingame HUD
|
Show ingame HUD
|
||||||
== Prikaži HUD
|
== Prikaži HUD
|
||||||
|
@ -548,10 +547,10 @@ Spectate
|
||||||
== Posmatraj
|
== Posmatraj
|
||||||
|
|
||||||
Spectate next
|
Spectate next
|
||||||
== Posmatraj narednog
|
== Posmatraj sledećeg
|
||||||
|
|
||||||
Spectate previous
|
Spectate previous
|
||||||
== Posmatraj prethodnog
|
== Posmatraj prošlog
|
||||||
|
|
||||||
Spectator mode
|
Spectator mode
|
||||||
== Posmatrački mod
|
== Posmatrački mod
|
||||||
|
@ -590,7 +589,7 @@ Texture Compression
|
||||||
== Kompresija tekstura
|
== Kompresija tekstura
|
||||||
|
|
||||||
The audio device couldn't be initialised.
|
The audio device couldn't be initialised.
|
||||||
== Audio-uređaj nije moguće pokrenuti.
|
== Audio uređaj nije moguće pokrenuti.
|
||||||
|
|
||||||
The server is running a non-standard tuning on a pure game type.
|
The server is running a non-standard tuning on a pure game type.
|
||||||
== Server sadrži nestandardna podešavanja.
|
== Server sadrži nestandardna podešavanja.
|
||||||
|
@ -617,13 +616,13 @@ UI Color
|
||||||
== Boja menija
|
== Boja menija
|
||||||
|
|
||||||
Unable to delete the demo
|
Unable to delete the demo
|
||||||
== Demo-snimak nije moguće obrisati
|
== Demo nije moguće obrisati
|
||||||
|
|
||||||
Unable to rename the demo
|
Unable to rename the demo
|
||||||
== Demo-snimak nije moguće preimenovati
|
== Demo nije moguće preimenovati
|
||||||
|
|
||||||
Use sounds
|
Use sounds
|
||||||
== Aktiviraj zvuk
|
== Koristi zvuk
|
||||||
|
|
||||||
Use team colors for name plates
|
Use team colors for name plates
|
||||||
== Koristi timsku boju u prikazu imena
|
== Koristi timsku boju u prikazu imena
|
||||||
|
@ -644,10 +643,10 @@ Vote description:
|
||||||
== Opis glasanja:
|
== Opis glasanja:
|
||||||
|
|
||||||
Vote no
|
Vote no
|
||||||
== Ne
|
== Protiv
|
||||||
|
|
||||||
Vote yes
|
Vote yes
|
||||||
== Da
|
== Za
|
||||||
|
|
||||||
Voting
|
Voting
|
||||||
== Glasanje
|
== Glasanje
|
||||||
|
|
|
@ -2157,7 +2157,7 @@ void CClient::RegisterCommands()
|
||||||
m_pConsole->Register("screenshot", "", CFGFLAG_CLIENT, Con_Screenshot, this, "Take a screenshot");
|
m_pConsole->Register("screenshot", "", CFGFLAG_CLIENT, Con_Screenshot, this, "Take a screenshot");
|
||||||
m_pConsole->Register("rcon", "r", CFGFLAG_CLIENT, Con_Rcon, this, "Send specified command to rcon");
|
m_pConsole->Register("rcon", "r", CFGFLAG_CLIENT, Con_Rcon, this, "Send specified command to rcon");
|
||||||
m_pConsole->Register("rcon_auth", "s", CFGFLAG_CLIENT, Con_RconAuth, this, "Authenticate to rcon");
|
m_pConsole->Register("rcon_auth", "s", CFGFLAG_CLIENT, Con_RconAuth, this, "Authenticate to rcon");
|
||||||
m_pConsole->Register("play", "r", CFGFLAG_CLIENT, Con_Play, this, "Play the file specified");
|
m_pConsole->Register("play", "r", CFGFLAG_CLIENT|CFGFLAG_STORE, Con_Play, this, "Play the file specified");
|
||||||
m_pConsole->Register("record", "?s", CFGFLAG_CLIENT, Con_Record, this, "Record to the file");
|
m_pConsole->Register("record", "?s", CFGFLAG_CLIENT, Con_Record, this, "Record to the file");
|
||||||
m_pConsole->Register("stoprecord", "", CFGFLAG_CLIENT, Con_StopRecord, this, "Stop recording");
|
m_pConsole->Register("stoprecord", "", CFGFLAG_CLIENT, Con_StopRecord, this, "Stop recording");
|
||||||
m_pConsole->Register("add_favorite", "s", CFGFLAG_CLIENT, Con_AddFavorite, this, "Add a server as a favorite");
|
m_pConsole->Register("add_favorite", "s", CFGFLAG_CLIENT, Con_AddFavorite, this, "Add a server as a favorite");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
||||||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||||
#include <algorithm> // sort
|
#include <algorithm> // sort TODO: remove this
|
||||||
|
|
||||||
#include <base/math.h>
|
#include <base/math.h>
|
||||||
#include <base/system.h>
|
#include <base/system.h>
|
||||||
|
@ -26,7 +26,7 @@ class SortWrap
|
||||||
CServerBrowser *m_pThis;
|
CServerBrowser *m_pThis;
|
||||||
public:
|
public:
|
||||||
SortWrap(CServerBrowser *t, SortFunc f) : m_pfnSort(f), m_pThis(t) {}
|
SortWrap(CServerBrowser *t, SortFunc f) : m_pfnSort(f), m_pThis(t) {}
|
||||||
bool operator()(int a, int b) { return (m_pThis->*m_pfnSort)(a, b); }
|
bool operator()(int a, int b) { return (g_Config.m_BrSortOrder ? (m_pThis->*m_pfnSort)(b, a) : (m_pThis->*m_pfnSort)(a, b)); }
|
||||||
};
|
};
|
||||||
|
|
||||||
CServerBrowser::CServerBrowser()
|
CServerBrowser::CServerBrowser()
|
||||||
|
@ -283,27 +283,16 @@ void CServerBrowser::Sort()
|
||||||
|
|
||||||
// sort
|
// sort
|
||||||
if(g_Config.m_BrSort == IServerBrowser::SORT_NAME)
|
if(g_Config.m_BrSort == IServerBrowser::SORT_NAME)
|
||||||
std::sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortCompareName));
|
std::stable_sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortCompareName));
|
||||||
else if(g_Config.m_BrSort == IServerBrowser::SORT_PING)
|
else if(g_Config.m_BrSort == IServerBrowser::SORT_PING)
|
||||||
std::sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortComparePing));
|
std::stable_sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortComparePing));
|
||||||
else if(g_Config.m_BrSort == IServerBrowser::SORT_MAP)
|
else if(g_Config.m_BrSort == IServerBrowser::SORT_MAP)
|
||||||
std::sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortCompareMap));
|
std::stable_sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortCompareMap));
|
||||||
else if(g_Config.m_BrSort == IServerBrowser::SORT_NUMPLAYERS)
|
else if(g_Config.m_BrSort == IServerBrowser::SORT_NUMPLAYERS)
|
||||||
std::sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this,
|
std::stable_sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this,
|
||||||
g_Config.m_BrFilterSpectators ? &CServerBrowser::SortCompareNumPlayers : &CServerBrowser::SortCompareNumClients));
|
g_Config.m_BrFilterSpectators ? &CServerBrowser::SortCompareNumPlayers : &CServerBrowser::SortCompareNumClients));
|
||||||
else if(g_Config.m_BrSort == IServerBrowser::SORT_GAMETYPE)
|
else if(g_Config.m_BrSort == IServerBrowser::SORT_GAMETYPE)
|
||||||
std::sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortCompareGametype));
|
std::stable_sort(m_pSortedServerlist, m_pSortedServerlist+m_NumSortedServers, SortWrap(this, &CServerBrowser::SortCompareGametype));
|
||||||
|
|
||||||
// invert the list if requested
|
|
||||||
if(g_Config.m_BrSortOrder)
|
|
||||||
{
|
|
||||||
for(i = 0; i < m_NumSortedServers/2; i++)
|
|
||||||
{
|
|
||||||
int Temp = m_pSortedServerlist[i];
|
|
||||||
m_pSortedServerlist[i] = m_pSortedServerlist[m_NumSortedServers-i-1];
|
|
||||||
m_pSortedServerlist[m_NumSortedServers-i-1] = Temp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// set indexes
|
// set indexes
|
||||||
for(i = 0; i < m_NumSortedServers; i++)
|
for(i = 0; i < m_NumSortedServers; i++)
|
||||||
|
|
|
@ -212,7 +212,8 @@ void CControls::OnRender()
|
||||||
|
|
||||||
bool CControls::OnMouseMove(float x, float y)
|
bool CControls::OnMouseMove(float x, float y)
|
||||||
{
|
{
|
||||||
if(m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_PAUSED)
|
if((m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_PAUSED) ||
|
||||||
|
(m_pClient->m_Snap.m_SpecInfo.m_Active && m_pClient->m_pChat->IsActive()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_MousePos += vec2(x, y); // TODO: ugly
|
m_MousePos += vec2(x, y); // TODO: ugly
|
||||||
|
|
|
@ -38,11 +38,10 @@ vec4 CMenus::ms_GuiColor;
|
||||||
vec4 CMenus::ms_ColorTabbarInactiveOutgame;
|
vec4 CMenus::ms_ColorTabbarInactiveOutgame;
|
||||||
vec4 CMenus::ms_ColorTabbarActiveOutgame;
|
vec4 CMenus::ms_ColorTabbarActiveOutgame;
|
||||||
vec4 CMenus::ms_ColorTabbarInactive;
|
vec4 CMenus::ms_ColorTabbarInactive;
|
||||||
vec4 CMenus::ms_ColorTabbarActive;
|
vec4 CMenus::ms_ColorTabbarActive = vec4(0,0,0,0.5f);
|
||||||
vec4 CMenus::ms_ColorTabbarInactiveIngame;
|
vec4 CMenus::ms_ColorTabbarInactiveIngame;
|
||||||
vec4 CMenus::ms_ColorTabbarActiveIngame;
|
vec4 CMenus::ms_ColorTabbarActiveIngame;
|
||||||
|
|
||||||
|
|
||||||
float CMenus::ms_ButtonHeight = 25.0f;
|
float CMenus::ms_ButtonHeight = 25.0f;
|
||||||
float CMenus::ms_ListheaderHeight = 17.0f;
|
float CMenus::ms_ListheaderHeight = 17.0f;
|
||||||
float CMenus::ms_FontmodHeight = 0.8f;
|
float CMenus::ms_FontmodHeight = 0.8f;
|
||||||
|
@ -1636,4 +1635,4 @@ int CMenus::DoButton_CheckBox_DontCare(const void *pID, const char *pText, int C
|
||||||
default:
|
default:
|
||||||
return DoButton_CheckBox_Common(pID, pText, "", pRect);
|
return DoButton_CheckBox_Common(pID, pText, "", pRect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1408,6 +1408,7 @@ void CEditor::DoQuadPoint(CQuad *pQuad, int QuadIndex, int V)
|
||||||
m_SelectedPoints |= 1<<V;
|
m_SelectedPoints |= 1<<V;
|
||||||
else
|
else
|
||||||
m_SelectedPoints = 1<<V;
|
m_SelectedPoints = 1<<V;
|
||||||
|
s_Moved = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_SelectedQuad = QuadIndex;
|
m_SelectedQuad = QuadIndex;
|
||||||
|
@ -3863,19 +3864,27 @@ void CEditorMap::DeleteEnvelope(int Index)
|
||||||
for(int j = 0; j < m_lGroups[i]->m_lLayers.size(); ++j)
|
for(int j = 0; j < m_lGroups[i]->m_lLayers.size(); ++j)
|
||||||
if(m_lGroups[i]->m_lLayers[j]->m_Type == LAYERTYPE_QUADS)
|
if(m_lGroups[i]->m_lLayers[j]->m_Type == LAYERTYPE_QUADS)
|
||||||
{
|
{
|
||||||
CLayerQuads *Layer = static_cast<CLayerQuads *>(m_lGroups[i]->m_lLayers[j]);
|
CLayerQuads *pLayer = static_cast<CLayerQuads *>(m_lGroups[i]->m_lLayers[j]);
|
||||||
for(int k = 0; k < Layer->m_lQuads.size(); ++k)
|
for(int k = 0; k < pLayer->m_lQuads.size(); ++k)
|
||||||
{
|
{
|
||||||
if(Layer->m_lQuads[k].m_PosEnv == Index)
|
if(pLayer->m_lQuads[k].m_PosEnv == Index)
|
||||||
Layer->m_lQuads[k].m_PosEnv = -1;
|
pLayer->m_lQuads[k].m_PosEnv = -1;
|
||||||
else if(Layer->m_lQuads[k].m_PosEnv > Index)
|
else if(pLayer->m_lQuads[k].m_PosEnv > Index)
|
||||||
Layer->m_lQuads[k].m_PosEnv--;
|
pLayer->m_lQuads[k].m_PosEnv--;
|
||||||
if(Layer->m_lQuads[k].m_ColorEnv == Index)
|
if(pLayer->m_lQuads[k].m_ColorEnv == Index)
|
||||||
Layer->m_lQuads[k].m_ColorEnv = -1;
|
pLayer->m_lQuads[k].m_ColorEnv = -1;
|
||||||
else if(Layer->m_lQuads[k].m_ColorEnv > Index)
|
else if(pLayer->m_lQuads[k].m_ColorEnv > Index)
|
||||||
Layer->m_lQuads[k].m_ColorEnv--;
|
pLayer->m_lQuads[k].m_ColorEnv--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(m_lGroups[i]->m_lLayers[j]->m_Type == LAYERTYPE_TILES)
|
||||||
|
{
|
||||||
|
CLayerTiles *pLayer = static_cast<CLayerTiles *>(m_lGroups[i]->m_lLayers[j]);
|
||||||
|
if(pLayer->m_ColorEnv == Index)
|
||||||
|
pLayer->m_ColorEnv = -1;
|
||||||
|
if(pLayer->m_ColorEnv > Index)
|
||||||
|
pLayer->m_ColorEnv--;
|
||||||
|
}
|
||||||
|
|
||||||
m_lEnvelopes.remove_index(Index);
|
m_lEnvelopes.remove_index(Index);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue