Add tutorial button in main menu

As suggested by cheeser0613
This commit is contained in:
Dennis Felsing 2022-03-23 15:43:46 +01:00
parent 535f1eaaaf
commit ebd76d9db5
33 changed files with 573 additions and 271 deletions

View file

@ -873,12 +873,6 @@ Welcome to DDNet
may cause delay
== ﺮﻴﺧﺄﺗ ﺐﺒﺴﻳ
Preinit VBO (iGPUs only)
== Preinit-VBO (iGPUs ﻂﻘﻓ)
Multiple texture units (disable for macOS)
== ﺮﺘﺴﻜﺗ ﻦﻣ ﺮﺜﻛﺍ ( ﺖﻨﻛ ﺍﺫﺍ ﺔﺋﺎﻔﻃﺍ macOS )
UI mouse s.
== ﻮﻴﻨﻣ ﺱﻭﺎﻤﻟﺍ ﺔﻴﺳﺎﺴﺣ
@ -1270,7 +1264,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Sample rate
@ -1335,3 +1341,6 @@ Discord
https://ddnet.tw/discord
==
Tutorial
==

View file

@ -994,18 +994,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1255,6 +1261,9 @@ Learn
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -874,12 +874,6 @@ may cause delay
Screen
== Ekran
Preinit VBO (iGPUs only)
== Inicijalizuj VBO (samo iGPU-ovi)
Multiple texture units (disable for macOS)
== Više tekturnih jedinica (isljučeno za macOS)
Use high DPI
== Koristi visoki DPI
@ -1195,7 +1189,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Game sound volume
@ -1300,6 +1306,9 @@ https://ddnet.tw/discord
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -905,15 +905,9 @@ Deactivate
Welcome to DDNet
== Bem-vindo ao DDNet
Preinit VBO (iGPUs only)
== Pré-iniciar VNO (iGPU somente)
Activate
== Ativar
Multiple texture units (disable for macOS)
== Várias unidades de textura (desabilite para macOS)
UI mouse s.
== Sens. mouse de UI
@ -1293,9 +1287,6 @@ Windowed borderless
Desktop fullscreen
== Tela cheia de desktop
Use modern OpenGL
== Usar OpenGL moderno
Hookline
== Linha do gancho
@ -1350,8 +1341,26 @@ Config directory
Windowed fullscreen
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Run on join
==
Chat command (e.g. showall 1)
==
Tutorial
==

View file

@ -994,18 +994,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1255,6 +1261,9 @@ Learn
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -882,15 +882,9 @@ Deactivate
Welcome to DDNet
== Benvingut a DDNet
Preinit VBO (iGPUs only)
== Preinicialitzar VBO (iGPUs només)
Activate
== Activar
Multiple texture units (disable for macOS)
== Multiple texture units (disable for macOS)
UI mouse s.
== UI mouse s.
@ -1176,9 +1170,6 @@ Windowed borderless
Desktop fullscreen
== Pantalla completa d'escriptori
Use modern OpenGL
== Utilitzar OpenGL modern
Game sound volume
== Volum del so del joc
@ -1327,8 +1318,26 @@ Config directory
Windowed fullscreen
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Run on join
==
Chat command (e.g. showall 1)
==
Tutorial
==

View file

@ -994,18 +994,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1255,6 +1261,9 @@ Learn
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -867,12 +867,6 @@ may cause delay
Screen
== Obrazovka
Preinit VBO (iGPUs only)
== Preinit VBO (pouze iGPU)
Multiple texture units (disable for macOS)
== Více texturových jednotek (deaktivovat pro macOS)
Use high DPI
== Použít vysoké DPI
@ -1283,7 +1277,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Show client IDs
@ -1342,3 +1348,6 @@ Discord
https://ddnet.tw/discord
==
Tutorial
==

View file

@ -920,12 +920,6 @@ may cause delay
Screen
== Skærm
Preinit VBO (iGPUs only)
== Præinit VBO (iGPUs alene)
Multiple texture units (disable for macOS)
== Flere teksturenheder (deaktiver for macOS)
Use high DPI
== Brug højt DPI
@ -1281,7 +1275,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Show client IDs
@ -1340,3 +1346,6 @@ Discord
https://ddnet.tw/discord
==
Tutorial
==

View file

