Merge branch 'develop'

This commit is contained in:
Gymnasiast committed 2025-04-05 20:21:56 +02:00
commit e0d91fa3aa
755 files changed
+72636 -24718

No files matched your search

+2 -2
View File
@@ -69,9 +69,9 @@ set(TITLE_SEQUENCE_VERSION "0.4.14")
set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v${TITLE_SEQUENCE_VERSION}/title-sequences.zip")
set(TITLE_SEQUENCE_SHA1 "6c04781b959b468e1f65ec2d2f21f5aaa5e5724d")
set(OBJECTS_VERSION "1.5.1")
set(OBJECTS_VERSION "1.6.1")
set(OBJECTS_URL "https://github.com/OpenRCT2/objects/releases/download/v${OBJECTS_VERSION}/objects.zip")
set(OBJECTS_SHA1 "e922b9fd779e7752176f1d0d8766c2ee6ad1e41b")
set(OBJECTS_SHA1 "749a9df9ed728676ef7c3b87c8a6b813069476d3")
set(OPENSFX_VERSION "1.0.5")
set(OPENSFX_URL "https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v${OPENSFX_VERSION}/opensound.zip")
+2
View File
@@ -249,6 +249,7 @@ Appreciation for contributors who have provided substantial work, but are no lon
* Brendan Heinonen (staticinvocation)
* (QuestionableDeer)
* David Sungaila (sungaila)
* Garrett Leach (GarrettLeach)
## Toolchain
* (Balletie) - macOS
@@ -270,6 +271,7 @@ Appreciation for contributors who have provided substantial work, but are no lon
* Mithun Hunsur (Philpax)
* (RollingStar)
* (That Human Being)
* Alex Marck (ATMarcks)
## Translation
* Extracting from original files: Ted John (IntelOrca)
-4
View File
@@ -2258,10 +2258,6 @@ STR_3252 :Can’t increase maximum loan size any further!
STR_3253 :Can’t reduce maximum loan size any further!
STR_3254 :Can’t increase interest rate any further!
STR_3255 :Can’t reduce interest rate any further!
STR_3256 :Guests prefer less intense rides
STR_3257 :Select whether guests should generally prefer less intense rides only
STR_3258 :Guests prefer more intense rides
STR_3259 :Select whether guests should generally prefer more intense rides only
STR_3260 :{WINDOW_COLOUR_2}Cash per guest (average):
STR_3261 :{WINDOW_COLOUR_2}Guests initial happiness:
STR_3262 :{WINDOW_COLOUR_2}Guests initial hunger:
+51 -17
View File
@@ -337,8 +337,8 @@ STR_0938 :Modifica l’altura i inclinació del terreny
STR_0939 :Vista subterrània/interior
STR_0940 :Oculta el terreny de base
STR_0941 :Oculta les parets verticals
STR_0942 :Veu a través de les atraccions
STR_0943 :Veu a través de les decoracions
STR_0942 :Mostra a través de les atraccions
STR_0943 :Mostra a través de les decoracions
STR_0944 :Desa
STR_0945 :No desis
STR_0946 :Cancel·la
@@ -746,7 +746,7 @@ STR_1348 :{WINDOW_COLOUR_2}Acceleració màxima vertical positiva: {BLACK}{CO
STR_1349 :{WINDOW_COLOUR_2}Acceleració màxima vertical positiva: {OUTLINE}{RED}{COMMA2DP32} g
STR_1350 :{WINDOW_COLOUR_2}Acceleració màxima vertical negativa: {BLACK}{COMMA2DP32} g
STR_1351 :{WINDOW_COLOUR_2}Acceleració màxima vertical negativa: {OUTLINE}{RED}{COMMA2DP32} g
STR_1352 :{WINDOW_COLOUR_2}Acceleració màxima lateral: {BLACK}{COMMA2DP32}g
STR_1352 :{WINDOW_COLOUR_2}Acceleració màxima lateral: {BLACK}{COMMA2DP32} g
STR_1353 :{WINDOW_COLOUR_2}Acceleració màxima lateral: {OUTLINE}{RED}{COMMA2DP32} g
STR_1354 :{WINDOW_COLOUR_2}Longitud de la caiguda més gran: {BLACK}{LENGTH}
STR_1355 :{WINDOW_COLOUR_2}Caigudes: {BLACK}{COMMA16}
@@ -1248,7 +1248,6 @@ STR_1870 :Nombre de voltes completes
STR_1871 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16}
STR_1873 :{WINDOW_COLOUR_2}Ingressos: {BLACK}{CURRENCY2DP} per hora
STR_1874 :{WINDOW_COLOUR_2}Benefici: {BLACK}{CURRENCY2DP} per hora
STR_1875 :{BLACK} {SPRITE}{BLACK} {STRINGID}
STR_1876 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{251}{19}{00}{00}Inspecciona atraccions
STR_1877 :{WINDOW_COLOUR_2}{INLINE_SPRITE}{252}{19}{00}{00}Repara atraccions
STR_1878 :{WINDOW_COLOUR_2}Inspecciona:
@@ -2169,7 +2168,6 @@ STR_3136 :Avís: Aquest disseny es construirà amb un tipus de vehicle altern
STR_3137 :Trieu decorat proper
STR_3138 :Restableix la selecció
STR_3139 :El cable d’elevació no pot funcionar en aquest mode.
STR_3140 :El cable d’elevació ha de començar immediatament després de l’andana.
STR_3141 :No es pot establir un multicircuit si l’atracció té cable d’elevació.
STR_3142 :{WINDOW_COLOUR_2}Capacitat: {BLACK}{STRINGID}
STR_3143 :Mostra gent al mapa
@@ -2201,7 +2199,7 @@ STR_3188 :Senyals de camí
STR_3189 :Camins (versions clàssiques)
STR_3190 :Extres dels camins
STR_3191 :Grups de decoracions
STR_3192 :Entrada al parc
STR_3192 :Entrades del parc
STR_3193 :Aigua
STR_3195 :Llista de recerques
STR_3196 :{WINDOW_COLOUR_2}Grup de recerca: {BLACK}{STRINGID}
@@ -2264,10 +2262,6 @@ STR_3252 :El préstec màxim no es pot augmentar més!
STR_3253 :El préstec màxim no es pot reduir més!
STR_3254 :La taxa d’interès anual no es pot augmentar més!
STR_3255 :La taxa d’interès anual no es pot reduir més!
STR_3256 :Els visitants prefereixen atraccions menys intenses
STR_3257 :Trieu si els visitants haurien de preferir només les atraccions menys intenses.
STR_3258 :Els visitants prefereixen atraccions més intenses
STR_3259 :Trieu si els visitants haurien de preferir només les atraccions més intenses.
STR_3260 :{WINDOW_COLOUR_2}Efectiu per visitant (mitjana):
STR_3261 :{WINDOW_COLOUR_2}Felicitat inicial dels visitants:
STR_3262 :{WINDOW_COLOUR_2}Gana inicial dels visitants:
@@ -2608,7 +2602,7 @@ STR_5368 :Esborra historial d’accidents
STR_5371 :Selecció d’objectes
STR_5372 :Inverteix el desplaçament amb el ratolí
STR_5373 :Nom {STRINGID}
STR_5374 :Data {STRINGID}
STR_5374 :Data de modificació {STRINGID}
STR_5375 :▲
STR_5376 :▼
STR_5404 :El nom ja existeix.
@@ -3025,7 +3019,7 @@ STR_5907 :Quan s’activa, l’apropament es farà respecte la posició del c
STR_5908 :Permet canvis de tipus de via arbitraris
STR_5909 :Permet canviar el tipus d’atracció lliurement. Pot causar fallades del joc.
STR_5910 :Aplica
STR_5911 :Veu a través dels camins
STR_5911 :Mostra a través dels camins
STR_5912 :Alterna veure a través dels camins
STR_5913 :Xat
STR_5914 :Atracció desconeguda
@@ -3099,7 +3093,7 @@ STR_5981 :No és un cartell
STR_5982 :Tipus de decoració gran: {BLACK}{COMMA16}
STR_5983 :Id de peça d’escenari gran: {BLACK}{COMMA16}
STR_5984 :Camins blocats:
STR_5985 :Nova carpeta
STR_5985 :Carpeta nova
STR_5986 :Escriviu el nom de la carpeta nova
STR_5987 :La carpeta no s’ha pogut crear.
STR_5988 :No hi ha més terrenys a la venda.
@@ -3219,7 +3213,7 @@ STR_6102 :El valor de les atraccions no disminuirà amb el pas del temps, de
STR_6103 :Aquesta opció està desactivada si es juga en xarxa.
STR_6105 :Hipermuntanya russa
STR_6107 :Monster Trucks
STR_6109 :Hiper-Twister
STR_6109 :Muntanya russa Hyper-Twister
STR_6111 :Minimuntanya russa clàssica
STR_6113 :Una muntanya russa alta sense inversions, amb llargues caigudes, alta velocitat, vagons còmodes i amb només unes barres de subjecció.
STR_6115 :Camions 4x4 gegants i autopropulsats que poden pujar per pendents empinades.
@@ -3533,9 +3527,9 @@ STR_6467 :Nàusea: {COMMA2DP32}
STR_6468 :Desconegut/da
STR_6469 :Ajusta una àrea de treball més petita.
STR_6470 :Ajusta una àrea de treball més gran.
STR_6471 :Veu a través de la vegetació
STR_6472 :Veu a través dels vehicles
STR_6473 :Veu a través dels suports
STR_6471 :Mostra a través de la vegetació
STR_6472 :Mostra a través dels vehicles
STR_6473 :Mostra a través dels suports
STR_6474 :Visitants invisibles
STR_6475 :Empleats invisibles
STR_6476 :Vegetació invisible
@@ -3773,3 +3767,43 @@ STR_6707 :(cap de seleccionat)
STR_6708 :Força suau
STR_6709 :Escriviu una força suau entre {COMMA16} i {COMMA16}
STR_6710 :Ordre estable
STR_6711 :Nom de fitxer:
STR_6712 :Desa
STR_6713 :{COMMA32} {STRINGID}
STR_6714 :Nom del fitxer
STR_6715 :Data de modificació
STR_6716 :Mida de fitxer
STR_6717 :Mida de fitxer {STRINGID}
STR_6718 :Animacions de les persones
STR_6719 :Cal triar com a mínim una animació de visitant.
STR_6720 :Cal triar com a mínim una animació de personal de neteja.
STR_6721 :Cal triar com a mínim una animació de mecànic.
STR_6722 :Cal triar com a mínim una animació de guarda de seguretat.
STR_6723 :Cal triar com a mínim una animació d’animador.
STR_6724 :Textos d’escenari
STR_6725 :X:
STR_6726 :Y:
STR_6727 :Dive loop (esquerra)
STR_6728 :Dive Loop (dreta)
STR_6729 :El cable d’elevació ha de començar immediatament després de l’andana o d’un bloc de frens.
STR_6730 :Exporta dades d’emscripten
STR_6731 :Importa dades d’emscripten
STR_6732 :Mostra un botó a la barra d’eines per a girar la vista en sentit antihorari.
STR_6733 :Mostra a través
STR_6734 :Els elements del mapa que estiguin a l’alçària de tall o per sobre d’aquesta es mostren translúcids.
STR_6735 :Vés a la carpeta superior
STR_6736 :Vista prèvia
STR_6737 :No hi ha vista prèvia disponible
STR_6738 :{WINDOW_COLOUR_2}Valoració del parc: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Data: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Efectiu: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Nre. atraccions: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Nre. visitants: {BLACK}{UINT16}
STR_6743 :Clima
STR_6744 :{WINDOW_COLOUR_2}{UINT16} %
STR_6745 :{WINDOW_COLOUR_2}Preferències d’intensitat dels visitants:
STR_6746 :Sense preferències
STR_6747 :Les preferències varien (per defecte)
STR_6748 :Només les atraccions menys intenses
STR_6749 :Només les atraccions més intenses
STR_6750 :Trieu quin tipus d’intensitat d’atraccions han de preferir els visitants nous.
-4
View File
@@ -2260,10 +2260,6 @@ STR_3252 :Nelze zvýšit maximální půjčku!
STR_3253 :Nelze snížit maximální půjčku!
STR_3254 :Nelze zvýšit úrok půjčky!
STR_3255 :Nelze snížit úrok půjčky!
STR_3256 :Návštěvníci preferují mírnější atrakce
STR_3257 :Vyberte, zda návštěvníci mají obecně preferovat jen mírnější atrakce
STR_3258 :Návštěvníci preferují divočejší atrakce
STR_3259 :Vyberte, zda návštěvníci mají obecně preferovat jen divočejší atrakce
STR_3260 :{WINDOW_COLOUR_2}Průměrná hotovost návštěvníků:
STR_3261 :{WINDOW_COLOUR_2}Počáteční nálada návštěvníků:
STR_3262 :{WINDOW_COLOUR_2}Počáteční hlad návštěvníků:
+1 -5
View File
@@ -1740,7 +1740,7 @@ STR_2392 :{BLACK}At opnå en månedlig indkomst fra forlystelser på mindst {
STR_2393 :{BLACK}At have 10 forskellige typer rutschebaner i gang i parken på samme tid, hver med en minimums længde på {LENGTH}, og en spændings vurdering på mindst 7.00
STR_2394 :{BLACK}At færdiggøre alle 5 af de delvist færdige byggede rutschebaner i denne park, design dem til at have at opnå en spændings vurdering på mindst {POP16}{POP16}{COMMA2DP32} hver
STR_2395 :{BLACK}At tilbagebetale dit lån og opnå en park vurdering på mindst {POP16}{POP16}{CURRENCY}
STR_2396 :{BLACK}At opnå en månedlig profit far mad, drikkevarer og merchandise salg på mindst {POP16}{POP16}{CURRENCY}
STR_2396 :{BLACK}At opnå en månedlig profit for mad, drikkevarer og merchandise salg på mindst {POP16}{POP16}{CURRENCY}
STR_2397 :Ingen
STR_2398 :Antal gæster ved en given dato
STR_2399 :Park værdi ved en given dato
@@ -2259,10 +2259,6 @@ STR_3252 :Kan ikke forøge maksimum lånestørrelse yderligere!
STR_3253 :Kan ikke reducere maksimum lånestørrelse yderligere!
STR_3254 :Kan ikke forøge rentesats yderligere!
STR_3255 :Kan ikke reducere rentesats yderligere!
STR_3256 :Gæster foretrækker mindre intense forlystelser
STR_3257 :Vælg om gæster generelt foretrækker mindre intense forlystelser
STR_3258 :Gæster foretrækker mere intense forlystelser
STR_3259 :Vælg om gæster generelt foretrækker mere intense forlystelser
STR_3260 :{WINDOW_COLOUR_2}Penge per gæst (gennemsnit):
STR_3261 :{WINDOW_COLOUR_2}Gæsters start-glæde:
STR_3262 :{WINDOW_COLOUR_2}Gæsters start-sult:
+48 -8
View File
@@ -99,6 +99,8 @@ STR_0094 :Einschienenachterbahn
STR_0095 :Alpenachterbahn
STR_0096 :Klassische Holzachterbahn
STR_0097 :Klassische Stehachterbahn
STR_0098 :LSM-Achterbahn
STR_0099 :Klassische Holztwisterachterbahn
STR_0512 :Eine kompakte Stahlachterbahn mit einem Spirallifthügel und Wagen mit Sitzen in einer Reihe
STR_0513 :Eine Looping-Achterbahn, bei der sich die Fahrgäste in einer stehenden Position befinden
STR_0514 :Die unterhalb der Schiene aufgehängten Züge schwingen in Kurven seitlich aus.
@@ -183,6 +185,8 @@ STR_0604 :Die Fahrgäste fahren in einer Einzelreihe auf einer engen Einschie
STR_0605 :Die Fahrgäste rodeln eine sich schlängelnde Stahlbahn hinunter und bremsen, um ihre Geschwindigkeit zu regulieren
STR_0606 :Eine Holzachterbahn nach älterer Art. Sie ist schnell, rau, laut und gibt einem das Gefühl, außer Kontrolle zu sein, wobei man gelegentlich seitlichen Gs ausgesetzt und häufig „in der Luft“ ist
STR_0607 :Eine intensive Stahl-Looping-Achterbahn älterer Art, bei der die Fahrer im Stehen fahren
STR_0608 :Die Achterbahnzüge werden von linearen Synchronmotoren angetrieben und rasen durch enge Windungen und Kurven
STR_0609 :Eine Holzachterbahn der älteren Bauart mit einer schnellen und ruppigen Fahrt mit Gelenkzügen, viel Zeit „in der Luft“ und einer sich windenden Strecke
STR_0767 :Besucher {INT32}
STR_0768 :Parkpfleger {INT32}
STR_0769 :Mechaniker {INT32}
@@ -2164,7 +2168,6 @@ STR_3136 :Warnung: Dieser Entwurf wird mit einer alternativen Fahrzeugart geb
STR_3137 :Nahe Szenerie auswählen
STR_3138 :Auswahl zurücksetzen
STR_3139 :Kabellift funktioniert nicht in diesem Betriebsmodus
STR_3140 :Kabellifthügel muss direkt nach der Station beginnen
STR_3141 :Mehrere Runden bei Kabellifthügel nicht möglich
STR_3142 :{WINDOW_COLOUR_2}Fassungsvermögen: {BLACK}{STRINGID}
STR_3143 :Personen auf Karte anzeigen
@@ -2196,7 +2199,7 @@ STR_3188 :Fußwegschilder
STR_3189 :Legacy-Fußwege
STR_3190 :Fußwegextras
STR_3191 :Szeneriegruppen
STR_3192 :Parkeingang
STR_3192 :Parkeingänge
STR_3193 :Wasser
STR_3195 :Erfindungsliste
STR_3196 :{WINDOW_COLOUR_2}Forschungsgruppe: {BLACK}{STRINGID}
@@ -2259,10 +2262,6 @@ STR_3252 :Maximales Darlehen kann nicht{NEWLINE}weiter erhöht werden!
STR_3253 :Maximales Darlehen kann nicht{NEWLINE}weiter reduziert werden!
STR_3254 :Zinsrate kann nicht weiter{NEWLINE}erhöht werden!
STR_3255 :Zinsrate kann nicht weiter{NEWLINE}reduziert werden!
STR_3256 :Weniger aufregende Bahnen bevorzugt
STR_3257 :Wählen Sie aus, ob die Besucher im Allgemeinen weniger aufregende{NEWLINE}Bahnen vorziehen
STR_3258 :Aufregendere Bahnen bevorzugt
STR_3259 :Wählen Sie aus, ob die Besucher im Allgemeinen aufregendere{NEWLINE}Bahnen vorziehen
STR_3260 :{WINDOW_COLOUR_2}Durchschnittliches Geld pro Besucher:
STR_3261 :{WINDOW_COLOUR_2}Vergnügen der Besucher zu Beginn:
STR_3262 :{WINDOW_COLOUR_2}Hunger der Besucher zu Beginn:
@@ -2600,7 +2599,7 @@ STR_5368 :Unfallstatus entf.
STR_5371 :Objektauswahl
STR_5372 :Ziehen mit rechter Maustaste umkehren
STR_5373 :Name {STRINGID}
STR_5374 :Datum {STRINGID}
STR_5374 :Änderungsdatum {STRINGID}
STR_5375 :▲
STR_5376 :▼
STR_5404 :Dieser Name existiert bereits
@@ -3591,7 +3590,7 @@ STR_6537 :Normale Fußwege als Warteschlangen erlauben
STR_6538 :Zeigt normale Fußwege in der Warteschlangenliste im Fußwegfenster an
STR_6539 :Bremse geschlossen
STR_6540 :{WINDOW_COLOUR_2}Besonderen Dank an die folgenden Unternehmen für die Gestattung der Verwendung ihrer Abbilder:
STR_6541 :{WINDOW_COLOUR_2}Rocky Mountain Construction Group, Josef Wiegand GmbH & Co. KG
STR_6541 :{WINDOW_COLOUR_2}Rocky Mountain Construction Group, Josef Wiegand GmbH & Co. KG, Intamin Amusement Rides Int. Corp. Est.
STR_6542 :Mitwirkende
STR_6543 :Mitwirkende …
STR_6544 :Darlehen kann nicht negativ sein!
@@ -3760,3 +3759,44 @@ STR_6706 :{WINDOW_COLOUR_2}Aktuelle Bilddatei: {BLACK}{STRING}
STR_6707 :(keine ausgewählt)
STR_6708 :Weiche Stärke
STR_6709 :Weiche Stärke zwischen {COMMA16} und {COMMA16} eingeben
STR_6710 :Stabile Sortierung
STR_6711 :Dateiname:
STR_6712 :Speichern
STR_6713 :{COMMA32} {STRINGID}
STR_6714 :Dateiname
STR_6715 :Änderungsdatum
STR_6716 :Dateigröße
STR_6717 :Dateigröße {STRINGID}
STR_6718 :Besucheranimationen
STR_6719 :Es muss mindestens ein Besucher-Peep-Animationsobjekt ausgewählt sein
STR_6720 :Es muss mindestens ein Parkpfleger-Peep-Animationsobjekt ausgewählt sein
STR_6721 :Es muss mindestens ein Mechaniker-Peep-Animationsobjekt ausgewählt sein
STR_6722 :Es muss mindestens ein Aufseher-Peep-Animationsobjekt ausgewählt sein
STR_6723 :Es muss mindestens ein Entertainer-Peep-Animationsobjekt ausgewählt sein
STR_6724 :Szenariotexte
STR_6725 :X:
STR_6726 :Y:
STR_6727 :Sturzflugschleife (links)
STR_6728 :Sturzflugschleife (rechts)
STR_6729 :Kabellifthügel muss direkt nach der Station oder einer Blockbremse beginnen
STR_6730 :Emscripten-Daten exportieren
STR_6731 :Emscripten-Daten importieren
STR_6732 :Einen Knopf in der Werkzeugleiste anzeigen, um die Ansicht entgegen dem Uhrzeigersinn zu rotieren
STR_6733 :Durchsichtig
STR_6734 :Kartenelemente, welche sich an oder oberhalb der Schnitthöhe befinden, werden transluzent angezeigt
STR_6735 :Hoch zum übergeordnetem Ordner gehen
STR_6736 :Vorschau
STR_6737 :Keine Vorschau verfügbar
STR_6738 :{WINDOW_COLOUR_2}Parkbewertung: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Datum: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Geld: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Anz. Fahrgeschäfte: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Anz. Besucher: {BLACK}{UINT16}
STR_6743 :Klima
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
STR_6745 :{WINDOW_COLOUR_2}Intensitätspräferenzen der Besucher:
STR_6746 :Keine Präferenzen
STR_6747 :Präferenzen variieren (Standard)
STR_6748 :Nur weniger intensive Fahrgeschäfte
STR_6749 :Nur intensivere Fahrgeschäfte
STR_6750 :Auswählen, welche Art von Fahrgeschäft die neu erzeugten Besucher bevorzugen.
+19 -7
View File
@@ -2260,14 +2260,10 @@ STR_3252 :Can’t increase maximum loan size any further!
STR_3253 :Can’t reduce maximum loan size any further!
STR_3254 :Can’t increase interest rate any further!
STR_3255 :Can’t reduce interest rate any further!
STR_3256 :Guests prefer less intense rides
STR_3257 :Select whether guests should generally prefer less intense rides only
STR_3258 :Guests prefer more intense rides
STR_3259 :Select whether guests should generally prefer more intense rides only
STR_3260 :{WINDOW_COLOUR_2}Cash per guest (average):
STR_3261 :{WINDOW_COLOUR_2}Guests initial happiness:
STR_3262 :{WINDOW_COLOUR_2}Guests initial hunger:
STR_3263 :{WINDOW_COLOUR_2}Guests initial thirst:
STR_3261 :{WINDOW_COLOUR_2}Guests’ initial happiness:
STR_3262 :{WINDOW_COLOUR_2}Guests’ initial hunger:
STR_3263 :{WINDOW_COLOUR_2}Guests’ initial thirst:
STR_3264 :Can’t increase this any further!
STR_3265 :Can’t reduce this any further!
STR_3266 :Select how this park charges for entrance and rides
@@ -3794,3 +3790,19 @@ STR_6732 :Show a button in the toolbar to rotate the view anti-clockwise
STR_6733 :See-Through
STR_6734 :Map elements that are at or above the cutting height are rendered translucent.
STR_6735 :Go up to parent folder
STR_6736 :Preview
STR_6737 :No preview available
STR_6738 :{WINDOW_COLOUR_2}Park rating: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Date: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Cash: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Num. rides: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Num. guests: {BLACK}{UINT16}
STR_6743 :Climate
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
STR_6745 :{WINDOW_COLOUR_2}Guests’ intensity preferences:
STR_6746 :No preferences
STR_6747 :Preferences vary (default)
STR_6748 :Only less intense rides
STR_6749 :Only more intense rides
STR_6750 :Select what kind of ride intensity newly spawned guests prefer.
STR_6751 :Queue paths cannot be used for level crossings!
+7
View File
@@ -231,8 +231,15 @@ STR_6274 :Can’t set color scheme…
STR_6307 :Color scheme: {BLACK}{STRINGID}
STR_6328 :With this option enabled, giant screenshots will have a transparent background instead of the default black color.
STR_6501 :Random color
STR_6529 :Invalid color scheme parameter!
STR_6575 :Allow special color schemes
STR_6576 :Adds special colors to color dropdown
STR_6625 :Invalid color
STR_6629 :Align toolbar buttons horizontally centered
STR_6630 :This setting will align the toolbar buttons horizontally in the center of the screen. The traditional way of aligning them is in the left and right corner.
STR_6661 :Randomize all
STR_6662 :Randomize colors for every train or vehicle
STR_6732 :Show a button in the toolbar to rotate the view counterclockwise
+21 -7
View File
@@ -2260,10 +2260,6 @@ STR_3252 :Ne eblas pliigi maksimuman prunton plu!
STR_3253 :Ne eblas malpliigi maksimuman prunton plu!
STR_3254 :Ne eblas pliigi procenton de interezo plu!
STR_3255 :Ne eblas malpliigi procenton de interezo plu!
STR_3256 :Gastoj preferas malpli intensajn atrakciojn
STR_3257 :Elekti ĉu gastoj kutime preferas nur malpli intensajn atrakciojn
STR_3258 :Gastoj preferas pli intensajn atrakciojn
STR_3259 :Elekti ĉu gastoj kutime preferas nur pli intensajn atrakciojn
STR_3260 :{WINDOW_COLOUR_2}Mono por ĉiu gasto (meznombro):
STR_3261 :{WINDOW_COLOUR_2}Komenca feliĉeco de gastoj:
STR_3262 :{WINDOW_COLOUR_2}Komenca malsateco de gastoj:
@@ -3285,7 +3281,7 @@ STR_6199 :Agordi daton
STR_6200 :Rekomencigi daton
STR_6201 :{MONTH}
STR_6202 :Stilo de virtuala planko:
STR_6203 :Se ŝaltita, virtuala planko bildiĝos per premteni Ctrl aŭ Shift, por faciligi vertikalan lokadon de elementoj.
STR_6203 :Se ŝaltita, virtuala planko bildigos per premteni Ctrl aŭ Shift, por faciligi vertikalan lokadon de elementoj.
STR_6215 :Konstruado
STR_6216 :Funkciado
STR_6217 :Havebleco de atrakcio / trako
@@ -3365,7 +3361,7 @@ STR_6302 :Kopii la tutan liston da mankantaj objektoj al la tondujo.
STR_6303 :Elŝuti objekton ({COMMA16} / {COMMA16}): [{STRING}]
STR_6304 :Malfermi elektilon de pejzaĝo
STR_6305 :Disfadenigo
STR_6306 :Opcio eksperimenta por uzi multoblajn fadenojn por bildiĝi. Povas kaŭzi nestabilecon.
STR_6306 :Opcio eksperimenta por uzi multoblajn fadenojn por bildigi. Povas kaŭzi nestabilecon.
STR_6307 :Kolorskemo: {BLACK}{STRINGID}
STR_6308 :{TOPAZ}“{STRINGID}{OUTLINE}{TOPAZ}”{NEWLINE}{STRINGID}
STR_6309 :Rekonektiĝi
@@ -3788,4 +3784,22 @@ STR_6728 :Plonĝlopo (dekstre)
STR_6729 :Kablolifto-monteto devas komenci tuj post stacio aŭ bremso de blokparto
STR_6730 :Eksporti datumojn de emscripten
STR_6731 :Importi datumojn de emscripten
STR_6732 :Montri butonon en la ilobreto por turni la vidon maldekstrumen
STR_6732 :Montri butonon en la ilobreto por turni la vidon maldekstrumen
STR_6733 :Travideblo
STR_6734 :Mapelementoj ĉe aŭ sub la tranĉita alteco estas bildigitaj travideble.
STR_6735 :Supreniri al patra dosierulo
STR_6736 :Antaŭrigardo
STR_6737 :Neniu antaŭrigardo disponebla
STR_6738 :{WINDOW_COLOUR_2}Pritakso de parko: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Dato: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Mono: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Nombro de atrakcioj: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Nombro de gastoj: {BLACK}{UINT16}
STR_6743 :Klimato
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
STR_6745 :{WINDOW_COLOUR_2}Intenseco-preferoj de gastoj:
STR_6746 :Neniuj preferoj
STR_6747 :Preferoj varias (defaŭlto)
STR_6748 :Nur malpli intensaj atrakcioj
STR_6749 :Nur pli intensaj atrakcioj
STR_6750 :Elekti kian atrakcio-intensecon, ke nove generitaj gastoj preferas.
-4
View File
@@ -2262,10 +2262,6 @@ STR_3252 :¡No se puede incrementar más el préstamo máximo!
STR_3253 :¡No se puede reducir más el préstamo máximo!
STR_3254 :¡No se puede incrementar más la tasa de interés!
STR_3255 :¡No se puede reducir más la tasa de interés!
STR_3256 :Visitantes prefieren atracciones tranquilas
STR_3257 :Los visitantes prefieren atracciones de baja intensidad normalmente
STR_3258 :Visitantes prefieren atracciones intensas
STR_3259 :Los visitantes prefieren atracciones de alta intensidad normalmente
STR_3260 :{WINDOW_COLOUR_2}Efectivo por visitante (media):
STR_3261 :{WINDOW_COLOUR_2}Felicidad inicial de visitantes:
STR_3262 :{WINDOW_COLOUR_2}Hambre inicial de visitantes:
-4
View File
@@ -2264,10 +2264,6 @@ STR_3252 :Enimmäislainamäärää ei voi korottaa enempää!
STR_3253 :Enimmäislainamäärää ei voi laskea enempää!
STR_3254 :Vuosittaiskorkoa ei voi korottaa enempää!
STR_3255 :Vuosittaiskorkoa ei voi laskea enempää!
STR_3256 :Kävijät tykkäävät lempeämmistä laitteista
STR_3257 :Valitse haluavatko kävijät mieluummin mennä vain vähemmän jännittäviin laitteisiin
STR_3258 :Kävijät tykkäävät jännittävimmistä laitteista
STR_3259 :Valitse haluavatko kävijät mieluummin mennä vain kaikista jännittävimpiin laitteisiin
STR_3260 :{WINDOW_COLOUR_2}Kävijöiden varat (keskiarvo):
STR_3261 :{WINDOW_COLOUR_2}Kävijöiden alustava iloisuus:
STR_3262 :{WINDOW_COLOUR_2}Kävijöiden alustava nälkä:
+10 -4
View File
@@ -2267,10 +2267,6 @@ STR_3252 :Impossible d’augmenter davantage l’emprunt maximum !
STR_3253 :Impossible de diminuer davantage l’emprunt maximum !
STR_3254 :Impossible d’augmenter davantage le taux d’intérêt !
STR_3255 :Impossible de diminuer davantage le taux d’intérêt !
STR_3256 :Attr. moins dures pour visiteurs
STR_3257 :Les visiteurs préfèrent des attractions moins intenses
STR_3258 :Attr. plus dures pour visiteurs
STR_3259 :Les visiteurs préfèrent des attractions plus intenses
STR_3260 :{WINDOW_COLOUR_2}Argent par visiteur (en moyenne) :
STR_3261 :{WINDOW_COLOUR_2}Bonheur initial :
STR_3262 :{WINDOW_COLOUR_2}Faim initiale :
@@ -3799,3 +3795,13 @@ STR_6730 :Exporter les données emscripten
STR_6731 :Importer les données emscripten
STR_6732 :Afficher un bouton dans la barre d’outils pour tourner la vue dans le sens inverse des aiguilles d’une montre
STR_6733 :Translucide
STR_6734 :Rend translucides les éléments de carte à la hauteur de coupe ou au-dessus
STR_6735 :Aller au dossier parent
STR_6736 :Aperçu
STR_6737 :Pas d’aperçu disponible
STR_6738 :{WINDOW_COLOUR_2}Évaluation : {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Date : {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Argent : {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Attractions : {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Visiteurs : {BLACK}{UINT16}
+19 -6
View File
@@ -2261,10 +2261,6 @@ STR_3252 :O préstamo máximo non se pode aumentar máis!
STR_3253 :O préstamo máximo non se pode reducir máis!
STR_3254 :O tipo de interese non se pode aumentar máis!
STR_3255 :O tipo de interese non se pode reducir máis!
STR_3256 :Os visitantes prefiren as atraccións tranquilas
STR_3257 :Os visitantes adoitan preferir atraccións de baixa intensidade
STR_3258 :Os visitantes prefiren atraccións intensas
STR_3259 :Os visitantes adoitan preferir atraccións de alta intensidade
STR_3260 :{WINDOW_COLOUR_2}Efectivo por visitante (media):
STR_3261 :{WINDOW_COLOUR_2}Felicidade inicial do visitante:
STR_3262 :{WINDOW_COLOUR_2}Fame inicial do visitante:
@@ -3214,7 +3210,7 @@ STR_6102 :O valor dunha atracción non diminúe co paso do tempo, polo que os
STR_6103 :Esta opción está desactivada durante unha partida multixogador.
STR_6105 :Hiper montaña rusa
STR_6107 :Camións Monstro
STR_6109 :Hyper-Twister
STR_6109 :Montaña Rusa Hiper-Twister
STR_6111 :Mini montaña rusa clásica
STR_6113 :Unha montaña rusa alta e non invertible con grandes caídas, coches de alta velocidade e cómodos con só unhas poucas barras para agarrarse
STR_6115 :Camións 4x4 autopropulsados ​​xigantes que poden escalar outeiros impresionantes
@@ -3769,6 +3765,8 @@ STR_6707 :(Ningún escollido)
STR_6708 :Intensidade de suavizado
STR_6709 :Introduce a intensidade de suavizado entre {COMMA16} e {COMMA16}
STR_6710 :Ordenación estable
STR_6711 :Nome do ficheiro:
STR_6712 :Gardar
STR_6713 :{COMMA32} {STRINGID}
STR_6714 :Nome do ficheiro
STR_6715 :Data de modificación
@@ -3784,5 +3782,20 @@ STR_6724 :Textos do escenario
STR_6725 :X:
STR_6726 :Y:
STR_6727 :Bucle de mergullo (esquerda)
STR_6728 :Loop de mergullo (dereita)
STR_6728 :Bucle de mergullo (dereita)
STR_6729 :A subida da telecadeira debe comezar inmediatamente despois da estación ou do freno de bloqueo
STR_6730 :Exportar datos de Emscripten
STR_6731 :Importar datos de Emscripten
STR_6732 :Amosar un botón na barra de ferramentas para xirar a vista en sentido antihorario
STR_6733 :Translúcido
STR_6734 :Os elementos do mapa que están a altura de corte ou por riba renderízanse translúcidos.
STR_6735 :Sube ao cartafol principal
STR_6736 :Vista previa
STR_6737 :Non hai vista previa dispoñible
STR_6738 :{WINDOW_COLOUR_2}Valoración do parque: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Data: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Efectivo: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Núm. de atraccións: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Núm. de visitantes: {BLACK}{UINT16}
STR_6743 :Clima
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
-4
View File
@@ -2257,10 +2257,6 @@ STR_3252 :A maximum kölcsön összege nem növelhető tovább!
STR_3253 :A maximum kölcsön összege nem csökkenthető tovább!
STR_3254 :A kamatláb nem növelhető tovább!
STR_3255 :A kamatláb nem csökkenthető tovább!
STR_3256 :A vendégek a kevésbé intenzív játékokat részesítik előnyben
STR_3257 :Válaszd ki, hogy a vendégek általában csak a kevésbé intenzív játékokat részesítsék előnyben
STR_3258 :A vendégek az intenzívebb játékokat részesítik előnyben
STR_3259 :Válaszd ki, hogy a vendégek általában csak a intenzívebb játékokat részesítsék előnyben
STR_3260 :{WINDOW_COLOUR_2}Készpénz/vendég (átlagosan):
STR_3261 :{WINDOW_COLOUR_2}Vendégek kezdeti boldogsága:
STR_3262 :{WINDOW_COLOUR_2}Vendégek kezdeti éhsége:
-4
View File
@@ -2261,10 +2261,6 @@ STR_3252 :Impossibile aumentare ulteriormente il prestito massimo!
STR_3253 :Impossibile ridurre ulteriormente il prestito massimo!
STR_3254 :Impossibile aumentare ulteriormente il tasso d’interessi!
STR_3255 :Impossibile ridurre ulteriormente il tasso d’interessi!
STR_3256 :Attrazioni meno intense preferite
STR_3257 :Stabilisci se i visitatori in generale dovrebbero preferire solo le attrazioni meno intense
STR_3258 :Attrazioni più intense preferite
STR_3259 :Stabilisci se i visitatori in generale dovrebbero preferire solo attrazioni più intense
STR_3260 :{WINDOW_COLOUR_2}Denaro per visitatore (media):
STR_3261 :{WINDOW_COLOUR_2}Felicità iniziale visitatori:
STR_3262 :{WINDOW_COLOUR_2}Fame iniziale visitatori:
+1 -5
View File
@@ -1737,7 +1737,7 @@ STR_2391 :{BLACK}パークに少なくとも{COMMA32}ゲストを入れてを
STR_2392 :{BLACK}ライドの月次総収入の{POP16}{POP16}{CURRENCY}を取得する必要があります。
STR_2393 :{BLACK}パークで10タイプのジェットコースターを操作しますし、それぞれ所定の長さの{LENGTH}し, 7.00以上の興奮度が必要です。
STR_2394 :{BLACK}パークであるの5ジェットコースターの建設を仕上げますし、 それぞれ{POP16}{POP16}{COMMA2DP32}以上の興奮度が必要です。
STR_2395 :{BLACK}借金完済を取得するし、パーク評価額{CURRENCY}以上を取得する必要があります。
STR_2395 :{BLACK}借金完済を取得するし、パーク評価額{POP16}{POP16}{CURRENCY}以上を取得する必要があります。
STR_2396 :{BLACK}飲食やお土産の売ることで、月利益を{POP16}{POP16}{CURRENCY}以上を得ります。
STR_2397 :なし
STR_2398 :指定された日付のゲスト数
@@ -2257,10 +2257,6 @@ STR_3252 :これ以上最大ローン額を増やすことはできません!
STR_3253 :これ以上最大ローン額を減らすことはできません!
STR_3254 :これ以上利率を上げることはできません!
STR_3255 :これ以上利率を下げることはできません!
STR_3256 :ゲストは低いライドの強烈度が好きです。
STR_3257 :ゲストは低いライドの強烈度が好きの設定です。
STR_3258 :ゲストは高いライドの強烈度が好きです。
STR_3259 :ゲストは高いライドの強烈度が好きの設定です。
STR_3260 :{WINDOW_COLOUR_2}ゲストの平均所持金:
STR_3261 :{WINDOW_COLOUR_2}ゲストの幸福度 初期値:
STR_3262 :{WINDOW_COLOUR_2}ゲストの空腹度 初期値:
+15 -4
View File
@@ -2264,10 +2264,6 @@ STR_3252 :최대 대출금을 더 늘릴 수 없습니다!
STR_3253 :최대 대출금을 더 줄일 수 없습니다!
STR_3254 :이자율을 더 늘릴 수 없습니다!
STR_3255 :이자율을 더 줄일 수 없습니다!
STR_3256 :손님들이 격렬하지 않은 놀이기구를 선호함
STR_3257 :손님들이 일반적으로 덜 격렬한 놀이기구를 선호하게 만들지를 선택합니다
STR_3258 :손님들이 격렬한 놀이기구를 선호함
STR_3259 :손님들이 일반적으로 더욱 격렬한 놀이기구를 선호하게 만들지를 선택합니다
STR_3260 :{WINDOW_COLOUR_2}각 손님의 보유금 (평균):
STR_3261 :{WINDOW_COLOUR_2}손님의 초기 행복도:
STR_3262 :{WINDOW_COLOUR_2}손님의 초기 배고픔:
@@ -3795,3 +3791,18 @@ STR_6732 :게임 화면을 시계반대방향으로 90° 회전하기
STR_6733 :반투명하게 보기
STR_6734 :해당 높이 또는 그 이상의 위치에 있는 지도 요소를 반투명하게 표시합니다.
STR_6735 :상위 폴더로 이동
STR_6736 :미리보기
STR_6737 :미리보기 없음
STR_6738 :{WINDOW_COLOUR_2}공원 등급: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}날짜: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}재정: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}놀이기구 수: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}손님 수: {BLACK}{UINT16}
STR_6743 :기후
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
STR_6745 :{WINDOW_COLOUR_2}손님 선호 격렬도:
STR_6746 :별도의 선호 격렬도 없음
STR_6747 :다양한 선호도 (기본값)
STR_6748 :얌전한 놀이기구만 선호
STR_6749 :격렬한 놀이기구만 선호
STR_6750 :새로 공원을 찾은 손님이 선호하는 놀이기구 격렬도 종류를 선택하세요.
-4
View File
@@ -2255,10 +2255,6 @@ STR_3252 :Kan ikke øke maksimal lånstørrelse videre!
STR_3253 :Kan ikke senke maksimal lånstørrelse videre!
STR_3254 :Kan ikke øke renter videre!
STR_3255 :Kan ikke senke renter videre!
STR_3256 :Gjester foretrekker mindre intense attraksjoner
STR_3257 :Velg om gjester kun skal generelt foretrekke mindre intense attraksjoner
STR_3258 :Gjester foretrekker mer intense attraksjoner
STR_3259 :Velg om gjester kun skal generelt foretrekke mer intense attraksjoner
STR_3260 :{WINDOW_COLOUR_2}Penger per gjest (gjennomsnitt):
STR_3261 :{WINDOW_COLOUR_2}Gjester's innledende glede:
STR_3262 :{WINDOW_COLOUR_2}Gjester's innledende sult:
+15 -12
View File
@@ -445,9 +445,9 @@ STR_1050 :Kan dit niet laden…{NEWLINE}Bestand bevat ongeldige gegevens!
STR_1051 :Onzichtbare ondersteuningen
STR_1052 :Onzichtbare mensen
STR_1053 :Attracties in park
STR_1054 :Attractienaam
STR_1055 :Persoonsnaam
STR_1056 :Werknemersnaam
STR_1054 :Attractienaam wijzigen
STR_1055 :Naam wijzigen
STR_1056 :Naam wijzigen
STR_1057 :Attractienaam
STR_1058 :Voer een nieuwe naam in voor deze attractie:
STR_1059 :Kan deze attractie geen andere naam geven…
@@ -2128,7 +2128,7 @@ STR_3099 :Kleur selecteren
STR_3100 :Tweede kleur selecteren
STR_3101 :Derde kleur selecteren
STR_3102 :Gekleurd decor opnieuw verven
STR_3103 :Kan dit niet opnieuw verversen…
STR_3103 :Kan dit niet opnieuw verven…
STR_3104 :Toon een lijst van attracties
STR_3105 :Toon een lijst van winkels en kraampjes
STR_3106 :Toon een lijst van informatiekiosken en andere faciliteiten
@@ -2259,10 +2259,6 @@ STR_3252 :Kan de maximumlening niet verder verhogen!
STR_3253 :Kan de maximumlening niet verder verlagen!
STR_3254 :Kan de rente niet verder verhogen!
STR_3255 :Kan de rente niet verder verlagen!
STR_3256 :Bezoekers houden meer van rustigere attracties
STR_3257 :Selecteer of bezoekers in het algemeen meer van rustigere attracties houden
STR_3258 :Bezoekers houden meer van spannende attracties
STR_3259 :Selecteer of bezoekers in het algemeen meer van spannende attracties houden
STR_3260 :{WINDOW_COLOUR_2}Geld per bezoeker (gemiddeld):
STR_3261 :{WINDOW_COLOUR_2}Aanvankelijke stemming bezoekers:
STR_3262 :{WINDOW_COLOUR_2}Aanvankelijke honger bezoekers:
@@ -3737,10 +3733,10 @@ STR_6678 :Bronbestand:
STR_6679 :Vlak land
STR_6680 :Simplex-ruis
STR_6681 :Hoogtekaart
STR_6682 :Mapgenerator - Generator
STR_6683 :Mapgenerator - Terrein
STR_6684 :Mapgenerator - Water
STR_6685 :Mapgenerator - Bossen
STR_6682 :Kaartgenerator - Generator
STR_6683 :Kaartgenerator - Terrein
STR_6684 :Kaartgenerator - Water
STR_6685 :Kaartgenerator - Bossen
STR_6686 :Ratio bomen/land:
STR_6687 :Minimale boomhoogte:
STR_6688 :Maximale boomhoogte:
@@ -3791,3 +3787,10 @@ STR_6732 :Toon een knop in de werkbalk om het beeld tegen de klok in te draai
STR_6733 :Doorzichtig
STR_6734 :Maakt kaartelementen die hoger staan dan de ingestelde bovengrens doorzichtig.
STR_6735 :Naar bovenliggende map navigeren
STR_6736 :Preview
STR_6737 :Geen preview beschikbaar.
STR_6738 :{WINDOW_COLOUR_2}Parkwaardering: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Datum: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Geld: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Aantal attracties: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Aantal bezoekers: {BLACK}{UINT16}
+7 -4
View File
@@ -2260,10 +2260,6 @@ STR_3252 :Nie można bardziej zwiększyć maksymalnego zadłużenia!
STR_3253 :Nie można bardziej zmniejszyć maksymalnego zadłużenia!
STR_3254 :Nie można bardziej zwiększyć oprocentowania pożyczek!
STR_3255 :Nie można bardziej zmniejszyć oprocentowania pożyczek!
STR_3256 :Goście preferują mniej intensywne atrakcje
STR_3257 :Wybierz czy goście powinni preferować tylko mniej intensywne atrakcje
STR_3258 :Goście preferują bardziej intensywne atrakcje
STR_3259 :Wybierz czy goście powinni preferować tylko bardziej intensywne atrakcje
STR_3260 :{WINDOW_COLOUR_2}Gotówka na gościa (średnia):
STR_3261 :{WINDOW_COLOUR_2}Początkowe zadowolenie gości:
STR_3262 :{WINDOW_COLOUR_2}Początkowy głód gości:
@@ -3792,3 +3788,10 @@ STR_6732 :Pokaż przycisk na pasku narzędzi do obracania widoku w kierunku p
STR_6733 :Półprzezroczystość
STR_6734 :Elementy mapy, które znajdują się na lub powyżej wysokości cięcia, są wyświetlane jako półprzezroczyste
STR_6735 :Idź do katalogu nadrzędnego
STR_6736 :Podgląd
STR_6737 :Brak podglądu
STR_6738 :{WINDOW_COLOUR_2}Atrakcyjność parku: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Data: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Gotówka: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Liczba atrakcji: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Liczba gości: {BLACK}{UINT16}
+15 -4
View File
@@ -2260,10 +2260,6 @@ STR_3252 :Impossível aumentar ainda mais o tamanho do empréstimo!
STR_3253 :Impossível diminuir ainda mais o tamanho do empréstimo!
STR_3254 :Impossível aumentar ainda mais a taxa de juros!
STR_3255 :Impossível diminuir ainda mais a taxa de juros!
STR_3256 :Visitantes preferem atrações menos intensas
STR_3257 :Selecionar se os visitantes geralmente preferem somente atrações menos intensas
STR_3258 :Visitantes preferem atrações mais intensas
STR_3259 :Selecionar se os visitantes geralmente preferem somente atrações mais intensas
STR_3260 :{WINDOW_COLOUR_2}Dinheiro por visitante (em média):
STR_3261 :{WINDOW_COLOUR_2}Felicidade inicial dos visitantes:
STR_3262 :{WINDOW_COLOUR_2}Fome inicial dos visitantes:
@@ -3792,3 +3788,18 @@ STR_6732 :Mostrar um botão na barra de ferramentas para girar a visualizaç
STR_6733 :Ver através
STR_6734 :Elementos do mapa que estiverem na altura de corte ou superior são desenhados translúcidos.
STR_6735 :Ir para pasta acima
STR_6736 :Pré-visualização
STR_6737 :Nenhuma pré-visualização disponível
STR_6738 :{WINDOW_COLOUR_2}Classifiação do parque: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Data: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Dinheiro: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Núm. atrações: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Núm. visitantes: {BLACK}{UINT16}
STR_6743 :Clima
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
STR_6745 :{WINDOW_COLOUR_2}Preferências de intensidade dos visitantes:
STR_6746 :Sem preferências
STR_6747 :Preferências variam (padrão)
STR_6748 :Apenas atrações menos intensas
STR_6749 :Apenas atrações mais intensas
STR_6750 :Selecionar que tipo de intensidade de atração visitantes recém criados preferem.
+15 -4
View File
@@ -2253,10 +2253,6 @@ STR_3252 :Невозможно повышать сумму максималь
STR_3253 :Невозможно понижать сумму максимального займа!
STR_3254 :Невозможно повышать процентную ставку!
STR_3255 :Невозможно понижать процентную ставку!
STR_3256 :Гости любят менее напряжённые аттракционы
STR_3257 :Должны ли гости предпочитать менее напряжённые аттракционы
STR_3258 :Гости любят более напряжённые аттракционы
STR_3259 :Должны ли гости предпочитать более напряжённые аттракционы
STR_3260 :{WINDOW_COLOUR_2}Денег с клиента (в среднем):
STR_3261 :{WINDOW_COLOUR_2}Начальное счастье гостей:
STR_3262 :{WINDOW_COLOUR_2}Начальный голод гостей:
@@ -3780,3 +3776,18 @@ STR_6731 :Импорт данных emscripten
STR_6733 :Прозрачность
STR_6734 :Элементы карты выше указанной высоты отображаются прозрачно.
STR_6735 :Перейти вверх
STR_6736 :Предпросмотр
STR_6737 :Предпросмотр недоступен
STR_6738 :{WINDOW_COLOUR_2}Рейтинг парка: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Дата: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Деньги: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Кол-во аттр.: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Кол-во гостей: {BLACK}{UINT16}
STR_6743 :Климат
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
STR_6745 :{WINDOW_COLOUR_2}Предпочтения гостей по интенсивности:
STR_6746 :Без предпочтений
STR_6747 :Различные предпочтения (умолч.)
STR_6748 :Только слабо-интенсивные аттр.
STR_6749 :Только сильно-интенсивные аттр.
STR_6750 :Выберите предпочтения новых гостей относительно интенсивности аттракционов.
-4
View File
@@ -2260,10 +2260,6 @@ STR_3252 :Kan inte höja maxlån mer!
STR_3253 :Kan inte sänka maxlån mer!
STR_3254 :Kan inte höja räntan mer!
STR_3255 :Kan inte sänka räntan mer!
STR_3256 :Besökare föredrar mindre intensiva åkturer
STR_3257 :Välj om besökare endast ska föredra mindre intensiva åkturer
STR_3258 :Besökare föredrar mer intensiva åkturer
STR_3259 :Välj om besökare endast ska föredra mer intensiva åkturer
STR_3260 :{WINDOW_COLOUR_2}Pengar per besökare (genomsnitt):
STR_3261 :{WINDOW_COLOUR_2}Besökares startglädje:
STR_3262 :{WINDOW_COLOUR_2}Besökares starthunger:
-4
View File
@@ -2248,10 +2248,6 @@ STR_3252 :Kredi miktarı daha fazla yükseltilemiyor!
STR_3253 :Kredi miktarı daha fazla düşürülemiyor!
STR_3254 :Faiz oranı daha fazla yükseltilemiyor!
STR_3255 :Faiz oranı daha fazla düşürülemiyor!
STR_3256 :Müşteriler daha çok şiddet oranı düşük olan aletleri tercih etsin
STR_3257 :Bu ayar ile müşteriler daha çok şiddet oranı düşük olan aletleri tercih ediyor
STR_3258 :Müşteriler daha çok şiddet oranı yüksek olan aletleri tercih etsin
STR_3259 :Bu ayar ile müşteriler daha çok şiddet oranı yüksek olan aletleri tercih ediyor
STR_3260 :{WINDOW_COLOUR_2}Müşteri başı para (yaklaşık):
STR_3261 :{WINDOW_COLOUR_2}Ana müşteri mutluluğu:
STR_3262 :{WINDOW_COLOUR_2}Ana müşteri açlığı:
-4
View File
@@ -2288,10 +2288,6 @@ STR_3252 :Can’t increase maximum loan size any further!
STR_3253 :Can’t reduce maximum loan size any further!
STR_3254 :Can’t increase interest rate any further!
STR_3255 :Can’t reduce interest rate any further!
STR_3256 :Guests prefer less intense rides
STR_3257 :Select whether guests should generally prefer less intense rides only
STR_3258 :Guests prefer more intense rides
STR_3259 :Select whether guests should generally prefer more intense rides only
STR_3260 :{WINDOW_COLOUR_2}Готівка на гостя (в середньому):
STR_3261 :{WINDOW_COLOUR_2}Початкове щастя гостей:
STR_3262 :{WINDOW_COLOUR_2}Початковий голод гостей:
-4
View File
@@ -2253,10 +2253,6 @@ STR_3252 :Can’t increase maximum loan size any further!
STR_3253 :Can’t reduce maximum loan size any further!
STR_3254 :Can’t increase interest rate any further!
STR_3255 :Can’t reduce interest rate any further!
STR_3256 :Guests prefer less intense rides
STR_3257 :Select whether guests should generally prefer less intense rides only
STR_3258 :Guests prefer more intense rides
STR_3259 :Select whether guests should generally prefer more intense rides only
STR_3260 :{WINDOW_COLOUR_2}Cash per guest (average):
STR_3261 :{WINDOW_COLOUR_2}Guests initial happiness:
STR_3262 :{WINDOW_COLOUR_2}Guests initial hunger:
-4
View File
@@ -2257,10 +2257,6 @@ STR_3252 :不能再增加最高贷款额!
STR_3253 :不能再减少最高贷款额!
STR_3254 :不能再增加贷款利率!
STR_3255 :不能再减少贷款利率!
STR_3256 :游客喜欢较温和的游乐设施
STR_3257 :选择普遍游客是否只喜欢较温和的游乐设施
STR_3258 :游客喜欢较刺激的游乐设施
STR_3259 :选择普遍游客是否只喜欢较刺激的游乐设施
STR_3260 :{WINDOW_COLOUR_2}游客身上现金(平均值):
STR_3261 :{WINDOW_COLOUR_2}游客初始快乐度:
STR_3262 :{WINDOW_COLOUR_2}游客初始饥饿度:
-4
View File
@@ -2259,10 +2259,6 @@ STR_3252 :不能再增加最高貸款額!
STR_3253 :不能再減少最高貸款額!
STR_3254 :不能再增加貸款利率!
STR_3255 :不能再減少貸款利率!
STR_3256 :遊客喜歡較溫和的遊樂設施
STR_3257 :選擇普遍遊客是否只喜歡較溫和的遊樂設施
STR_3258 :遊客喜歡較刺激的遊樂設施
STR_3259 :選擇普遍遊客是否只喜歡較刺激的遊樂設施
STR_3260 :{WINDOW_COLOUR_2}遊客身上現金 (平均值):
STR_3261 :{WINDOW_COLOUR_2}遊客初始快樂度:
STR_3262 :{WINDOW_COLOUR_2}遊客初始飢餓度:
+18 -7
View File
@@ -13,14 +13,19 @@ uniform usampler2D uPaletteTex;
uniform sampler2D uPeelingTex;
uniform bool uPeeling;
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord;
flat in int fFlags;
flat in uint fColour;
in vec3 fTexColour;
in vec3 fTexMask;
flat in vec4 fTexColour;
flat in vec4 fTexMask;
flat in vec3 fPalettes;
in vec2 fPosition;
flat in vec2 fPosition;
in vec3 fPeelPos;
flat in float fZoom;
flat in int fTexColourAtlas;
flat in int fTexMaskAtlas;
// clang-format on
out uint oColour;
@@ -36,10 +41,14 @@ void main()
}
}
vec2 position = (gl_FragCoord.xy - fPosition) * fZoom;
uint texel;
if ((fFlags & FLAG_NO_TEXTURE) == 0)
{
texel = texture(uTexture, fTexColour).r;
float colourU = (fTexColour.x + position.x) / fTexColour.z;
float colourV = (fTexColour.y + position.y) / fTexColour.w;
texel = texture(uTexture, vec3(colourU, colourV, fTexColourAtlas)).r;
if (texel == 0u)
{
discard;
@@ -93,8 +102,8 @@ void main()
if ((fFlags & FLAG_CROSS_HATCH) != 0)
{
int posSum = int(fPosition.x) + int(fPosition.y);
if ((posSum % 2) == 0)
int posSum = int(position.x) + int(position.y);
if ((posSum % 2) != 0)
{
discard;
}
@@ -102,7 +111,9 @@ void main()
if ((fFlags & FLAG_MASK) != 0)
{
uint mask = texture(uTexture, fTexMask).r;
float maskU = (fTexMask.x + position.x) / fTexMask.z;
float maskV = (fTexMask.y + position.y) / fTexMask.w;
uint mask = texture(uTexture, vec3(maskU, maskV, fTexMaskAtlas)).r;
if (mask == 0u)
{
discard;
+15 -8
View File
@@ -8,25 +8,29 @@ uniform ivec2 uScreenSize;
// clang-format off
in ivec4 vClip;
in int vTexColourAtlas;
in vec4 vTexColourBounds;
in vec4 vTexColourCoords;
in int vTexMaskAtlas;
in vec4 vTexMaskBounds;
in vec4 vTexMaskCoords;
in ivec3 vPalettes;
in int vFlags;
in uint vColour;
in ivec4 vBounds;
in int vDepth;
in float vZoom;
in mat4x2 vVertMat;
in vec2 vVertVec;
out vec2 fPosition;
flat out vec2 fPosition;
out vec3 fPeelPos;
flat out int fFlags;
flat out uint fColour;
out vec3 fTexColour;
out vec3 fTexMask;
flat out vec4 fTexColour;
flat out vec4 fTexMask;
flat out vec3 fPalettes;
flat out float fZoom;
flat out int fTexColourAtlas;
flat out int fTexMaskAtlas;
// clang-format on
void main()
@@ -35,10 +39,13 @@ void main()
vec2 m = clamp(
((vVertMat * vec4(vClip)) - (vVertMat * vec4(vBounds))) / vec2(vBounds.zw - vBounds.xy) + vVertVec, 0.0, 1.0);
vec2 pos = mix(vec2(vBounds.xy), vec2(vBounds.zw), m);
fTexColour = vec3(mix(vTexColourBounds.xy, vTexColourBounds.zw, m), vTexColourAtlas);
fTexMask = vec3(mix(vTexMaskBounds.xy, vTexMaskBounds.zw, m), vTexMaskAtlas);
fTexColour = vTexColourCoords;
fTexMask = vTexMaskCoords;
fPosition = pos;
fPosition = vBounds.xy;
fZoom = vZoom;
fTexColourAtlas = vTexColourAtlas;
fTexMaskAtlas = vTexMaskAtlas;
// Transform screen coordinates to texture coordinates
float depth = 1.0 - (float(vDepth) + 1.0) * DEPTH_INCREMENT;
+52 -4
View File
@@ -1,3 +1,51 @@
0.4.21 (in development)
------------------------------------------------------------------------
- Feature: [#22646] New scenario files now contain a minimap image, shown in the scenario selection window.
- Feature: [#23774] Climates can now be customised using objects.
- Feature: [#23876] New park save files now contain a preview image, shown in the load/save window.
- Improved: [#24078] Handrails on Wooden Roller Coaster station sprites with no platforms have been removed.
- Improved: [objects#379] Add additional colour schemes to Mine Train.
- Change: [#23932] The land rights window now checks “Land Owned” by default.
- Change: [#23936] The ‘guests prefer less/more intense rides’ settings have been turned into a dropdown.
- Change: [#24059] The ‘select other ride’ button is now available in the track designs manager.
- Change: [#24067] [Plugin] Registered menu items are now listed alphabetically.
- Change: [#24070] Footpath selection menus now show object names on hover using a tooltip.
- Change: [#24101] Frozen peeps are no longer removed when using the 'remove all guests' cheat.
- Fix: [#4225] Ride Construction window offers non-existent banked sloped to level curve (original bug).
- Fix: [#5281] Missing supports on miniature railways built backwards.
- Fix: [#7222] Transparent pixels in sloped path tunnels (original bug).
- Fix: [#10379] Banners outside the park can be renamed and modified (original bug).
- Fix: [#10582] Low clearance tunnels below water are drawn incorrectly (original bug).
- Fix: [#17524, #23710] Station bases are drawn on many ride types when the “No entrance, no platform station” style is selected.
- Fix: [#18169] CJK, Arabic and Vietnamese display all text as ‘???’ on Android.
- Fix: [#18309] Flying and Multi Dimension trains glitch when changing between inverted and uninverted track when uncap fps is on.
- Fix: [#19506] Queue paths can be placed on level crossings by replacing an existing regular path.
- Fix: [#21803] The park fence is drawn differently in OpenGL compared to software rendering when zoomed out.
- Fix: [#21824] Some sprites are drawn incorrectly when zoomed out in OpenGL rendering.
- Fix: [#21908] Ride mode warnings when hovering track designs.
- Fix: [#22820] OpenGL does not draw masked sprites correctly.
- Fix: [#22961] Clicking on the construction preview places duplicate flat rides and stalls.
- Fix: [#23359] Scripting: Add car.moveToTrack, an easier API than setting car.trackLocation directly.
- Fix: [#23443] New GOG version of RCT2 is not extracted correctly.
- Fix: [#23484] Stray coloured pixels on castle-themed stations and Roman-themed entrances/exits (original bug).
- Fix: [#23486] Object selection minimum requirements can be bypassed with close window hotkey.
- Fix: [#23743] Parks with guest goals over 32767 do not appear in the scenario list.
- Fix: [#23844] Sound effects keep playing when loading another save.
- Fix: [#23881] Compiling on Raspbian/arm-linux-gnueabihf fails.
- Fix: [#23891] Inverted Hairpin Coaster track can draw over things above it (original bug).
- Fix: [#23892] Gentle banked Wooden Roller Coaster track glitches as trains pass (original bug).
- Fix: [#23897] Reverse Freefall Coaster slope up to vertical track piece does not draw a vertical tunnel.
- Fix: [#23910] Heartline Twister Coaster track can draw over things above it (original bug).
- Fix: [#23939] Incorrect assertion when trying to load heightmap.
- Fix: [#23941] Underflow in “Repay loan and achieve a certain park value” objective when using Japanese.
- Fix: [#23949] Walls draw over sloped rear water edges and those edge sprites are misaligned (original bug).
- Fix: [#23960] Corner path fences can draw over adjacent sloped land (original bug).
- Fix: [#23961] Lamps and queue line tvs draw incorrectly on paths with fences.
- Fix: [#23983] Ordering files by size does not work and occasionally crashes the game.
- Fix: [#24009] [Plugin] The object manager API does not identify recently introduced object types.
- Fix: [#24028] Giga and LSM Launched Coaster booster sprites have pixels that draw over transparent pixels.
- Fix: [#24077] Track Designer crashes when clicking the park fence.
0.4.20 (2025-02-25)
------------------------------------------------------------------------
- Feature: [#22905] Add diagonal downward-inclined brakes to hybrid coaster and single rail coaster.
@@ -81,7 +129,7 @@
- Fix: [#22742, #22793] In game console does not handle format tokens properly.
- Fix: [#23135] Map generator tree placement has noticable patterns.
- Fix: [#23286] Currency formatted incorrectly in the in game console.
- Fix: [#23348] Console set commands don't print output properly.
- Fix: [#23348] Console set commands don’t print output properly.
- Fix: [#23376] Peeps with balloons, hats and umbrellas may leave artifacts on screen.
- Fix: [#23496] Newly spawned vehicles are invisible when spawned while the game is paused.
- Fix: [#23509] Map generator window reverts to flatland after selecting a heightmap image.
@@ -103,7 +151,7 @@
- Fix: [#20070, #22972] Missing and mismatched flat and sloped footpaths on several scenarios.
- Fix: [#22726] ‘Force park rating’ cheat is not saved with the park.
- Fix: [#23064] Stand-Up Roller Coaster unbanked to banked track pieces are misaligned.
- Fix: [#23066] Stand-Up Roller Coaster has many supports that don't join up to the track.
- Fix: [#23066] Stand-Up Roller Coaster has many supports that don’t join up to the track.
- Fix: [#23206] Multiplayer desyncs when FPS is uncapped.
- Fix: [#23238] Updating a guest’s favourite ride works differently from vanilla RCT2.
- Fix: [objects#355] Fix colour preset settings of the Stand-Up Roller Coaster trains.
@@ -138,7 +186,7 @@
- Feature: [#775] Add 2x and 4x zoom levels to software renderer (previously limited to OpenGL).
- Feature: [#15642] Track design placement can now use construction modifier keys (ctrl/shift).
- Feature: [#20539] [Plugin] Add API for getting a ride’s statistics.
- Feature: [#21521] [Plugin] Add hook 'park.guest.softcap.calculate' called before calculating the soft guest cap.
- Feature: [#21521] [Plugin] Add hook “park.guest.softcap.calculate” called before calculating the soft guest cap.
- Feature: [#22383] Add downward-inclined brakes to hybrid coaster and single rail coaster.
- Feature: [#22694] Park graphs have tooltips and can be resized like finance graphs.
- Feature: [#22758] The table of ‘real’ peep names can now be changed using Peep Names objects.
@@ -235,7 +283,7 @@
- Change: [#22309] The scenario editor now supports loading landscapes from .sea save files.
- Fix: [#17390] Glitchy animations for the ride type tabs in the object selection window.
- Fix: [#19210] The load/save window executes the loading code twice, resulting in a slowdown.
- Fix: [#21175] Terraform tool hotkeys don't work when toolbars are hidden.
- Fix: [#21175] Terraform tool hotkeys don’t work when toolbars are hidden.
- Fix: [#22056] Potential crash upon exiting the game.
- Fix: [#22101] Wrong tunnel shapes on Log Flume and Giga, Hybrid, Single-Rail and Alpine Coasters.
- Fix: [#22208] Cursor may fail to register hits in some cases (original bug).
-214
View File
@@ -1,214 +0,0 @@
/* This script is based on elf_i386.xc with modifications for OpenRCT2 */
/* Script for -z combreloc: combine and sort reloc sections */
/* Copyright (C) 2014 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. */
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
"elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_DIR("/usr/i386-unknown-linux-gnu/lib32"); SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib32"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/lib32"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/usr/local/lib32"); SEARCH_DIR("/usr/i386-unknown-linux-gnu/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/lib32");
SECTIONS
{
/* Read-only sections, merged into text segment: */
PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x010000)); . = SEGMENT_START("text-segment", 0x010000) + SIZEOF_HEADERS;
.interp : { *(.interp) }
.note.gnu.build-id : { *(.note.gnu.build-id) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.dyn :
{
*(.rel.init)
*(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
*(.rel.fini)
*(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
*(.rel.data.rel.ro .rel.data.rel.ro.* .rel.gnu.linkonce.d.rel.ro.*)
*(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
*(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
*(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
*(.rel.ctors)
*(.rel.dtors)
*(.rel.got)
*(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
*(.rel.ifunc)
}
.rel.plt :
{
*(.rel.plt)
PROVIDE_HIDDEN (__rel_iplt_start = .);
*(.rel.iplt)
PROVIDE_HIDDEN (__rel_iplt_end = .);
}
.init :
{
KEEP (*(SORT_NONE(.init)))
}
.plt : { *(.plt) *(.iplt) }
.rct2_text 0x401000 : { *(.rct2_text) }
.rct2_data : { *(.rct2_data) }
.text :
{
*(.text.unlikely .text.*_unlikely .text.unlikely.*)
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
}
.fini :
{
KEEP (*(SORT_NONE(.fini)))
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
.gcc_except_table.*) }
/* These sections are generated by the Sun/Oracle C++ compiler. */
.exception_ranges : ONLY_IF_RO { *(.exception_ranges
.exception_ranges*) }
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
.exception_ranges : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) }
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_array_start = .);
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_array_end = .);
}
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
KEEP (*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors))
PROVIDE_HIDDEN (__init_array_end = .);
}
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors))
PROVIDE_HIDDEN (__fini_array_end = .);
}
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.o(.ctors))
KEEP (*crtbegin?.o(.ctors))
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.o(.dtors))
KEEP (*crtbegin?.o(.dtors))
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro .data.rel.ro.* .gnu.linkonce.d.rel.ro.*) }
.dynamic : { *(.dynamic) }
.got : { *(.got) *(.igot) }
. = DATA_SEGMENT_RELRO_END (SIZEOF (.got.plt) >= 12 ? 12 : 0, .);
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
SORT(CONSTRUCTORS)
}
.data1 : { *(.data1) }
_edata = .; PROVIDE (edata = .);
. = .;
__bss_start = .;
.bss :
{
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections.
FIXME: Why do we need it? When there is no .bss section, we don't
pad the .data section. */
. = ALIGN(. != 0 ? 32 / 8 : 1);
}
. = ALIGN(32 / 8);
. = SEGMENT_START("ldata-segment", .);
. = ALIGN(32 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end ) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
.gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
-233
View File
@@ -1,233 +0,0 @@
/* This script is based on elf_x86_64.xc with modifications for OpenRCT2 */
/* Script for -z combreloc: combine and sort reloc sections */
/* Copyright (C) 2014-2015 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. */
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64",
"elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib");
SECTIONS
{
/* Read-only sections, merged into text segment: */
PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x7000000)); . = SEGMENT_START("text-segment", 0x7000000) + SIZEOF_HEADERS;
.interp : { *(.interp) }
.note.gnu.build-id : { *(.note.gnu.build-id) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rela.dyn :
{
*(.rela.init)
*(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
*(.rela.fini)
*(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
*(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
*(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
*(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
*(.rela.ctors)
*(.rela.dtors)
*(.rela.got)
*(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
*(.rela.ldata .rela.ldata.* .rela.gnu.linkonce.l.*)
*(.rela.lbss .rela.lbss.* .rela.gnu.linkonce.lb.*)
*(.rela.lrodata .rela.lrodata.* .rela.gnu.linkonce.lr.*)
*(.rela.ifunc)
}
.rela.plt :
{
*(.rela.plt)
PROVIDE_HIDDEN (__rela_iplt_start = .);
*(.rela.iplt)
PROVIDE_HIDDEN (__rela_iplt_end = .);
}
.init :
{
KEEP (*(SORT_NONE(.init)))
}
.plt : { *(.plt) *(.iplt) }
.plt.got : { *(.plt.got) }
.plt.bnd : { *(.plt.bnd) }
.rct2_text 0x401000 : { *(.rct2_text) }
.rct2_data : { *(.rct2_data) }
.text :
{
*(.text.unlikely .text.*_unlikely .text.unlikely.*)
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
}
.fini :
{
KEEP (*(SORT_NONE(.fini)))
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) *(.eh_frame.*) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
.gcc_except_table.*) }
.gnu_extab : ONLY_IF_RO { *(.gnu_extab*) }
/* These sections are generated by the Sun/Oracle C++ compiler. */
.exception_ranges : ONLY_IF_RO { *(.exception_ranges
.exception_ranges*) }
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) *(.eh_frame.*) }
.gnu_extab : ONLY_IF_RW { *(.gnu_extab) }
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
.exception_ranges : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) }
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_array_start = .);
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_array_end = .);
}
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
KEEP (*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors))
PROVIDE_HIDDEN (__init_array_end = .);
}
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors))
PROVIDE_HIDDEN (__fini_array_end = .);
}
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.o(.ctors))
KEEP (*crtbegin?.o(.ctors))
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.o(.dtors))
KEEP (*crtbegin?.o(.dtors))
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro .data.rel.ro.* .gnu.linkonce.d.rel.ro.*) }
.dynamic : { *(.dynamic) }
.got : { *(.got) *(.igot) }
. = DATA_SEGMENT_RELRO_END (SIZEOF (.got.plt) >= 24 ? 24 : 0, .);
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
SORT(CONSTRUCTORS)
}
.data1 : { *(.data1) }
_edata = .; PROVIDE (edata = .);
. = .;
__bss_start = .;
.bss :
{
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections.
FIXME: Why do we need it? When there is no .bss section, we don't
pad the .data section. */
. = ALIGN(. != 0 ? 64 / 8 : 1);
}
.lbss :
{
*(.dynlbss)
*(.lbss .lbss.* .gnu.linkonce.lb.*)
*(LARGE_COMMON)
}
. = ALIGN(64 / 8);
. = SEGMENT_START("ldata-segment", .);
.lrodata ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
{
*(.lrodata .lrodata.* .gnu.linkonce.lr.*)
}
.ldata ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
{
*(.ldata .ldata.* .gnu.linkonce.l.*)
. = ALIGN(. != 0 ? 64 / 8 : 1);
}
. = ALIGN(64 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end ) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
.gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
+359 -96
View File
@@ -120,8 +120,8 @@ declare global {
/**
* A track piece coordinate and type within the game.
*/
interface CarTrackLocation extends CoordsXYZD {
trackType: number;
interface CarTrackLocation extends Readonly<CoordsXYZD> {
readonly trackType: number;
}
/**
@@ -331,7 +331,6 @@ declare global {
queryAction(action: "bannersetstyle", args: BannerSetStyleArgs, callback?: (result: GameActionResult) => void): void;
queryAction(action: "cheatset", args: CheatSetArgs, callback?: (result: GameActionResult) => void): void;
queryAction(action: "clearscenery", args: ClearSceneryArgs, callback?: (result: GameActionResult) => void): void;
queryAction(action: "climateset", args: ClimateSetArgs, callback?: (result: GameActionResult) => void): void;
queryAction(action: "footpathadditionplace", args: FootpathAdditionPlaceArgs, callback?: (result: GameActionResult) => void): void;
queryAction(action: "footpathadditionremove", args: FootpathAdditionRemoveArgs, callback?: (result: GameActionResult) => void): void;
queryAction(action: "footpathplace", args: FootpathPlaceArgs, callback?: (result: GameActionResult) => void): void;
@@ -423,7 +422,6 @@ declare global {
executeAction(action: "bannersetstyle", args: BannerSetStyleArgs, callback?: (result: GameActionResult) => void): void;
executeAction(action: "cheatset", args: CheatSetArgs, callback?: (result: GameActionResult) => void): void;
executeAction(action: "clearscenery", args: ClearSceneryArgs, callback?: (result: GameActionResult) => void): void;
executeAction(action: "climateset", args: ClimateSetArgs, callback?: (result: GameActionResult) => void): void;
executeAction(action: "footpathadditionplace", args: FootpathAdditionPlaceArgs, callback?: (result: GameActionResult) => void): void;
executeAction(action: "footpathadditionremove", args: FootpathAdditionRemoveArgs, callback?: (result: GameActionResult) => void): void;
executeAction(action: "footpathplace", args: FootpathPlaceArgs, callback?: (result: GameActionResult) => void): void;
@@ -620,12 +618,17 @@ declare global {
"scenery_group" |
"park_entrance" |
"water" |
"scenario_text" |
"terrain_surface" |
"terrain_edge" |
"station" |
"music" |
"footpath_surface" |
"footpath_railings";
"footpath_railings" |
"audio" |
"peep_names" |
"peep_animations" |
"climate";
type HookType =
"action.execute" |
@@ -670,7 +673,6 @@ declare global {
"bannersetstyle" |
"cheatset" |
"clearscenery" |
"climateset" |
"footpathadditionplace" |
"footpathadditionremove" |
"footpathplace" |
@@ -747,7 +749,8 @@ declare global {
interface GameActionArgs {
flags?: number; // see GAME_COMMAND in openrct2/Game.h
/** @see `GameCommand` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/Game.h} */
flags?: number;
}
interface BalloonPressArgs extends GameActionArgs {
@@ -785,22 +788,38 @@ declare global {
interface BannerSetStyleArgs extends GameActionArgs {
id: number;
type: number; // 0: primary colour, 1: secondary colour: 2: no entry
parameter: number; // primary colour | secondary colour | 0: disable, 1: enable
/**
* `0`: Primary colour
* `1`: Secondary colour
* `2`: No entry
*/
type: number;
/**
* If {@link BannerSetStyleArgs.type} === 0 (primary), or === 1 (secondary):
* - `0`: Disable
* - `1`: Enable
*/
parameter: number;
}
interface CheatSetArgs extends GameActionArgs {
type: number; // see CheatType in openrct2/Cheats.h
param1: number; // see openrct2/actions/CheatSetAction.cpp
param2: number; // see openrct2/actions/CheatSetAction.cpp
/** @see {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/Cheats.h} */
type: number;
/** @see {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/CheatSetAction.h} */
param1: number;
/** @see {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/CheatSetAction.h} */
param2: number;
}
interface ClearSceneryArgs extends GameActionArgs {
itemsToClear: number; // Bit mask. 1: small scenery and walls, 2: large scenery, 4: footpaths.
}
interface ClimateSetArgs extends GameActionArgs {
climate: number; // 0: cool and wet, 1: warm, 2: hot and dry, 3: cold
/**
* Bitmask.
*
* - `1`: `(001)`: Small scenery and walls
* - `2`: `(010)`: Large scenery
* - `4`: `(100)`: Footpaths
*/
itemsToClear: number;
}
interface FootpathAdditionPlaceArgs extends GameActionArgs {
@@ -820,22 +839,35 @@ declare global {
x: number;
y: number;
z: number;
direction: number; // direction or 0xFF
object: number; // surface object
/** Direction or `0xFF` */
direction: number;
/** Surface object */
object: number;
railingsObject: number;
slope: number; // 0: flat, 4,5,6,7: slope direction + 4
/**
* - `0`: Flat
* - `4`, `5`, `6`, `7`: Slope direction + 4
*/
slope: number;
constructFlags: number;
}
// see openrct2/actions/FootpathPlaceFromTrackAction
/**
* @see {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/FootpathPlaceAction.h}
*/
interface FootpathLayoutPlaceArgs extends GameActionArgs {
x: number;
y: number;
z: number;
edges: number; // bit mask
/** Bitmask */
edges: number;
object: number;
railingsObject: number;
slope: number; // 0: flat, 4,5,6,7: slope direction + 4
/**
* - `0`: Flat
* - `4`, `5`, `6`, `7`: Slope direction + 4
*/
slope: number;
constructFlags: number;
}
@@ -849,10 +881,12 @@ declare global {
speed: number;
}
// recommendation: use Peep.setFlag instead of the GuestSetFlag action
interface GuestSetFlagsArgs extends GameActionArgs {
peep: number;
guestFlags: number; // see PEEP_FLAGS in openrct2/entity/Peep.h
/**
* @see `PEEP_FLAGS` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/entity/Peep.h}
*/
guestFlags: number;
}
interface GuestSetNameArgs extends GameActionArgs {
@@ -865,11 +899,17 @@ declare global {
y1: number;
x2: number;
y2: number;
setting: number; // 0: buy land, 1: buy construction rights
/**
* - `0`: Buy land
* - `1`: Buy construction rights
*/
setting: number;
}
// x, y specify the centre. Only used for GameActionResult and 3D audio position.
// x1, y1, x2, y2 specify a map range
/**
* x, y specify the centre. Only used for {@link GameActionResult} and 3D audio position.
* x1, y1, x2, y2 specify a map range
*/
interface LandLowerArgs extends GameActionArgs {
x: number;
y: number;
@@ -877,11 +917,14 @@ declare global {
y1: number;
x2: number;
y2: number;
selectionType: number; // see MAP_SELECT_TYPE in openrct2/world/Map.h
/** @see `MAP_SELECT_TYPE` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/world/Map.h} */
selectionType: number;
}
// x, y specify the centre. Only used for GameActionResult and 3D audio position.
// x1, y1, x2, y2 specify a map range
/**
* x, y specify the centre. Only used for {@link GameActionResult} and 3D audio position.
* x1, y1, x2, y2 specify a map range
*/
interface LandRaiseArgs extends GameActionArgs {
x: number;
y: number;
@@ -889,14 +932,16 @@ declare global {
y1: number;
x2: number;
y2: number;
selectionType: number; // see MAP_SELECT_TYPE in openrct2/world/Map.h
/** @see `MAP_SELECT_TYPE` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/world/Map.h} */
selectionType: number;
}
interface LandSetHeightArgs extends GameActionArgs {
x: number;
y: number;
height: number;
style: number; // see openrct2/world/tile_element/Slope.h
/** @see {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/LandSetHeightAction.h} */
style: number;
}
interface LandSetRightsArgs extends GameActionArgs {
@@ -904,12 +949,26 @@ declare global {
y1: number;
x2: number;
y2: number;
setting: number; // 0: unown land, 1: unown construction rights, 2: set for sale, 3: set construction rights for sale, 4: set ownership
ownership: number; // only used if setting = 4 (set ownership). See OWNERSHIP in openrct2/world/Surface.h
/**
* - `0`: Unown land
* - `1`: Unown construction rights
* - `2`: Set for sale
* - `3`: Set construction rights for sale
* - `4`: Set ownership
*/
setting: number;
/**
* Only used if {@link LandSetRightsArgs.setting} === 4 (set ownership)
*
* @see {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/world/tile_element/SurfaceElement.h}
*/
ownership: number;
}
// x, y specify the centre. Only used for GameActionResult and 3D audio position.
// x1, y1, x2, y2 specify a map range
/**
* x, y specify the centre. Only used for {@link GameActionResult} and 3D audio position.
* x1, y1, x2, y2 specify a map range
*/
interface LandSmoothArgs extends GameActionArgs {
x: number;
y: number;
@@ -917,7 +976,10 @@ declare global {
y1: number;
x2: number;
y2: number;
selectionType: number; // see MAP_SELECT_TYPE in openrct2/world/Map.h
/**
* @see `MAP_SELECT_TYPE` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/world/Map.h}
*/
selectionType: number;
isLowering: boolean;
}
@@ -952,8 +1014,18 @@ declare global {
}
interface LoadOrQuitArgs extends GameActionArgs {
mode: number; // 0: open save prompt, 1: close save prompt
savePromptMode: number; // 0: save before load, 1: save before quit. Only used if mode = 0 (open save prompt).
/**
* - `0`: Open save prompt
* - `1`: Close save prompt
*/
mode: number;
/**
* - `0`: Save before load
* - `1`: Save before quit
*
* Only used if {@link LoadOrQuitArgs.mode} === 0 (open save prompt)
*/
savePromptMode: number;
}
interface MapChangeSizeArgs extends GameActionArgs {
@@ -977,16 +1049,46 @@ declare global {
z: number;
direction: number;
ride: number;
mode: number; // 0: build, 1: move, 2: fill
/**
* - `0`: Build
* - `1`: Move
* - `2`: Fill
*/
mode: number;
isInitialPlacement: boolean;
}
interface NetworkModifyGroupArgs extends GameActionArgs {
type: number; // 0: add group, 1: remove group, 2: set permissions, 3: set name, 4: set default
groupId: number; // ignored if type = 0 (add group)
name: string; // only used if type = 3 (set name)
permissionIndex: number; // only used if type = 2 (set permissions). See NetworkPermission in openrct2/network/NetworkAction.h
permissionState: number; // only used if type = 2 (set permissions). 0: toggle, 1: set all, 2: clear all
/**
* - `0`: Add group
* - `1`: Remove group
* - `2`: Set permissions
* - `3`: Set name
* - `4`: Set default
*/
type: number;
/**
* Ignored if {@link NetworkModifyGroupArgs.type} === 0 (add group)
*/
groupId: number;
/**
* Only used if {@link NetworkModifyGroupArgs.type} === 3 (set name)
*/
name: string;
/**
* Only used if {@link NetworkModifyGroupArgs.type} === 2 (set permissions)
*
* @see `NetworkPermission` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/network/NetworkAction.h}
*/
permissionIndex: number;
/**
* - `0`: Toggle
* - `1`: Set all
* - `2`: Clear all
*
* Only used if {@link NetworkModifyGroupArgs.type} === 2 (set permissions)
*/
permissionState: number;
}
interface ParkEntrancePlaceArgs extends GameActionArgs {
@@ -1004,8 +1106,15 @@ declare global {
}
interface ParkMarketingArgs extends GameActionArgs {
type: number; // see ADVERTISING_CAMPAIGN in openrct2/management/Marketing.h
item: number; // ride id or shop item. See ShopItem in openrct2/ride/ShopItem.h
/**
* @see `ADVERTISTING_CAMPAIGN` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/management/Marketing.h}
*/
type: number;
/**
* Ride ID or Shop Item
* @see `ShopItem` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/ride/ShopItem.h}
*/
item: number;
numweeks: number;
}
@@ -1028,25 +1137,63 @@ declare global {
}
interface ParkSetParameterArgs extends GameActionArgs {
parameter: number; // 0: close park, 1: open park, 2: set same price in park
value: number; // only used if parameter = 2 (set same price in park). Bit mask. See ShopItem in openrct2/ride/ShopItem.h
/**
* - `0`: Close park
* - `1`: Open park
* - `2`: Set same price in park
*/
parameter: number;
/**
* Only used if {@link ParkSetParameterArgs.parameter} === 2 (set same price in park). Bitmask.
*
* @see `ShopItem` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/ride/ShopItem.h}
*/
value: number;
}
interface ParkSetResearchFundingArgs extends GameActionArgs {
priorities: number; // bit mask. See ResearchCategory in openrct2/management/Research.h
fundingAmount: number; // 0: none, 1: minimal, 2: normal, 3: maximum
/**
* Bitmask.
*
* @see `ResearchCategory` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/management/Research.h}
*/
priorities: number;
/**
* - `0`: None
* - `1`: Minimal
* - `2`: Normal
* - `3`: Maximum
*/
fundingAmount: number;
}
interface PauseToggleArgs extends GameActionArgs {
}
interface PeepPickupArgs extends GameActionArgs {
type: number; // 0: pickup, 1: cancel, 2: place
/**
* - `0`: Pickup
* - `1`: Cancel
* - `3`: Place
*/
type: number;
id: number;
x: number; // unused if type = 0. If type = 1 (cancel), this needs to be the peep's x position BEFORE pickup
y: number; // only used if type = 2 (place)
z: number; // only used if type = 2 (place)
playerId: number; // 0 in single player
/**
* Unused if {@link PeepPickupArgs.type} === 0.
*
* If {@link PeepPickupArgs.type} === 1 (cancel), this needs to be the peep's x position BEFORE pickup.
*/
x: number;
/**
* Only used if {@link PeepPickupArgs.type} === 2 (place)
*/
y: number;
/**
* Only used if {@link PeepPickupArgs.type} === 2 (place)
*/
z: number;
/** `0` in single player */
playerId: number;
}
interface PeepSpawnPlaceArgs extends GameActionArgs {
@@ -1075,7 +1222,11 @@ declare global {
interface RideDemolishArgs extends GameActionArgs {
ride: number;
modifyType: number; // 0: demolish, 1: renew
/**
* - `0`: Demolish
* - `1`: Renew
*/
modifyType: number;
}
interface RideEntranceExitPlaceArgs extends GameActionArgs {
@@ -1097,20 +1248,39 @@ declare global {
interface RideFreezeRatingArgs extends GameActionArgs {
ride: number;
type: number; // 0: excitement, 1: intensity, 2: nausea
/**
* - `0`: Excitement
* - `1`: Intensity
* - `2`: Nausea
*/
type: number;
value: number;
}
interface RideSetAppearanceArgs extends GameActionArgs {
ride: number;
type: number; // see RideSetAppearanceType in openrct2/actions/RideSetAppearanceAction.h
// value:
// - if type is one of the track or vehicle colours: colour
// - if type is VehicleColourScheme: 0: all same, 1: per train, 2: per car
// - if type is EntranceStyle: entrance style
// - if type is SellingItemColourIsRandom: 0: disabled, 1: enabled
/**
* @see RideSetAppearanceType in
* {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/RideSetAppearanceAction.h}
*/
type: number;
/**
* If {@link RideSetAppearanceArgs.type} is:
* - One of the track or vehicle colours: Colour
* - VehicleColourScheme:
* - `0`: All same
* - `1`: Per train
* - `2`: Per car
* - EntranceStyle: Entrance style
* - SellingItemColourIsRandom:
* - `0`: Disabled
* - `1`: Enabled
*/
value: number;
index: number; // colour scheme index, only used if type is one of the track or vehicle colours
/**
* Color scheme index, only used if {@link RideSetAppearanceArgs.type} is one of the track or vehicle colours
*/
index: number;
}
interface RideSetColourSchemeArgs extends GameActionArgs {
@@ -1135,24 +1305,47 @@ declare global {
interface RideSetSettingArgs extends GameActionArgs {
ride: number;
setting: number; // see RideSetSetting in openrct2/actions/RideSetSettingAction.h
/**
* @see `RideSetSetting` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/RideSetSettingAction.h}
*/
setting: number;
value: number;
}
interface RideSetStatusArgs extends GameActionArgs {
ride: number;
status: number; // 0: closed, 1: open, 2: testing, 3: simulating
/**
* - `0`: Closed
* - `1`: Open
* - `2`: Testing
* - `3`: Simulating
*/
status: number;
}
interface RideSetVehicleArgs extends GameActionArgs {
ride: number;
type: number; // 0: number of trains, 1: number of cars per train, 2: ride entry
value: number; // number value or sub type
colour: number; // only used if type is ride entry
/**
* - `0`: Number of trains
* - `1`: Number of cars per train
* - `2`: Ride entry
*/
type: number;
/**
* Number value or subtype of {@link RideSetVehicleArgs.type}
*/
value: number;
/**
* Only used if {@link RideSetVehicleArgs.type} === 2 (ride entry)
*/
colour: number;
}
interface ScenarioSetSettingArgs extends GameActionArgs {
setting: number; // see ScenarioSetSetting in openrct2/actions/ScenarioSetSettingAction.h
/**
* @see ScenarioSetSetting in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/ScenarioSetSettingAction.h}
*/
setting: number;
value: number;
}
@@ -1205,19 +1398,46 @@ declare global {
interface StaffHireArgs extends GameActionArgs {
autoPosition: boolean;
staffType: number; // 0: handyman, 1: mechanic, 2: security, 3: entertainer
costumeIndex: number; // peep animation object id to use as costume
staffOrders: number; // bit mask. See STAFF_ORDERS in openrct2/entity/Staff.h
/**
* - `0`: Handyman
* - `1`: Mechanic
* - `2`: Security
* - `3`: Entertainer
*/
staffType: number;
/** Peep animation object ID to use as costume */
costumeIndex: number;
/**
* Bitmask. Only applies when {@link StaffHireArgs.staffType} === 0 (Handyman), or === 1 (Mechanic).
*
* Handyman:
* - `1`: `(0001)`: Sweeping
* - `2`: `(0010)`: Watering flowers
* - `4`: `(0100)`: Empty bins
* - `8`: `(1000)`: Mowing
*
* Mechanic:
* - `1`: `(0001)`: Inspect rides
* - `2`: `(0010)`: Fix rides
*/
staffOrders: number;
}
interface StaffSetColourArgs extends GameActionArgs {
staffType: number; // 0: handyman, 1: mechanic, 2: security, 3: entertainer
/**
* - `0`: Handyman
* - `1`: Mechanic
* - `2`: Security
* - `3`: Entertainer
*/
staffType: number;
colour: number;
}
interface StaffSetCostumeArgs extends GameActionArgs {
id: number;
costume: number; // see EntertainerCostume in openrct2/entity/Staff.h
/** @see `EntertainerCostume` in {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/entity/Staff.h} */
costume: number;
}
interface StaffSetNameArgs extends GameActionArgs {
@@ -1227,7 +1447,20 @@ declare global {
interface StaffSetOrdersArgs extends GameActionArgs {
id: number;
staffOrders: number; // bit mask. See STAFF_ORDERS in openrct2/entity/Staff.h
/**
* Bitmask. Only applies when {@link StaffHireArgs.staffType} === 0 (Handyman), or === 1 (Mechanic).
*
* Handyman:
* - `1`: `(0001)`: Sweeping
* - `2`: `(0010)`: Watering flowers
* - `4`: `(0100)`: Empty bins
* - `8`: `(1000)`: Mowing
*
* Mechanic:
* - `1`: `(0001)`: Inspect rides
* - `2`: `(0010)`: Fix rides
*/
staffOrders: number;
}
interface StaffSetPatrolAreaArgs extends GameActionArgs {
@@ -1236,7 +1469,12 @@ declare global {
y1: number;
x2: number;
y2: number;
mode: number; // 0: set, 1: unset, 2: clear all
/**
* - `0`: Set
* - `1`: Unset
* - `2`: Clear all
*/
mode: number;
}
interface SurfaceSetStyleArgs extends GameActionArgs {
@@ -1248,16 +1486,28 @@ declare global {
edgeStyle: number;
}
// does not support TileModifyType::AnyPaste
/**
* @todo Does not support `TileModifyType::AnyPaste`
*/
interface TileModifyArgs extends GameActionArgs {
x: number;
y: number;
setting: number; // see TileModifyType in openrct2/actions/TileModifyAction.h
/**
* @see `TileModifyType` in
* {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/TileModifyAction.h}
*/
setting: number;
value1: number;
value2: number; // see openrct2/actions/TileModifyAction.cpp
/**
* @see TileModifyType in
* {@link https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/actions/TileModifyAction.cpp}
*/
value2: number;
}
// currently unsupported
/**
* @todo Currently unsupported
*/
interface TrackDesignArgs extends GameActionArgs {
x: number;
y: number;
@@ -1302,7 +1552,8 @@ declare global {
y: number;
z: number;
object: number;
edge: number; // = direction
/** Direction */
edge: number;
primaryColour: number;
secondaryColour: number;
tertiaryColour: number;
@@ -1514,7 +1765,12 @@ declare global {
clearanceZ: number;
occupiedQuadrants: number;
isGhost: boolean;
isHidden: boolean; /** Take caution when changing this field, it may invalidate TileElements you have stored in your script. */
/**
* Take caution when changing this field, it may invalidate TileElements you have stored in your script.
*
* @todo Need to validate if this comment still accurately describes behavior in latest OpenRCT2
* */
isHidden: boolean;
}
interface SurfaceElement extends BaseTileElement {
@@ -1535,9 +1791,12 @@ declare global {
interface FootpathElement extends BaseTileElement {
type: "footpath";
object: number | null; /** Legacy footpaths, still in use. */
surfaceObject: number | null; /** NSF footpaths */
railingsObject: number | null; /** NSF footpaths */
/** Legacy footpaths, still in use. */
object: number | null;
/** NSF footpaths */
surfaceObject: number | null;
/** NSF footpaths */
railingsObject: number | null;
edges: number;
corners: number;
@@ -1782,8 +2041,8 @@ declare global {
}
/**
* Represents the definition of a loaded object that has one or more associated images.
*/
* Represents the definition of a loaded object that has one or more associated images.
*/
interface LoadedImageObject extends LoadedObject {
/**
* Id of the objects base image. This is also known as the preview image.
@@ -2298,9 +2557,9 @@ declare global {
readonly endY: number;
/**
* The relative starting direction. Usually 0, but will be 4
* for diagonal segments.
*/
* The relative starting direction. Usually 0, but will be 4
* for diagonal segments.
*/
readonly beginDirection: Direction8;
/**
@@ -2671,7 +2930,7 @@ declare global {
/**
* The location and direction of where the car is on the track.
*/
trackLocation: CarTrackLocation;
readonly trackLocation: CarTrackLocation;
/**
* The current g-forces of this car.
@@ -2711,6 +2970,12 @@ declare global {
* on the direction its moving in.
*/
travelBy(distance: number): void;
/**
* Moves the vehicle to the track piece specified in the parameters.
* Coordinates are tile coords.
*/
moveToTrack(x: number, y: number, elemIndex: number): void;
}
type VehicleStatus =
@@ -5362,7 +5627,6 @@ declare global {
getObject(type: "footpath_addition", index: number): FootpathAdditionObject;
getObject(type: "banner", index: number): BannerObject;
getObject(type: "scenery_group", index: number): SceneryGroupObject;
getObject(type: "music", index: number): LoadedObject;
/**
* Gets all the currently loaded objects for a given object type.
@@ -5376,7 +5640,6 @@ declare global {
getAllObjects(type: "footpath_addition"): FootpathAdditionObject[];
getAllObjects(type: "banner"): BannerObject[];
getAllObjects(type: "scenery_group"): SceneryGroupObject[];
getAllObjects(type: "music"): LoadedObject[];
}
/**
+2 -2
View File
@@ -45,8 +45,8 @@
<LibsSha1 Condition="'$(Platform)'=='Win32'">9984c1e317dcfb3aaf8e17f1db2ebb0f771e2373</LibsSha1>
<TitleSequencesUrl>https://github.com/OpenRCT2/title-sequences/releases/download/v0.4.14/title-sequences.zip</TitleSequencesUrl>
<TitleSequencesSha1>6c04781b959b468e1f65ec2d2f21f5aaa5e5724d</TitleSequencesSha1>
<ObjectsUrl>https://github.com/OpenRCT2/objects/releases/download/v1.5.1/objects.zip</ObjectsUrl>
<ObjectsSha1>e922b9fd779e7752176f1d0d8766c2ee6ad1e41b</ObjectsSha1>
<ObjectsUrl>https://github.com/OpenRCT2/objects/releases/download/v1.6.1/objects.zip</ObjectsUrl>
<ObjectsSha1>749a9df9ed728676ef7c3b87c8a6b813069476d3</ObjectsSha1>
<OpenSFXUrl>https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v1.0.5/opensound.zip</OpenSFXUrl>
<OpenSFXSha1>b1b1f1b241d2cbff63a1889c4dc5a09bdf769bfb</OpenSFXSha1>
<OpenMSXUrl>https://github.com/OpenRCT2/OpenMusic/releases/download/v1.6/openmusic.zip</OpenMSXUrl>
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+173
View File
@@ -363,6 +363,9 @@
"path": "icons/weather_blizzard.png",
"x": 1
},
{
"path": "logo_mono_dithered.png"
},
{
"path": "loader/loader_hybrid_supports.png",
"y": 10
@@ -9517,6 +9520,146 @@
"y": -2,
"palette": "keep"
},
{
"path": "track/wooden/left_bank_front_swne.png",
"x": -2,
"y": -7
},
{
"path": "track/wooden/left_bank_front_nwse.png",
"x": -31,
"y": -7
},
{
"path": "track/wooden/left_bank_rails_front_swne.png",
"x": -3,
"y": -7
},
{
"path": "track/wooden/left_bank_rails_front_nwse.png",
"x": -31,
"y": -7
},
{
"path": "track/wooden/24225_front.png",
"x": 9,
"y": -15
},
{
"path": "track/wooden/24232_front.png",
"x": -30,
"y": -15
},
{
"path": "track/wooden/24249_front.png",
"x": -4,
"y": -24
},
{
"path": "track/wooden/24256_front.png",
"x": -30,
"y": -24
},
{
"path": "track/wooden/24261_front.png",
"x": 9,
"y": -23
},
{
"path": "track/wooden/24262_front.png",
"x": -32,
"y": -7
},
{
"path": "track/wooden/24267_front.png",
"x": -3,
"y": -8
},
{
"path": "track/wooden/24268_front.png",
"x": -30,
"y": -23
},
{
"path": "track/wooden/24277_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/24284_front.png",
"x": -32,
"y": -16
},
{
"path": "track/wooden/24285_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/24292_front.png",
"x": -31,
"y": -16
},
{
"path": "track/wooden/25091_front.png",
"x": 0,
"y": -15
},
{
"path": "track/wooden/25098_front.png",
"x": -30,
"y": -15
},
{
"path": "track/wooden/25115_front.png",
"x": -4,
"y": -24
},
{
"path": "track/wooden/25122_front.png",
"x": -30,
"y": -24
},
{
"path": "track/wooden/25127_front.png",
"x": -1,
"y": -23
},
{
"path": "track/wooden/25128_front.png",
"x": -32,
"y": -7
},
{
"path": "track/wooden/25133_front.png",
"x": -4,
"y": -8
},
{
"path": "track/wooden/25134_front.png",
"x": -30,
"y": -23
},
{
"path": "track/wooden/25143_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/25150_front.png",
"x": -32,
"y": -16
},
{
"path": "track/wooden/25151_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/25158_front.png",
"x": -31,
"y": -16
},
{
"path": "track/wooden/booster_1.png",
"x": -34,
@@ -9583,6 +9726,36 @@
"x": -30,
"y": -8
},
{
"path": "track/wooden/station_no_platform_sw_ne.png",
"x": -34,
"y": -8
},
{
"path": "track/wooden/station_no_platform_nw_se.png",
"x": -30,
"y": -8
},
{
"path": "track/wooden/station_no_platform_block_brake_open_sw_ne.png",
"x": -34,
"y": -8
},
{
"path": "track/wooden/station_no_platform_block_brake_open_nw_se.png",
"x": -30,
"y": -8
},
{
"path": "track/wooden/station_no_platform_block_brake_closed_sw_ne.png",
"x": -34,
"y": -8
},
{
"path": "track/wooden/station_no_platform_block_brake_closed_nw_se.png",
"x": -30,
"y": -8
},
{
"path": "track/wooden/classic_wooden_preview_track.png",
"x": 1,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@@ -190,11 +190,11 @@ add_dependencies(bz2 libs)
include_directories(SYSTEM "${CMAKE_BINARY_DIR}/libs/include")
include_directories(SYSTEM "${CMAKE_BINARY_DIR}/libs/include/freetype2")
include_directories(SYSTEM "${CMAKE_BINARY_DIR}/libs/include/freetype")
include_directories(SYSTEM "${CMAKE_BINARY_DIR}/libs/include/SDL2")
# now build app's shared lib
add_definitions(-DDISABLE_DISCORD_RPC -DDISABLE_OPENGL -DGL_GLEXT_PROTOTYPES -D__STDC_LIMIT_MACROS -DNO_TTF -DSDL_MAIN_HANDLED)
add_definitions(-DDISABLE_DISCORD_RPC -DDISABLE_OPENGL -DGL_GLEXT_PROTOTYPES -D__STDC_LIMIT_MACROS -DSDL_MAIN_HANDLED)
# Enable scripting
add_definitions(-DENABLE_SCRIPTING)
@@ -250,7 +250,7 @@ file(GLOB_RECURSE OPENRCT2_CLI_SOURCES
"${ORCT2_ROOT}/src/openrct2-cli/*.hpp")
add_library(openrct2 SHARED ${LIBOPENRCT2_SOURCES})
target_link_libraries(openrct2 android stdc++ log dl SDL2 png z icu icuuc icudata crypto ssl)
target_link_libraries(openrct2 android stdc++ log dl SDL2 png z icu icuuc icudata crypto ssl freetype)
add_library(openrct2-ui SHARED ${OPENRCT2_GUI_SOURCES})
target_link_libraries(openrct2-ui openrct2 android stdc++ GLESv1_CM GLESv2 SDL2main speexdsp brotlicommon brotlidec bz2 freetype ogg vorbis vorbisfile FLAC)
+24 -24
View File
@@ -33,11 +33,11 @@
namespace OpenRCT2::Ui
{
enum class DIALOG_TYPE
enum class DialogType
{
NONE,
KDIALOG,
ZENITY,
none,
kdialog,
zenity,
};
class LinuxContext final : public IPlatformUiContext
@@ -101,18 +101,18 @@ namespace OpenRCT2::Ui
LOG_VERBOSE(message.c_str());
std::string executablePath;
DIALOG_TYPE dtype = GetDialogApp(&executablePath);
DialogType dtype = GetDialogApp(&executablePath);
switch (dtype)
{
case DIALOG_TYPE::KDIALOG:
case DialogType::kdialog:
{
std::string cmd = String::stdFormat(
"%s --title \"OpenRCT2\" --msgbox \"%s\"", executablePath.c_str(), message.c_str());
Platform::Execute(cmd);
break;
}
case DIALOG_TYPE::ZENITY:
case DialogType::zenity:
{
std::string cmd = String::stdFormat(
"%s --title=\"OpenRCT2\" --info --text=\"%s\"", executablePath.c_str(), message.c_str());
@@ -146,10 +146,10 @@ namespace OpenRCT2::Ui
std::string result;
std::string executablePath;
u8string directory = EscapePathForShell(desc.InitialDirectory + '/');
DIALOG_TYPE dtype = GetDialogApp(&executablePath);
DialogType dtype = GetDialogApp(&executablePath);
switch (dtype)
{
case DIALOG_TYPE::KDIALOG:
case DialogType::kdialog:
{
std::string action = (desc.Type == FileDialogType::Open) ? "--getopenfilename" : "--getsavefilename";
std::string filter = GetKDialogFilterString(desc.Filters);
@@ -163,7 +163,7 @@ namespace OpenRCT2::Ui
}
break;
}
case DIALOG_TYPE::ZENITY:
case DialogType::zenity:
{
std::string action = "--file-selection";
std::string flags;
@@ -217,7 +217,7 @@ namespace OpenRCT2::Ui
ShowMessageBox(window, msg);
return ShowFileDialog(window, desc);
}
if (desc.Type == FileDialogType::Save && access(result.c_str(), F_OK) != -1 && dtype == DIALOG_TYPE::KDIALOG)
if (desc.Type == FileDialogType::Save && access(result.c_str(), F_OK) != -1 && dtype == DialogType::kdialog)
{
std::string cmd = String::stdFormat("%s --yesno \"Overwrite %s?\"", executablePath.c_str(), result.c_str());
if (Platform::Execute(cmd) != 0)
@@ -233,10 +233,10 @@ namespace OpenRCT2::Ui
{
std::string result;
std::string executablePath;
DIALOG_TYPE dtype = GetDialogApp(&executablePath);
DialogType dtype = GetDialogApp(&executablePath);
switch (dtype)
{
case DIALOG_TYPE::KDIALOG:
case DialogType::kdialog:
{
std::string output;
std::string cmd = String::stdFormat(
@@ -247,7 +247,7 @@ namespace OpenRCT2::Ui
}
break;
}
case DIALOG_TYPE::ZENITY:
case DialogType::zenity:
{
std::string output;
std::string cmd = String::stdFormat(
@@ -270,7 +270,7 @@ namespace OpenRCT2::Ui
if (!_hasFilePicker.has_value())
{
std::string dummy;
_hasFilePicker = (GetDialogApp(&dummy) != DIALOG_TYPE::NONE);
_hasFilePicker = (GetDialogApp(&dummy) != DialogType::none);
}
return _hasFilePicker.value();
@@ -279,15 +279,15 @@ namespace OpenRCT2::Ui
bool HasMenuSupport() override
{
std::string executablePath;
DIALOG_TYPE dtype = GetDialogApp(&executablePath);
return dtype != DIALOG_TYPE::NONE;
DialogType dtype = GetDialogApp(&executablePath);
return dtype != DialogType::none;
}
int32_t ShowMenuDialog(
const std::vector<std::string>& options, const std::string& title, const std::string& text) override
{
std::string executablePath;
DIALOG_TYPE dtype = GetDialogApp(&executablePath);
DialogType dtype = GetDialogApp(&executablePath);
size_t longest_string = 0;
for (const auto& option : options)
@@ -304,7 +304,7 @@ namespace OpenRCT2::Ui
switch (dtype)
{
case DIALOG_TYPE::ZENITY:
case DialogType::zenity:
{
auto sb = StringBuilder();
sb.Append(String::stdFormat("zenity --list --column '' --width=%d --height=%d", width, height));
@@ -318,7 +318,7 @@ namespace OpenRCT2::Ui
Platform::Execute(sb.GetBuffer(), &buff);
return std::find(options.begin(), options.end(), buff) - options.begin();
}
case DIALOG_TYPE::KDIALOG:
case DialogType::kdialog:
{
auto sb = StringBuilder();
sb.Append(String::stdFormat("kdialog --geometry %dx%d --title '%s' --menu ", width, height, title.c_str()));
@@ -342,7 +342,7 @@ namespace OpenRCT2::Ui
}
private:
static DIALOG_TYPE GetDialogApp(std::string* executablePath)
static DialogType GetDialogApp(std::string* executablePath)
{
// Prefer zenity as it offers more required features, e.g., overwrite
// confirmation and selecting only existing files.
@@ -351,13 +351,13 @@ namespace OpenRCT2::Ui
// OpenRCT2 will fall back to an SDL pop-up if the user has neither.
if (Platform::FindApp("zenity", executablePath))
{
return DIALOG_TYPE::ZENITY;
return DialogType::zenity;
}
if (Platform::FindApp("kdialog", executablePath))
{
return DIALOG_TYPE::KDIALOG;
return DialogType::kdialog;
}
return DIALOG_TYPE::NONE;
return DialogType::none;
}
static std::string GetKDialogFilterString(const std::vector<FileDialogDesc::Filter> filters)
+4 -4
View File
@@ -180,7 +180,7 @@ public:
return _scaleQuality;
}
void SetFullscreenMode(FULLSCREEN_MODE mode) override
void SetFullscreenMode(FullscreenMode mode) override
{
static constexpr int32_t kSDLFullscreenFlags[] = {
0,
@@ -190,7 +190,7 @@ public:
uint32_t windowFlags = kSDLFullscreenFlags[EnumValue(mode)];
// HACK Changing window size when in fullscreen usually has no effect
if (mode == FULLSCREEN_MODE::FULLSCREEN)
if (mode == FullscreenMode::fullscreen)
{
SDL_SetWindowFullscreen(_window, 0);
@@ -200,7 +200,7 @@ public:
Config::Get().general.FullscreenWidth, Config::Get().general.FullscreenHeight);
SDL_SetWindowSize(_window, resolution.Width, resolution.Height);
}
else if (mode == FULLSCREEN_MODE::WINDOWED)
else if (mode == FullscreenMode::windowed)
{
SDL_SetWindowSize(_window, Config::Get().general.WindowWidth, Config::Get().general.WindowHeight);
}
@@ -820,7 +820,7 @@ private:
UpdateFullscreenResolutions();
SetFullscreenMode(static_cast<FULLSCREEN_MODE>(Config::Get().general.FullscreenMode));
SetFullscreenMode(static_cast<FullscreenMode>(Config::Get().general.FullscreenMode));
TriggerResize();
}
+13 -9
View File
@@ -574,11 +574,6 @@ namespace OpenRCT2
STR_CANT_REDUCE_INTEREST_RATE = 3255,
STR_CANT_REDUCE_MAX_LOAN = 3253,
STR_CASH_PER_GUEST_LABEL = 3260,
STR_CLIMATE_COOL_AND_WET = 3290,
STR_CLIMATE_WARM = STR_CLIMATE_COOL_AND_WET + 1,
STR_CLIMATE_HOT_AND_DRY = STR_CLIMATE_COOL_AND_WET + 2,
STR_CLIMATE_COLD = STR_CLIMATE_COOL_AND_WET + 3,
STR_CLIMATE_LABEL = 3289,
STR_ENTRY_PRICE_LABEL = 3281,
STR_FORBID_HIGH_CONSTRUCTION = 3271,
STR_FORBID_HIGH_CONSTRUCTION_TIP = 3272,
@@ -589,13 +584,15 @@ namespace OpenRCT2
STR_FORBID_TREE_REMOVAL = 3267,
STR_FORBID_TREE_REMOVAL_TIP = 3268,
STR_FREE_PARK_ENTER = 3279,
STR_GUESTS_PREFER_LESS_INTENSE_RIDES = 3256,
STR_GUESTS_PREFER_LESS_INTENSE_RIDES_TIP = 3257,
STR_GUESTS_PREFER_MORE_INTENSE_RIDES = 3258,
STR_GUESTS_PREFER_MORE_INTENSE_RIDES_TIP = 3259,
STR_GUEST_INIT_HAPPINESS = 3261,
STR_GUEST_INIT_HUNGER = 3262,
STR_GUEST_INIT_THIRST = 3263,
STR_GUESTS_PREFER_INTENSITY_BALANCED = 6747,
STR_GUESTS_PREFER_INTENSITY_LABEL = 6745,
STR_GUESTS_PREFER_INTENSITY_LESS_INTENSE_RIDES = 6748,
STR_GUESTS_PREFER_INTENSITY_MORE_INTENSE_RIDES = 6749,
STR_GUESTS_PREFER_INTENSITY_NONE = 6746,
STR_GUESTS_PREFER_INTENSITY_TIP = 6750,
STR_HARD_GUEST_GENERATION = 3275,
STR_HARD_GUEST_GENERATION_TIP = 3276,
STR_HARD_PARK_RATING = 3273,
@@ -834,6 +831,7 @@ namespace OpenRCT2
STR_FILEBROWSER_CUSTOMISE_DATE = 6715,
STR_FILEBROWSER_CUSTOMISE_FILENAME = 6714,
STR_FILEBROWSER_CUSTOMISE_SIZE = 6716,
STR_FILEBROWSER_CUSTOMISE_PREVIEW = 6736,
STR_FILEBROWSER_FILE_SIZE_VALUE = 6713,
STR_FILEBROWSER_FOLDER_NAME_PROMPT = 5986,
STR_FILEBROWSER_OVERWRITE_PROMPT = 2708,
@@ -853,6 +851,7 @@ namespace OpenRCT2
STR_LANDSCAPE_SAVE_FAILED = 1049,
STR_LOADSAVE_DEFAULT_TIP = 5892,
STR_NAME_COLUMN = 5373,
STR_NO_PREVIEW_AVAILABLE = 6737,
STR_OPENRCT2_HEIGHTMAP_FILE = 6055,
STR_OPENRCT2_LANDSCAPE_FILE = 1045,
STR_OPENRCT2_SAVED_GAME = 1043,
@@ -861,6 +860,11 @@ namespace OpenRCT2
STR_PARENT_FOLDER_TIP = 6735,
STR_RIGHTGUILLEMET = 6059,
STR_SCENARIO_SAVE_FAILED = 1048,
STR_SUMMARY_CASH = 6740,
STR_SUMMARY_DATE = 6739,
STR_SUMMARY_NUM_GUESTS = 6742,
STR_SUMMARY_NUM_RIDES = 6741,
STR_SUMMARY_PARK_RATING = 6738,
STR_TRACK_SAVE_FAILED = 5896,
STR_UNABLE_TO_CREATE_FOLDER = 5987,
+19 -8
View File
@@ -257,14 +257,15 @@ public:
intent->GetSIntExtra(INTENT_EXTRA_RIDE_ID));
case WindowClass::Loadsave:
{
uint32_t type = intent->GetUIntExtra(INTENT_EXTRA_LOADSAVE_TYPE);
auto action = intent->GetEnumExtra<LoadSaveAction>(INTENT_EXTRA_LOADSAVE_ACTION);
auto type = intent->GetEnumExtra<LoadSaveType>(INTENT_EXTRA_LOADSAVE_TYPE);
std::string defaultPath = intent->GetStringExtra(INTENT_EXTRA_PATH);
LoadSaveCallback callback = reinterpret_cast<LoadSaveCallback>(
intent->GetCloseCallbackExtra(INTENT_EXTRA_CALLBACK));
TrackDesign* trackDesign = static_cast<TrackDesign*>(intent->GetPointerExtra(INTENT_EXTRA_TRACK_DESIGN));
auto* w = FileBrowser::OpenPreferred(
type, defaultPath,
[callback](int32_t result, std::string_view path) {
action, type, defaultPath,
[callback](ModalResult result, std::string_view path) {
if (callback != nullptr)
{
callback(result, std::string(path).c_str());
@@ -585,6 +586,10 @@ public:
{
switch (windowClass)
{
case WindowClass::EditorObjectSelection:
EditorObjectSelectionClose();
break;
case WindowClass::NetworkStatus:
WindowNetworkStatusClose();
break;
@@ -687,7 +692,7 @@ public:
{
if (loc.x < 0)
return false;
if (loc.y <= kTopToolbarHeight && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO))
if (loc.y <= kTopToolbarHeight && gLegacyScene != LegacyScene::titleSequence)
return false;
if (loc.x + width > ContextGetWidth())
return false;
@@ -708,7 +713,7 @@ public:
unk = screenWidth + (unk * 2);
if (loc.x > unk)
return false;
if (loc.y <= kTopToolbarHeight && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO))
if (loc.y <= kTopToolbarHeight && gLegacyScene != LegacyScene::titleSequence)
return false;
unk = screenHeight - (height / 4);
if (loc.y > unk)
@@ -726,7 +731,7 @@ public:
else if (screenPos.x + width > screenWidth)
screenPos.x = screenWidth - width;
auto toolbarAllowance = (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) ? 0 : (kTopToolbarHeight + 1);
auto toolbarAllowance = gLegacyScene == LegacyScene::titleSequence ? 0 : (kTopToolbarHeight + 1);
if (height - toolbarAllowance > screenHeight || screenPos.y < toolbarAllowance)
screenPos.y = toolbarAllowance;
else if (screenPos.y + height - toolbarAllowance > screenHeight)
@@ -930,6 +935,12 @@ public:
*/
void Close(WindowBase& w) override
{
if (!w.CanClose())
{
// Something's preventing this window from closing -- bail out early
return;
}
w.OnClose();
// Remove viewport
@@ -1025,9 +1036,9 @@ public:
{
CloseByClass(WindowClass::Dropdown);
if (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR)
if (gLegacyScene == LegacyScene::scenarioEditor)
{
if (GetGameState().EditorStep != EditorStep::LandscapeEditor)
if (getGameState().editorStep != EditorStep::LandscapeEditor)
return;
}
+1 -1
View File
@@ -306,7 +306,7 @@ int32_t AudioMixer::ApplyVolume(const IAudioChannel* channel, void* buffer, size
volumeAdjust *= _adjustSoundVolume;
// Cap sound volume on title screen so music is more audible
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
if (gLegacyScene == LegacyScene::titleSequence)
{
volumeAdjust = std::min(volumeAdjust, 0.75f);
}
+2 -2
View File
@@ -32,7 +32,7 @@ namespace OpenRCT2::Ui
// TODO Bitmaps aren't very complicated to read so we should probably just write our
// own implementation in libopenrct2 and spare the AOT implementation registration.
static Image ReadBitmap(std::istream& istream, IMAGE_FORMAT format)
static Image ReadBitmap(std::istream& istream, ImageFormat format)
{
auto buffer = ReadToVector(istream);
auto sdlStream = SDL_RWFromConstMem(buffer.data(), static_cast<int>(buffer.size()));
@@ -101,6 +101,6 @@ namespace OpenRCT2::Ui
void RegisterBitmapReader()
{
Imaging::SetReader(IMAGE_FORMAT::BITMAP, ReadBitmap);
Imaging::SetReader(ImageFormat::bitmap, ReadBitmap);
}
} // namespace OpenRCT2::Ui
@@ -112,6 +112,7 @@ namespace OpenRCT2::Ui
GLuint colour;
ivec4 bounds;
GLint depth;
GLfloat zoom;
enum
{
@@ -64,12 +64,12 @@ DrawRectShader::DrawRectShader()
vTexColourAtlas, 1, GL_INT, sizeof(DrawRectCommand),
reinterpret_cast<void*>(offsetof(DrawRectCommand, texColourAtlas)));
glVertexAttribPointer(
vTexColourBounds, 4, GL_FLOAT, GL_FALSE, sizeof(DrawRectCommand),
vTexColourCoords, 4, GL_FLOAT, GL_FALSE, sizeof(DrawRectCommand),
reinterpret_cast<void*>(offsetof(DrawRectCommand, texColourBounds)));
glVertexAttribIPointer(
vTexMaskAtlas, 1, GL_INT, sizeof(DrawRectCommand), reinterpret_cast<void*>(offsetof(DrawRectCommand, texMaskAtlas)));
glVertexAttribPointer(
vTexMaskBounds, 4, GL_FLOAT, GL_FALSE, sizeof(DrawRectCommand),
vTexMaskCoords, 4, GL_FLOAT, GL_FALSE, sizeof(DrawRectCommand),
reinterpret_cast<void*>(offsetof(DrawRectCommand, texMaskBounds)));
glVertexAttribIPointer(
vPalettes, 3, GL_INT, sizeof(DrawRectCommand), reinterpret_cast<void*>(offsetof(DrawRectCommand, palettes)));
@@ -81,6 +81,8 @@ DrawRectShader::DrawRectShader()
vBounds, 4, GL_INT, sizeof(DrawRectCommand), reinterpret_cast<void*>(offsetof(DrawRectCommand, bounds)));
glVertexAttribIPointer(
vDepth, 1, GL_INT, sizeof(DrawRectCommand), reinterpret_cast<void*>(offsetof(DrawRectCommand, depth)));
glVertexAttribPointer(
vZoom, 1, GL_FLOAT, GL_FALSE, sizeof(DrawRectCommand), reinterpret_cast<void*>(offsetof(DrawRectCommand, zoom)));
glEnableVertexAttribArray(vVertMat + 0);
glEnableVertexAttribArray(vVertMat + 1);
@@ -90,25 +92,27 @@ DrawRectShader::DrawRectShader()
glEnableVertexAttribArray(vClip);
glEnableVertexAttribArray(vTexColourAtlas);
glEnableVertexAttribArray(vTexColourBounds);
glEnableVertexAttribArray(vTexColourCoords);
glEnableVertexAttribArray(vTexMaskAtlas);
glEnableVertexAttribArray(vTexMaskBounds);
glEnableVertexAttribArray(vTexMaskCoords);
glEnableVertexAttribArray(vPalettes);
glEnableVertexAttribArray(vFlags);
glEnableVertexAttribArray(vColour);
glEnableVertexAttribArray(vBounds);
glEnableVertexAttribArray(vDepth);
glEnableVertexAttribArray(vZoom);
glVertexAttribDivisor(vClip, 1);
glVertexAttribDivisor(vTexColourAtlas, 1);
glVertexAttribDivisor(vTexColourBounds, 1);
glVertexAttribDivisor(vTexColourCoords, 1);
glVertexAttribDivisor(vTexMaskAtlas, 1);
glVertexAttribDivisor(vTexMaskBounds, 1);
glVertexAttribDivisor(vTexMaskCoords, 1);
glVertexAttribDivisor(vPalettes, 1);
glVertexAttribDivisor(vFlags, 1);
glVertexAttribDivisor(vColour, 1);
glVertexAttribDivisor(vBounds, 1);
glVertexAttribDivisor(vDepth, 1);
glVertexAttribDivisor(vZoom, 1);
Use();
glUniform1i(uTexture, 0);
@@ -136,14 +140,15 @@ void DrawRectShader::GetLocations()
vClip = GetAttributeLocation("vClip");
vTexColourAtlas = GetAttributeLocation("vTexColourAtlas");
vTexColourBounds = GetAttributeLocation("vTexColourBounds");
vTexColourCoords = GetAttributeLocation("vTexColourCoords");
vTexMaskAtlas = GetAttributeLocation("vTexMaskAtlas");
vTexMaskBounds = GetAttributeLocation("vTexMaskBounds");
vTexMaskCoords = GetAttributeLocation("vTexMaskCoords");
vPalettes = GetAttributeLocation("vPalettes");
vFlags = GetAttributeLocation("vFlags");
vColour = GetAttributeLocation("vColour");
vBounds = GetAttributeLocation("vBounds");
vDepth = GetAttributeLocation("vDepth");
vZoom = GetAttributeLocation("vZoom");
vVertMat = GetAttributeLocation("vVertMat");
vVertVec = GetAttributeLocation("vVertVec");
@@ -31,14 +31,15 @@ namespace OpenRCT2::Ui
GLuint vClip;
GLuint vTexColourAtlas;
GLuint vTexColourBounds;
GLuint vTexColourCoords;
GLuint vTexMaskAtlas;
GLuint vTexMaskBounds;
GLuint vTexMaskCoords;
GLuint vPalettes;
GLuint vFlags;
GLuint vColour;
GLuint vBounds;
GLuint vDepth;
GLuint vZoom;
GLuint _vbo;
GLuint _vboInstances;
@@ -358,9 +358,9 @@ public:
return &_bitsDPI;
}
DRAWING_ENGINE_FLAGS GetFlags() override
DrawingEngineFlags GetFlags() override
{
return DEF_NONE;
return {};
}
void InvalidateImage(uint32_t image) override
@@ -534,6 +534,7 @@ void OpenGLDrawingContext::FillRect(
command.bounds = { left, top, right + 1, bottom + 1 };
command.flags = DrawRectCommand::FLAG_NO_TEXTURE;
command.depth = _drawCount++;
command.zoom = 1.0f;
if (colour & 0x1000000)
{
@@ -569,6 +570,7 @@ void OpenGLDrawingContext::FilterRect(
command.bounds = { left, top, right + 1, bottom + 1 };
command.flags = DrawRectCommand::FLAG_NO_TEXTURE;
command.depth = _drawCount++;
command.zoom = 1.0f;
}
// Compute the bit code for a point p relative to the clip rectangle defined by topLeft and bottomRight
@@ -676,7 +678,13 @@ void OpenGLDrawingContext::DrawLine(DrawPixelInfo& dpi, uint32_t colour, const S
command.depth = _drawCount++;
}
void OpenGLDrawingContext::DrawSprite(DrawPixelInfo& dpi, const ImageId imageId, int32_t x, int32_t y)
static auto EuclideanRemainder(const auto a, const auto b)
{
const auto r = a % b;
return r >= 0 ? r : r + b;
};
void OpenGLDrawingContext::DrawSprite(DrawPixelInfo& dpi, const ImageId imageId, const int32_t x, const int32_t y)
{
auto g1Element = GfxGetG1Element(imageId);
if (g1Element == nullptr)
@@ -705,48 +713,33 @@ void OpenGLDrawingContext::DrawSprite(DrawPixelInfo& dpi, const ImageId imageId,
}
}
auto texture = _textureCache->GetOrLoadImageTexture(imageId);
int32_t left = x + g1Element->x_offset;
int32_t top = y + g1Element->y_offset;
int32_t zoom_mask;
if (dpi.zoom_level >= ZoomLevel{ 0 })
zoom_mask = dpi.zoom_level.ApplyTo(0xFFFFFFFF);
else
zoom_mask = 0xFFFFFFFF;
if (dpi.zoom_level != ZoomLevel{ 0 } && (g1Element->flags & G1_FLAG_RLE_COMPRESSION))
int32_t xModifier = 0;
int32_t yModifier = 0;
int32_t widthModifier = 0;
if (dpi.zoom_level > ZoomLevel{ 0 })
{
top -= ~zoom_mask;
const int32_t interval = dpi.zoom_level.ApplyTo(1);
xModifier = EuclideanRemainder(left, interval);
xModifier = xModifier ? interval - xModifier : 0;
yModifier = EuclideanRemainder(top, interval);
widthModifier = EuclideanRemainder(left + g1Element->width, interval);
widthModifier = widthModifier ? interval - widthModifier : 0;
texture.coords.x += xModifier;
texture.coords.y += (interval - 1) - yModifier;
}
if (!(g1Element->flags & G1_FLAG_RLE_COMPRESSION))
{
top &= zoom_mask;
left += ~zoom_mask;
}
left &= zoom_mask;
int32_t right = left + g1Element->width;
int32_t bottom = top + g1Element->height;
if (dpi.zoom_level != ZoomLevel{ 0 } && (g1Element->flags & G1_FLAG_RLE_COMPRESSION))
{
bottom += top & ~zoom_mask;
}
if (left > right)
{
std::swap(left, right);
}
if (top > bottom)
{
std::swap(top, bottom);
}
left = dpi.zoom_level.ApplyInversedTo(left);
left = dpi.zoom_level.ApplyInversedTo(left + xModifier);
top = dpi.zoom_level.ApplyInversedTo(top);
right = dpi.zoom_level.ApplyInversedTo(right);
bottom = dpi.zoom_level.ApplyInversedTo(bottom);
int32_t right = left + dpi.zoom_level.ApplyInversedTo(g1Element->width + widthModifier);
int32_t bottom = top + dpi.zoom_level.ApplyInversedTo(g1Element->height + yModifier);
const ScreenRect clip = CalculateClipping(dpi);
left += clip.GetLeft() - dpi.x;
@@ -754,7 +747,8 @@ void OpenGLDrawingContext::DrawSprite(DrawPixelInfo& dpi, const ImageId imageId,
right += clip.GetLeft() - dpi.x;
bottom += clip.GetTop() - dpi.y;
const auto texture = _textureCache->GetOrLoadImageTexture(imageId);
const float zoom = dpi.zoom_level >= ZoomLevel{ 0 } ? static_cast<float>(dpi.zoom_level.ApplyTo(1))
: 1.0f / static_cast<float>(dpi.zoom_level.ApplyInversedTo(1));
int paletteCount;
ivec3 palettes{};
@@ -794,14 +788,15 @@ void OpenGLDrawingContext::DrawSprite(DrawPixelInfo& dpi, const ImageId imageId,
command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() };
command.texColourAtlas = texture.index;
command.texColourBounds = texture.normalizedBounds;
command.texColourBounds = texture.coords;
command.texMaskAtlas = texture.index;
command.texMaskBounds = texture.normalizedBounds;
command.texMaskBounds = texture.coords;
command.palettes = palettes;
command.colour = palettes.x - (special ? 1 : 0);
command.bounds = { left, top, right, bottom };
command.flags = special ? 0 : DrawRectCommand::FLAG_NO_TEXTURE | DrawRectCommand::FLAG_MASK;
command.depth = _drawCount++;
command.zoom = zoom;
}
else
{
@@ -809,14 +804,15 @@ void OpenGLDrawingContext::DrawSprite(DrawPixelInfo& dpi, const ImageId imageId,
command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() };
command.texColourAtlas = texture.index;
command.texColourBounds = texture.normalizedBounds;
command.texColourBounds = texture.coords;
command.texMaskAtlas = 0;
command.texMaskBounds = { 0.0f, 0.0f, 0.0f, 0.0f };
command.texMaskBounds = { 0.0f, 0.0f, texture.coords.z, texture.coords.w };
command.palettes = palettes;
command.colour = 0;
command.bounds = { left, top, right, bottom };
command.flags = paletteCount;
command.depth = _drawCount++;
command.zoom = zoom;
}
}
@@ -863,18 +859,22 @@ void OpenGLDrawingContext::DrawSpriteRawMasked(
right += clip.GetLeft() - dpi.x;
bottom += clip.GetTop() - dpi.y;
const float zoom = dpi.zoom_level >= ZoomLevel{ 0 } ? static_cast<float>(dpi.zoom_level.ApplyTo(1))
: 1.0f / static_cast<float>(dpi.zoom_level.ApplyInversedTo(1));
DrawRectCommand& command = _commandBuffers.rects.allocate();
command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() };
command.texColourAtlas = textureColour.index;
command.texColourBounds = textureColour.normalizedBounds;
command.texColourBounds = textureColour.coords;
command.texMaskAtlas = textureMask.index;
command.texMaskBounds = textureMask.normalizedBounds;
command.texMaskBounds = textureMask.coords;
command.palettes = { 0, 0, 0 };
command.flags = DrawRectCommand::FLAG_MASK;
command.colour = 0;
command.bounds = { left, top, right, bottom };
command.depth = _drawCount++;
command.zoom = zoom;
}
void OpenGLDrawingContext::DrawSpriteSolid(DrawPixelInfo& dpi, const ImageId image, int32_t x, int32_t y, uint8_t colour)
@@ -918,12 +918,13 @@ void OpenGLDrawingContext::DrawSpriteSolid(DrawPixelInfo& dpi, const ImageId ima
command.texColourAtlas = 0;
command.texColourBounds = { 0.0f, 0.0f, 0.0f, 0.0f };
command.texMaskAtlas = texture.index;
command.texMaskBounds = texture.normalizedBounds;
command.texMaskBounds = texture.coords;
command.palettes = { 0, 0, 0 };
command.flags = DrawRectCommand::FLAG_NO_TEXTURE | DrawRectCommand::FLAG_MASK;
command.colour = colour & 0xFF;
command.bounds = { left, top, right, bottom };
command.depth = _drawCount++;
command.zoom = 1.0f;
}
void OpenGLDrawingContext::DrawGlyph(DrawPixelInfo& dpi, const ImageId image, int32_t x, int32_t y, const PaletteMap& palette)
@@ -961,11 +962,14 @@ void OpenGLDrawingContext::DrawGlyph(DrawPixelInfo& dpi, const ImageId image, in
right += clip.GetLeft() - dpi.x;
bottom += clip.GetTop() - dpi.y;
const float zoom = dpi.zoom_level >= ZoomLevel{ 0 } ? static_cast<float>(dpi.zoom_level.ApplyTo(1))
: 1.0f / static_cast<float>(dpi.zoom_level.ApplyInversedTo(1));
DrawRectCommand& command = _commandBuffers.rects.allocate();
command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() };
command.texColourAtlas = texture.index;
command.texColourBounds = texture.normalizedBounds;
command.texColourBounds = texture.coords;
command.texMaskAtlas = 0;
command.texMaskBounds = { 0.0f, 0.0f, 0.0f, 0.0f };
command.palettes = { 0, 0, 0 };
@@ -973,6 +977,7 @@ void OpenGLDrawingContext::DrawGlyph(DrawPixelInfo& dpi, const ImageId image, in
command.colour = 0;
command.bounds = { left, top, right, bottom };
command.depth = _drawCount++;
command.zoom = zoom;
}
void OpenGLDrawingContext::DrawTTFBitmap(
@@ -1027,7 +1032,7 @@ void OpenGLDrawingContext::DrawTTFBitmap(
DrawRectCommand& command = _commandBuffers.rects.allocate();
command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() };
command.texColourAtlas = texture.index;
command.texColourBounds = texture.normalizedBounds;
command.texColourBounds = texture.coords;
command.texMaskAtlas = 0;
command.texMaskBounds = { 0.0f, 0.0f, 0.0f, 0.0f };
command.palettes = { 0, 0, 0 };
@@ -1035,6 +1040,7 @@ void OpenGLDrawingContext::DrawTTFBitmap(
command.colour = info->palette[3];
command.bounds = b;
command.depth = _drawCount++;
command.zoom = 1.0f;
}
}
if (info->flags & TEXT_DRAW_FLAG_INSET)
@@ -1042,7 +1048,7 @@ void OpenGLDrawingContext::DrawTTFBitmap(
DrawRectCommand& command = _commandBuffers.rects.allocate();
command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() };
command.texColourAtlas = texture.index;
command.texColourBounds = texture.normalizedBounds;
command.texColourBounds = texture.coords;
command.texMaskAtlas = 0;
command.texMaskBounds = { 0.0f, 0.0f, 0.0f, 0.0f };
command.palettes = { 0, 0, 0 };
@@ -1050,12 +1056,13 @@ void OpenGLDrawingContext::DrawTTFBitmap(
command.colour = info->palette[3];
command.bounds = { left + 1, top + 1, right + 1, bottom + 1 };
command.depth = _drawCount++;
command.zoom = 1.0f;
}
auto& cmdBuf = hintingThreshold > 0 ? _commandBuffers.transparent : _commandBuffers.rects;
DrawRectCommand& command = cmdBuf.allocate();
command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() };
command.texColourAtlas = texture.index;
command.texColourBounds = texture.normalizedBounds;
command.texColourBounds = texture.coords;
command.texMaskAtlas = 0;
command.texMaskBounds = { 0.0f, 0.0f, 0.0f, 0.0f };
command.palettes = { 0, 0, 0 };
@@ -1063,6 +1070,7 @@ void OpenGLDrawingContext::DrawTTFBitmap(
command.colour = info->palette[1];
command.bounds = { left, top, right, bottom };
command.depth = _drawCount++;
command.zoom = 1.0f;
#endif // NO_TTF
}
@@ -59,7 +59,7 @@ GLuint OpenGLShader::GetShaderId()
std::string OpenGLShader::GetPath(const std::string& name)
{
auto env = GetContext()->GetPlatformEnvironment();
auto shadersPath = env->GetDirectoryPath(DIRBASE::OPENRCT2, DIRID::SHADER);
auto shadersPath = env->GetDirectoryPath(DirBase::openrct2, DirId::shaders);
auto path = Path::Combine(shadersPath, name);
if (_type == GL_VERTEX_SHADER)
{
@@ -74,7 +74,7 @@ std::string OpenGLShader::GetPath(const std::string& name)
std::string OpenGLShader::ReadSourceCode(const std::string& path)
{
auto fs = FileStream(path, FILE_MODE_OPEN);
auto fs = FileStream(path, FileMode::open);
uint64_t fileLength = fs.GetLength();
if (fileLength > kMaxSourceSize)
@@ -83,7 +83,7 @@ BasicTextureInfo TextureCache::GetOrLoadImageTexture(const ImageId imageId)
const auto& info = _textureCache[index];
return {
info.index,
info.normalizedBounds,
info.coords,
};
}
}
@@ -123,7 +123,7 @@ BasicTextureInfo TextureCache::GetOrLoadGlyphTexture(const ImageId imageId, cons
const auto& info = kvp->second;
return {
info.index,
info.normalizedBounds,
info.coords,
};
}
}
@@ -151,7 +151,7 @@ BasicTextureInfo TextureCache::GetOrLoadBitmapTexture(ImageIndex image, const vo
const auto& info = _textureCache[index];
return {
info.index,
info.normalizedBounds,
info.coords,
};
}
}
@@ -63,7 +63,7 @@ namespace OpenRCT2::Ui
struct BasicTextureInfo
{
GLuint index;
vec4 normalizedBounds;
vec4 coords;
};
// Location of an image (texture atlas index, slot and normalized coordinates)
@@ -124,7 +124,12 @@ namespace OpenRCT2::Ui
info.index = _index;
info.slot = slot;
info.bounds = bounds;
info.normalizedBounds = NormalizeCoordinates(bounds);
info.coords = vec4{
static_cast<float>(bounds.x),
static_cast<float>(bounds.y),
static_cast<float>(_atlasWidth),
static_cast<float>(_atlasHeight),
};
return info;
}
@@ -176,16 +181,6 @@ namespace OpenRCT2::Ui
_imageSize * row + actualHeight,
};
}
[[nodiscard]] vec4 NormalizeCoordinates(const ivec4& coords) const
{
return vec4{
coords.x / static_cast<float>(_atlasWidth),
coords.y / static_cast<float>(_atlasHeight),
coords.z / static_cast<float>(_atlasWidth),
coords.w / static_cast<float>(_atlasHeight),
};
}
};
class TextureCache final
@@ -13,8 +13,8 @@
#include <algorithm>
#include <cassert>
#include <map>
#include <vector>
#include <sfl/small_map.hpp>
#include <sfl/small_vector.hpp>
namespace OpenRCT2::Ui
{
@@ -23,11 +23,18 @@ namespace OpenRCT2::Ui
*/
struct XData
{
int32_t xposition;
int16_t xposition;
int16_t top;
int16_t bottom;
bool begin;
int32_t top, bottom;
};
using SweepLine = std::vector<XData>;
#ifdef _DEBUG
// Debug builds use a lot of stack so we have to keep it small.
using SweepLine = sfl::small_vector<XData, 4096>;
#else
using SweepLine = sfl::small_vector<XData, 8192>;
#endif
/*
* Creates a list of vertical bounding box edges, stored as xdata and sorted
@@ -41,10 +48,10 @@ namespace OpenRCT2::Ui
for (const DrawRectCommand& command : transparent)
{
int32_t left = std::min(std::max(command.bounds.x, command.clip.x), command.clip.z);
int32_t top = std::min(std::max(command.bounds.y, command.clip.y), command.clip.w);
int32_t right = std::min(std::max(command.bounds.z, command.clip.x), command.clip.z);
int32_t bottom = std::min(std::max(command.bounds.w, command.clip.y), command.clip.w);
int16_t left = std::min(std::max(command.bounds.x, command.clip.x), command.clip.z);
int16_t top = std::min(std::max(command.bounds.y, command.clip.y), command.clip.w);
int16_t right = std::min(std::max(command.bounds.z, command.clip.x), command.clip.z);
int16_t bottom = std::min(std::max(command.bounds.w, command.clip.y), command.clip.w);
assert(left <= right);
assert(top <= bottom);
@@ -53,8 +60,8 @@ namespace OpenRCT2::Ui
if (top == bottom)
continue;
x_sweep.push_back({ left, true, top, bottom });
x_sweep.push_back({ right, false, top, bottom });
x_sweep.push_back({ left, top, bottom, true });
x_sweep.push_back({ right, top, bottom, false });
}
std::sort(x_sweep.begin(), x_sweep.end(), [](const XData& a, const XData& b) -> bool {
@@ -77,9 +84,10 @@ namespace OpenRCT2::Ui
*/
struct YData
{
int32_t count, depth;
int32_t count;
int32_t depth;
};
using IntervalTree = std::map<int32_t, YData>;
using IntervalTree = sfl::small_map<int32_t, YData, 2048>;
/*
* Inserts the interval's top endpoint into the interval tree. If the endpoint
@@ -87,7 +95,7 @@ namespace OpenRCT2::Ui
*/
static inline IntervalTree::iterator InsertTopEndpoint(IntervalTree& y_intersect, int32_t top)
{
auto top_in = y_intersect.insert({ top, { 1, 0 } });
auto top_in = y_intersect.emplace(top, YData{ 1, 0 });
IntervalTree::iterator top_it = top_in.first;
if (top_in.second)
{
@@ -111,7 +119,7 @@ namespace OpenRCT2::Ui
*/
static inline IntervalTree::iterator InsertBottomEndpoint(IntervalTree& y_intersect, int32_t bottom)
{
auto bottom_in = y_intersect.insert({ bottom, { 1, 1 } });
auto bottom_in = y_intersect.emplace(bottom, YData{ 1, 1 });
IntervalTree::iterator bottom_it = bottom_in.first;
if (bottom_in.second)
{
+1 -1
View File
@@ -112,7 +112,7 @@ void InputManager::Process()
void InputManager::HandleViewScrolling()
{
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
if (gLegacyScene == LegacyScene::titleSequence)
return;
auto& console = GetInGameConsole();
+36 -98
View File
@@ -32,11 +32,9 @@
#include <openrct2/interface/Cursors.h>
#include <openrct2/platform/Platform.h>
#include <openrct2/ride/RideData.h>
#include <openrct2/scenario/Scenario.h>
#include <openrct2/ui/UiContext.h>
#include <openrct2/ui/WindowManager.h>
#include <openrct2/world/Banner.h>
#include <openrct2/world/Map.h>
#include <openrct2/world/Scenery.h>
#include <optional>
@@ -124,7 +122,7 @@ namespace OpenRCT2
GameHandleInputMouse(screenCoords, state);
}
if (_inputFlags & INPUT_FLAG_5)
if (gInputFlags.has(InputFlag::unk5))
{
GameHandleInputMouse(screenCoords, state);
}
@@ -321,7 +319,8 @@ namespace OpenRCT2
switch (widget->type)
{
case WindowWidgetType::Viewport:
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_MANAGER | SCREEN_FLAGS_TITLE_DEMO)))
if (!(gLegacyScene == LegacyScene::trackDesignsManager
|| gLegacyScene == LegacyScene::titleSequence))
{
InputViewportDragBegin(*w);
}
@@ -393,11 +392,11 @@ namespace OpenRCT2
break;
}
if (!InputTestFlag(INPUT_FLAG_4))
if (!gInputFlags.has(InputFlag::unk4))
break;
if (w->classification != _dragWidget.window_classification || w->number != _dragWidget.window_number
|| !(_inputFlags & INPUT_FLAG_TOOL_ACTIVE))
|| !(gInputFlags.has(InputFlag::toolActive)))
{
break;
}
@@ -414,7 +413,7 @@ namespace OpenRCT2
_inputState = InputState::Reset;
if (_dragWidget.window_number == w->number)
{
if ((_inputFlags & INPUT_FLAG_TOOL_ACTIVE))
if (gInputFlags.has(InputFlag::toolActive))
{
w = windowMgr->FindByNumber(
gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number);
@@ -423,7 +422,7 @@ namespace OpenRCT2
w->OnToolUp(gCurrentToolWidget.widget_index, screenCoords);
}
}
else if (!(_inputFlags & INPUT_FLAG_4))
else if (!gInputFlags.has(InputFlag::unk4))
{
ViewportInteractionLeftClick(screenCoords);
}
@@ -523,7 +522,7 @@ namespace OpenRCT2
int32_t targetWidth = _originalWindowWidth + differentialCoords.x - w.width;
int32_t targetHeight = _originalWindowHeight + differentialCoords.y - w.height;
WindowResize(w, targetWidth, targetHeight);
WindowResizeByDelta(w, targetWidth, targetHeight);
}
}
@@ -553,7 +552,7 @@ namespace OpenRCT2
}
WindowUnfollowSprite(w);
// gInputFlags |= INPUT_FLAG_5;
// gInputFlags.set(InputFlag::unk5);
}
static void InputViewportDragContinue()
@@ -1085,12 +1084,12 @@ namespace OpenRCT2
gInputDragLast = screenCoords;
_dragWidget.window_classification = windowClass;
_dragWidget.window_number = windowNumber;
if (_inputFlags & INPUT_FLAG_TOOL_ACTIVE)
if (gInputFlags.has(InputFlag::toolActive))
{
w = windowMgr->FindByNumber(gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number);
if (w != nullptr)
{
InputSetFlag(INPUT_FLAG_4, true);
gInputFlags.set(InputFlag::unk4);
w->OnToolDown(gCurrentToolWidget.widget_index, screenCoords);
}
}
@@ -1107,6 +1106,7 @@ namespace OpenRCT2
case WindowWidgetType::Groupbox:
case WindowWidgetType::ProgressBar:
case WindowWidgetType::Placeholder:
case WindowWidgetType::HorizontalSeparator:
// Non-interactive widget type
break;
case WindowWidgetType::ImgBtn:
@@ -1130,7 +1130,7 @@ namespace OpenRCT2
gPressedWidget.window_classification = windowClass;
gPressedWidget.window_number = windowNumber;
gPressedWidget.widget_index = widgetIndex;
_inputFlags |= INPUT_FLAG_WIDGET_PRESSED;
gInputFlags.set(InputFlag::widgetPressed);
_inputState = InputState::WidgetPressed;
_clickRepeatTicks = gCurrentRealTimeTicks;
@@ -1163,7 +1163,7 @@ namespace OpenRCT2
switch (window->widgets[widgetId].type)
{
case WindowWidgetType::Viewport:
if (!(_inputFlags & INPUT_FLAG_TOOL_ACTIVE))
if (!gInputFlags.has(InputFlag::toolActive))
{
if (ViewportInteractionLeftOver(screenCoords))
{
@@ -1177,10 +1177,7 @@ namespace OpenRCT2
case WindowWidgetType::Frame:
case WindowWidgetType::Resize:
if (!(window->flags & WF_RESIZABLE))
break;
if (window->min_width == window->max_width && window->min_height == window->max_height)
if (!window->canBeResized())
break;
if (screenCoords.x < window->windowPos.x + window->width - 0x13)
@@ -1228,7 +1225,7 @@ namespace OpenRCT2
*/
void ProcessMouseTool(const ScreenCoordsXY& screenCoords)
{
if (_inputFlags & INPUT_FLAG_TOOL_ACTIVE)
if (gInputFlags.has(InputFlag::toolActive))
{
auto* windowMgr = GetWindowManager();
WindowBase* w = windowMgr->FindByNumber(gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number);
@@ -1240,65 +1237,6 @@ namespace OpenRCT2
}
}
const std::map<colour_t, StringId> kColourToTip = {
{ COLOUR_BLACK, STR_COLOUR_BLACK_TIP },
{ COLOUR_GREY, STR_COLOUR_GREY_TIP },
{ COLOUR_WHITE, STR_COLOUR_WHITE_TIP },
{ COLOUR_DARK_PURPLE, STR_COLOUR_DARK_PURPLE_TIP },
{ COLOUR_LIGHT_PURPLE, STR_COLOUR_LIGHT_PURPLE_TIP },
{ COLOUR_BRIGHT_PURPLE, STR_COLOUR_BRIGHT_PURPLE_TIP },
{ COLOUR_DARK_BLUE, STR_COLOUR_DARK_BLUE_TIP },
{ COLOUR_LIGHT_BLUE, STR_COLOUR_LIGHT_BLUE_TIP },
{ COLOUR_ICY_BLUE, STR_COLOUR_ICY_BLUE_TIP },
{ COLOUR_TEAL, STR_COLOUR_TEAL_TIP },
{ COLOUR_AQUAMARINE, STR_COLOUR_AQUAMARINE_TIP },
{ COLOUR_SATURATED_GREEN, STR_COLOUR_SATURATED_GREEN_TIP },
{ COLOUR_DARK_GREEN, STR_COLOUR_DARK_GREEN_TIP },
{ COLOUR_MOSS_GREEN, STR_COLOUR_MOSS_GREEN_TIP },
{ COLOUR_BRIGHT_GREEN, STR_COLOUR_BRIGHT_GREEN_TIP },
{ COLOUR_OLIVE_GREEN, STR_COLOUR_OLIVE_GREEN_TIP },
{ COLOUR_DARK_OLIVE_GREEN, STR_COLOUR_DARK_OLIVE_GREEN_TIP },
{ COLOUR_BRIGHT_YELLOW, STR_COLOUR_BRIGHT_YELLOW_TIP },
{ COLOUR_YELLOW, STR_COLOUR_YELLOW_TIP },
{ COLOUR_DARK_YELLOW, STR_COLOUR_DARK_YELLOW_TIP },
{ COLOUR_LIGHT_ORANGE, STR_COLOUR_LIGHT_ORANGE_TIP },
{ COLOUR_DARK_ORANGE, STR_COLOUR_DARK_ORANGE_TIP },
{ COLOUR_LIGHT_BROWN, STR_COLOUR_LIGHT_BROWN_TIP },
{ COLOUR_SATURATED_BROWN, STR_COLOUR_SATURATED_BROWN_TIP },
{ COLOUR_DARK_BROWN, STR_COLOUR_DARK_BROWN_TIP },
{ COLOUR_SALMON_PINK, STR_COLOUR_SALMON_PINK_TIP },
{ COLOUR_BORDEAUX_RED, STR_COLOUR_BORDEAUX_RED_TIP },
{ COLOUR_SATURATED_RED, STR_COLOUR_SATURATED_RED_TIP },
{ COLOUR_BRIGHT_RED, STR_COLOUR_BRIGHT_RED_TIP },
{ COLOUR_DARK_PINK, STR_COLOUR_DARK_PINK_TIP },
{ COLOUR_BRIGHT_PINK, STR_COLOUR_BRIGHT_PINK_TIP },
{ COLOUR_LIGHT_PINK, STR_COLOUR_LIGHT_PINK_TIP },
{ COLOUR_DARK_OLIVE_DARK, STR_COLOUR_DARK_OLIVE_DARK_TIP },
{ COLOUR_DARK_OLIVE_LIGHT, STR_COLOUR_DARK_OLIVE_LIGHT_TIP },
{ COLOUR_SATURATED_BROWN_LIGHT, STR_COLOUR_SATURATED_BROWN_LIGHT_TIP },
{ COLOUR_BORDEAUX_RED_DARK, STR_COLOUR_BORDEAUX_RED_DARK_TIP },
{ COLOUR_BORDEAUX_RED_LIGHT, STR_COLOUR_BORDEAUX_RED_LIGHT_TIP },
{ COLOUR_GRASS_GREEN_DARK, STR_COLOUR_GRASS_GREEN_DARK_TIP },
{ COLOUR_GRASS_GREEN_LIGHT, STR_COLOUR_GRASS_GREEN_LIGHT_TIP },
{ COLOUR_OLIVE_DARK, STR_COLOUR_OLIVE_DARK_TIP },
{ COLOUR_OLIVE_LIGHT, STR_COLOUR_OLIVE_LIGHT_TIP },
{ COLOUR_SATURATED_GREEN_LIGHT, STR_COLOUR_SATURATED_GREEN_LIGHT_TIP },
{ COLOUR_TAN_DARK, STR_COLOUR_TAN_DARK_TIP },
{ COLOUR_TAN_LIGHT, STR_COLOUR_TAN_LIGHT_TIP },
{ COLOUR_DULL_PURPLE_LIGHT, STR_COLOUR_DULL_PURPLE_LIGHT_TIP },
{ COLOUR_DULL_GREEN_DARK, STR_COLOUR_DULL_GREEN_DARK_TIP },
{ COLOUR_DULL_GREEN_LIGHT, STR_COLOUR_DULL_GREEN_LIGHT_TIP },
{ COLOUR_SATURATED_PURPLE_DARK, STR_COLOUR_SATURATED_PURPLE_DARK_TIP },
{ COLOUR_SATURATED_PURPLE_LIGHT, STR_COLOUR_SATURATED_PURPLE_LIGHT_TIP },
{ COLOUR_ORANGE_LIGHT, STR_COLOUR_ORANGE_LIGHT_TIP },
{ COLOUR_AQUA_DARK, STR_COLOUR_AQUA_DARK_TIP },
{ COLOUR_MAGENTA_LIGHT, STR_COLOUR_MAGENTA_LIGHT_TIP },
{ COLOUR_DULL_BROWN_DARK, STR_COLOUR_DULL_BROWN_DARK_TIP },
{ COLOUR_DULL_BROWN_LIGHT, STR_COLOUR_DULL_BROWN_LIGHT_TIP },
{ COLOUR_INVISIBLE, STR_COLOUR_INVISIBLE_TIP },
{ COLOUR_VOID, STR_COLOUR_VOID_TIP },
};
/**
*
* rct2: 0x006E8DA7
@@ -1330,13 +1268,13 @@ namespace OpenRCT2
{
gLastCloseModifier.window.number = w->number;
gLastCloseModifier.window.classification = w->classification;
gLastCloseModifier.modifier = CloseWindowModifier::Shift;
gLastCloseModifier.modifier = CloseWindowModifier::shift;
}
else if (im.IsModifierKeyPressed(ModifierKey::ctrl))
{
gLastCloseModifier.window.number = w->number;
gLastCloseModifier.window.classification = w->classification;
gLastCloseModifier.modifier = CloseWindowModifier::Control;
gLastCloseModifier.modifier = CloseWindowModifier::control;
}
}
}
@@ -1376,7 +1314,7 @@ namespace OpenRCT2
}
}
if (_inputFlags & INPUT_FLAG_WIDGET_PRESSED)
if (gInputFlags.has(InputFlag::widgetPressed))
{
if (_inputState == InputState::DropdownActive)
{
@@ -1386,7 +1324,7 @@ namespace OpenRCT2
return;
}
_inputFlags |= INPUT_FLAG_WIDGET_PRESSED;
gInputFlags.set(InputFlag::widgetPressed);
windowMgr->InvalidateWidgetByNumber(cursor_w_class, cursor_w_number, widgetIndex);
return;
case MouseState::LeftRelease:
@@ -1418,11 +1356,11 @@ namespace OpenRCT2
else
{
dropdown_index = -1;
if (_inputFlags & INPUT_FLAG_DROPDOWN_STAY_OPEN)
if (gInputFlags.has(InputFlag::dropdownStayOpen))
{
if (!(_inputFlags & INPUT_FLAG_DROPDOWN_MOUSE_UP))
if (!gInputFlags.has(InputFlag::dropdownMouseUp))
{
_inputFlags |= INPUT_FLAG_DROPDOWN_MOUSE_UP;
gInputFlags.set(InputFlag::dropdownMouseUp);
return;
}
}
@@ -1439,9 +1377,9 @@ namespace OpenRCT2
else
{
cursor_w = windowMgr->FindByNumber(cursor_w_class, cursor_w_number);
if (_inputFlags & INPUT_FLAG_WIDGET_PRESSED)
if (gInputFlags.has(InputFlag::widgetPressed))
{
_inputFlags &= ~INPUT_FLAG_WIDGET_PRESSED;
gInputFlags.unset(InputFlag::widgetPressed);
windowMgr->InvalidateWidgetByNumber(cursor_w_class, cursor_w_number, cursor_widgetIndex);
}
@@ -1501,14 +1439,14 @@ namespace OpenRCT2
if (_inputState != InputState::DropdownActive)
{
// Hold down widget and drag outside of area??
if (_inputFlags & INPUT_FLAG_WIDGET_PRESSED)
if (gInputFlags.has(InputFlag::widgetPressed))
{
_inputFlags &= ~INPUT_FLAG_WIDGET_PRESSED;
gInputFlags.unset(InputFlag::widgetPressed);
windowMgr->InvalidateWidgetByNumber(cursor_w_class, cursor_w_number, cursor_widgetIndex);
}
return;
}
else if (gDropdownIsColour)
else if (gDropdownHasTooltips)
{
// This is ordinarily covered in InputWidgetOver but the dropdown with colours is a special case.
InputUpdateTooltip(w, widgetIndex, screenCoords);
@@ -1529,13 +1467,12 @@ namespace OpenRCT2
return;
}
if (gDropdownIsColour && gDropdownLastColourHover != dropdown_index)
if (gDropdownHasTooltips && gDropdownLastTooltipHover != dropdown_index)
{
gDropdownLastColourHover = dropdown_index;
gDropdownLastTooltipHover = dropdown_index;
WindowTooltipClose();
WindowTooltipShow(
OpenRCT2String{ kColourToTip.at(ColourDropDownIndexToColour(dropdown_index)), {} }, screenCoords);
WindowTooltipShow(OpenRCT2String{ gDropdownTooltips[dropdown_index], {} }, screenCoords);
}
if (dropdown_index < Dropdown::kItemsMaxSize && Dropdown::IsDisabled(dropdown_index))
@@ -1553,7 +1490,7 @@ namespace OpenRCT2
}
else
{
gDropdownLastColourHover = -1;
gDropdownLastTooltipHover = -1;
WindowTooltipClose();
}
}
@@ -1659,7 +1596,8 @@ namespace OpenRCT2
mainWindow = WindowGetMain();
if (mainWindow == nullptr)
return;
if ((mainWindow->flags & WF_NO_SCROLLING) || (gScreenFlags & (SCREEN_FLAGS_TRACK_MANAGER | SCREEN_FLAGS_TITLE_DEMO)))
if ((mainWindow->flags & WF_NO_SCROLLING)
|| (gLegacyScene == LegacyScene::trackDesignsManager || gLegacyScene == LegacyScene::titleSequence))
return;
if (mainWindow->viewport == nullptr)
return;
@@ -1743,12 +1681,12 @@ namespace OpenRCT2
}
mainWindow->savedViewPos.x += dx;
_inputFlags |= INPUT_FLAG_VIEWPORT_SCROLLING;
gInputFlags.set(InputFlag::viewportScrolling);
}
if (scrollScreenCoords.y != 0)
{
mainWindow->savedViewPos.y += dy;
_inputFlags |= INPUT_FLAG_VIEWPORT_SCROLLING;
gInputFlags.set(InputFlag::viewportScrolling);
}
}
} // namespace OpenRCT2
+4 -4
View File
@@ -196,7 +196,7 @@ void ShortcutManager::LoadUserBindings()
{
try
{
auto path = fs::u8path(_env->GetFilePath(PATHID::CONFIG_SHORTCUTS));
auto path = fs::u8path(_env->GetFilePath(PathId::configShortcuts));
if (fs::exists(path))
{
LoadUserBindings(path);
@@ -206,7 +206,7 @@ void ShortcutManager::LoadUserBindings()
try
{
Console::WriteLine("Importing legacy shortcuts...");
auto legacyPath = fs::u8path(_env->GetFilePath(PATHID::CONFIG_SHORTCUTS_LEGACY));
auto legacyPath = fs::u8path(_env->GetFilePath(PathId::configShortcutsLegacy));
if (fs::exists(legacyPath))
{
LoadLegacyBindings(legacyPath);
@@ -258,7 +258,7 @@ void ShortcutManager::LoadLegacyBindings(const fs::path& path)
constexpr int32_t kSupportedFileVersion = 1;
constexpr int32_t kMaxLegacyShortcuts = 85;
auto fs = FileStream(path, FILE_MODE_OPEN);
auto fs = FileStream(path, FileMode::open);
auto version = fs.ReadValue<uint16_t>();
if (version == kSupportedFileVersion)
{
@@ -317,7 +317,7 @@ void ShortcutManager::SaveUserBindings()
{
try
{
auto path = fs::u8path(_env->GetFilePath(PATHID::CONFIG_SHORTCUTS));
auto path = fs::u8path(_env->GetFilePath(PathId::configShortcuts));
SaveUserBindings(path);
}
catch (const std::exception& e)
Loaded 100 of 755 files, more files were not shown because too many files have changed in this diff. Show more