@ -888,12 +888,6 @@ may cause delay
Screen
== Scherm
Preinit VBO (iGPUs only)
== Preinit VBO (alleen iGPUs)
Multiple texture units (disable for macOS)
== Meerdere texture eenheden (uitgeschakeld voor macOS)
Use high DPI
== Gebruik hoge DPI
@ -1227,7 +1221,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Game sound volume
@ -1323,6 +1329,9 @@ https://ddnet.tw/discord
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -940,15 +940,6 @@ may cause delay
Screen
== Näyttö
Use modern OpenGL
== Käytä nykyaikaista OpenGL:ää
Preinit VBO (iGPUs only)
== Esialusta VBO (vain iGPUt)
Multiple texture units (disable for macOS)
== Monta tekstuuriyksikköä (älä käytä macOS:ällä)
Use high DPI
== Käytä korkeaa DPI:tä
@ -1274,6 +1265,21 @@ Show entities
Windowed fullscreen
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable long pain sound (used when shooting in freeze)
==
@ -1328,6 +1334,9 @@ Particles
Assets directory
==
Tutorial
==
Server executable not found, can't run server
==

View file

@ -696,9 +696,6 @@ DDNet
Show all
== Montrer tout le monde
Preinit VBO (iGPUs only)
== Préinitialisation VBO (iGPU uniquement)
Vanilla skins only
== Skins par défaut
@ -861,9 +858,6 @@ Remove chat
Markers:
== Marqueurs :
Multiple texture units (disable for macOS)
== Unités de texture multiple (désactivé pour macOS)
Pause
== Pause
@ -1285,9 +1279,6 @@ Windowed borderless
Desktop fullscreen
== Bureau plein écran
Use modern OpenGL
== Utiliser OpenGL moderne
Show client IDs
== Montrer les IDs
@ -1368,3 +1359,21 @@ Join Tutorial Server
Skip Tutorial
== Passer le tutoriel
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Tutorial
==

View file

@ -898,12 +898,6 @@ Welcome to DDNet
may cause delay
== kann verlangsamen
Preinit VBO (iGPUs only)
== Preinit-VBO (nur für iGPUs)
Multiple texture units (disable for macOS)
== Mehrere Textureinheiten (nicht für Mac OS)
UI mouse s.
== UI-Maus-Empf.
@ -1298,9 +1292,6 @@ Windowed borderless
Desktop fullscreen
== Desktop-Vollbild
Use modern OpenGL
== Modernes OpenGL benutzen
Hookline
== Hooklinie
@ -1354,3 +1345,21 @@ Join Tutorial Server
Skip Tutorial
== Tutorial überspringen
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Tutorial
==

View file

@ -994,18 +994,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1255,6 +1261,9 @@ Learn
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -886,18 +886,12 @@ Deactivate
Welcome to DDNet
== Üdvözlet a DDNet-en
Preinit VBO (iGPUs only)
== VBO használata (csak iGPU)
Threaded sound loading
== Csavarmenetes hang betöltése
Activate
== Aktiválás
Multiple texture units (disable for macOS)
== Több textúra egységek (kapcsolja ki macOS esetén)
UI mouse s.
== UI egér sebesség
@ -1232,9 +1226,6 @@ Windowed borderless
Desktop fullscreen
== Asztalos Teljesképernyő
Use modern OpenGL
== Modern OpenGL Használata
Show client IDs
== Kliens ID-k Mutatása
@ -1339,3 +1330,21 @@ Run on join
Chat command (e.g. showall 1)
== Chat parancs (például showall 1)
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Tutorial
==

View file

@ -952,12 +952,6 @@ may cause delay
Screen
== Schermo
Preinit VBO (iGPUs only)
== Preinit VBO (solo iGPU)
Multiple texture units (disable for macOS)
== Unità multiple di texture
Use high DPI
== Usa DPI alti
@ -1311,7 +1305,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Show client IDs
@ -1374,5 +1380,8 @@ Discord
https://ddnet.tw/discord
==
Tutorial
==
FPM
==

View file

@ -946,15 +946,6 @@ may cause delay
Screen
== 画面
Use modern OpenGL
== 最新の OpenGL を使用
Preinit VBO (iGPUs only)
== VBO を事前初期化(統合型グラフィックのみ)
Multiple texture units (disable for macOS)
== 多重テクスチャユニットmacOS 以外)
Use high DPI
== 高 DPI 対応モード
@ -1322,6 +1313,21 @@ Config directory
Windowed fullscreen
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Kill Messages
==
@ -1339,3 +1345,6 @@ Run on join
Chat command (e.g. showall 1)
==
Tutorial
==

View file

@ -958,15 +958,6 @@ may cause delay
Screen
== 화면
Use modern OpenGL
== 최신 OpenGL 사용
Preinit VBO (iGPUs only)
== VBO 사전 초기화 (내장 그래픽만)
Multiple texture units (disable for macOS)
== 다중 텍스처 유닛 (macOS 제외)
Use high DPI
== 높은 DPI 사용
@ -1339,3 +1330,21 @@ CHN
%.2f KiB
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Tutorial
==

View file

@ -985,18 +985,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1246,6 +1252,9 @@ Learn
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -879,12 +879,6 @@ may cause delay
Screen
== Skjerm
Preinit VBO (iGPUs only)
== Preinit. VBO (kun iGPU)
Multiple texture units (disable for macOS)
== Multiple texture units (slå av for macOS)
Use high DPI
== Bruk høy DPI
@ -1282,7 +1276,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Show client IDs
@ -1341,3 +1347,6 @@ Discord
https://ddnet.tw/discord
==
Tutorial
==

View file

@ -983,18 +983,24 @@ may cause delay
FSAA samples
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable long pain sound (used when shooting in freeze)
==
@ -1178,6 +1184,9 @@ https://ddnet.tw/discord
https://wiki.ddnet.tw/
==
Tutorial
==
Server executable not found, can't run server
==

View file

@ -802,9 +802,6 @@ Destination file already exist
Reload
== Przeładuj
Multiple texture units (disable for macOS)
== Jednostki z wieloma teksturami (wyłącz dla macOS)
Replay feature is disabled!
== Funkcja odtwarzania jest wyłączona!
@ -1036,9 +1033,6 @@ Dummy copy
9+ new mentions
== 9+ razy wspomniano o tobie
Preinit VBO (iGPUs only)
== Zainicjuj VBO (tylko iGPU)
Statboard
== Tabela wyników
@ -1283,7 +1277,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Show client IDs
@ -1342,3 +1348,6 @@ Discord
https://ddnet.tw/discord
==
Tutorial
==

View file

@ -985,9 +985,6 @@ Editor
== Editor
[Start menu]
%d new mentions
== %d novas menções
9+ new mentions
== 9+ novas menções
@ -1180,18 +1177,24 @@ Windowed fullscreen
may cause delay
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable long pain sound (used when shooting in freeze)
==
@ -1291,6 +1294,9 @@ Emoticons
Assets directory
==
Tutorial
==
Run server
==
@ -1342,3 +1348,6 @@ Grabs
1 new mention
==
%d new mentions
==

View file

@ -1000,18 +1000,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1261,6 +1267,9 @@ Learn
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -960,12 +960,6 @@ may cause delay
Screen
== Экран
Preinit VBO (iGPUs only)
== Преинициал-ть VBO (только iGPU)
Multiple texture units (disable for macOS)
== Улучш. блоки текстур (откл. для macOS)
Use high DPI
== Использовать высокую чувств.
@ -1291,9 +1285,6 @@ Windowed borderless
Desktop fullscreen
== Полноэкранный
Use modern OpenGL
== Использовать новый OpenGL
Tee
== Tee
@ -1342,8 +1333,26 @@ Config directory
Windowed fullscreen
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Run on join
==
Chat command (e.g. showall 1)
==
Tutorial
==

View file

@ -998,18 +998,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1256,6 +1262,9 @@ https://ddnet.tw/discord
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -913,12 +913,6 @@ UI mouse s.
may cause delay
== може проузроковати кашњење
Preinit VBO (iGPUs only)
== Preinit VBO (само у iGPUs)
Multiple texture units (disable for macOS)
== Вишеструке текстурне јединице (угашено за macOS)
Use high DPI
== Користи високи DPI
@ -1265,7 +1259,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Game sound volume
@ -1339,3 +1345,6 @@ Discord
https://ddnet.tw/discord
==
Tutorial
==

View file

@ -994,18 +994,24 @@ may cause delay
Screen
==
Use modern OpenGL
==
Preinit VBO (iGPUs only)
==
Multiple texture units (disable for macOS)
==
Use high DPI
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Enable game sounds
==
@ -1255,6 +1261,9 @@ Learn
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -887,12 +887,6 @@ may cause delay
Screen
== Pantalla
Preinit VBO (iGPUs only)
== Preinit VBO (solo iGPU)
Multiple texture units (disable for macOS)
== Múltiples unidades de textura (deshabilitar para macOS)
Use high DPI
== Usar DPI alto
@ -1266,9 +1260,6 @@ Windowed borderless
Desktop fullscreen
== Pantalla completa de escritorio
Use modern OpenGL
== Usar OpenGL moderno
Show client IDs
== Mostrar IDs de clientes
@ -1349,3 +1340,21 @@ Skip Tutorial
Windowed fullscreen
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Tutorial
==

View file

@ -864,9 +864,6 @@ Normal message
Show score
== Visa poäng
Multiple texture units (disable for macOS)
== Multiple texture units (avaktivera för macOS)
Refresh Rate
== Uppdateringsfrekvens
@ -966,9 +963,6 @@ Best
Updating...
== Updaterar...
Preinit VBO (iGPUs only)
== Preinit VBO (bara iGPUs)
Clan plates size
== Klanskylt storlek
@ -1243,9 +1237,6 @@ Windowed fullscreen
Desktop fullscreen
== Desktop fullscreen
Use modern OpenGL
== Använd modern OpenGL
Game sound volume
== Spel ljudvolym
@ -1341,3 +1332,21 @@ Join Tutorial Server
Skip Tutorial
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Tutorial
==

View file

@ -885,12 +885,6 @@ may cause delay
Screen
== Ekran
Preinit VBO (iGPUs only)
== Preinit VBO (sadece iGPUs)
Multiple texture units (disable for macOS)
== Çoklu doku birimleri (macOS'da kullanılmaz)
Use high DPI
== Yüksek DPI kullan
@ -1230,7 +1224,19 @@ Windowed fullscreen
Desktop fullscreen
==
Use modern OpenGL
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Game sound volume
@ -1323,6 +1329,9 @@ https://ddnet.tw/discord
https://wiki.ddnet.tw/
==
Tutorial
==
Website
==

View file

@ -868,12 +868,6 @@ may cause delay
Screen
== Екран
Preinit VBO (iGPUs only)
== Preinit VBO (iGPUs only)
Multiple texture units (disable for macOS)
== Декілька текстурних одиниць (вимкнути для macOS)
Use high DPI
== Використовувати високий DPI
@ -1207,9 +1201,6 @@ Windowed borderless
Desktop fullscreen
== Повний робочий стіл
Use modern OpenGL
== Використовувати сучасний OpenGL
Game sound volume
== Гучність звуку гри
@ -1334,8 +1325,26 @@ Config directory
Windowed fullscreen
==
Renderer
==
default
==
custom
==
Graphics cards
==
auto
==
Run on join
==
Chat command (e.g. showall 1)
==
Tutorial
==

View file

@ -2,6 +2,7 @@
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/graphics.h>
#include <engine/keys.h>
#include <engine/serverbrowser.h>
#include <engine/textrender.h>
#include <engine/client/updater.h>
@ -62,6 +63,19 @@ void CMenus::RenderStartMenu(CUIRect MainView)
m_DoubleClickIndex = -1;
}
ExtMenu.HSplitBottom(5.0f, &ExtMenu, 0); // little space
ExtMenu.HSplitBottom(20.0f, &ExtMenu, &Button);
static int s_TutorialButton;
if(DoButton_Menu(&s_TutorialButton, Localize("Tutorial"), 0, &Button, 0, CUI::CORNER_ALL, 5.0f, 0.0f, vec4(0.0f, 0.0f, 0.0f, 0.5f), vec4(0.0f, 0.0f, 0.0f, 0.25f)))
{
const char *pAddr = ServerBrowser()->GetTutorialServer();
if(pAddr)
Client()->Connect(pAddr);
else
dbg_msg("menus", "couldn't find tutorial server");
m_DoubleClickIndex = -1;
}
ExtMenu.HSplitBottom(5.0f, &ExtMenu, 0); // little space
ExtMenu.HSplitBottom(20.0f, &ExtMenu, &Button);
static int s_WebsiteButton;