Merge branch 'develop'
No files matched your search
@@ -1565,8 +1565,8 @@ STR_2212 :Show list of security guards in park
|
||||
STR_2213 :Show list of entertainers in park
|
||||
STR_2214 :Construction not possible while game is paused!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} on {STRINGID} hasn’t returned to the {STRINGID} yet!{NEWLINE}Check whether it is stuck or has stalled
|
||||
STR_2219 :{RED}{COMMA16} أشخاص قد ماتوا بحادثة علي {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Park Rating: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1571,8 +1571,8 @@ STR_2212 :Mostra una llista dels guardes de seguretat del parc.
|
||||
STR_2213 :Mostra una llista dels animadors del parc.
|
||||
STR_2214 :No es pot construir mentre la partida està en pausa!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} de {STRINGID} encara no ha tornat a {STRINGID}!{NEWLINE}Comproveu què li ha passat.
|
||||
STR_2219 :{RED}{COMMA16} persones han mort en l’accident de {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Valoració del parc: {BLACK}{COMMA16}
|
||||
@@ -3296,7 +3296,7 @@ STR_6237 :Grups
|
||||
STR_6238 :Opcions multijugador
|
||||
STR_6239 :Retallat vertical
|
||||
STR_6240 :Retallat horitzontal
|
||||
STR_6241 :Seleccioneu una àrea
|
||||
STR_6241 :Selecciona una àrea
|
||||
STR_6242 :Esborra la selecció
|
||||
STR_6243 :Retoca l’atracció,{NEWLINE}fent-la parèixer nova
|
||||
STR_6244 :No es pot retocar l’atracció…
|
||||
@@ -3825,3 +3825,23 @@ STR_6781 :Captures de pantalla
|
||||
STR_6782 :Notificacions de parc
|
||||
STR_6783 :Notificacions d’atraccions
|
||||
STR_6784 :Notificacions de visitants
|
||||
STR_6785 :Comandament de joc
|
||||
STR_6786 :Zona morta:
|
||||
STR_6787 :Zona morta del pal analògic (cal moviment mínim)
|
||||
STR_6788 :Sensitivitat:
|
||||
STR_6789 :Multiplicador de la sensivitat del pal analògic
|
||||
STR_6790 :Zona morta {COMMA32} %
|
||||
STR_6791 :Sensitivitat: {COMMA32} %
|
||||
STR_6792 :Entrades d’edificis
|
||||
STR_6793 :Visitants i treballadors
|
||||
STR_6794 :Decoracions i temes
|
||||
STR_6795 :{MOVE_X}{10}{STRINGID}
|
||||
STR_6796 :•{MOVE_X}{10}{STRINGID}
|
||||
STR_6797 :Sense previsualització
|
||||
STR_6798 :Captura de pantalla
|
||||
STR_6799 :Minimapa
|
||||
STR_7000 :o
|
||||
STR_7001 :Nom de l’atracció
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :El fitxer d’àudio «{STRING}» està truncat. Mostra esperada de {INT32}, però només n’hi ha {INT32}. Considereu reinstal·lar el RCT2.
|
||||
STR_7004 :Força que es torni a dibuixar
|
||||
@@ -1573,8 +1573,8 @@ STR_2212 :Zobrazit seznam hlídačů
|
||||
STR_2213 :Zobrazit seznam maskotů
|
||||
STR_2214 :Nelze stavět při pozastavené hře!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} na {STRINGID} se stále nevrátil do {STRINGID}!{NEWLINE}Zkontrolujte, jestli se nezasekl nebo nezastavil
|
||||
STR_2219 :{RED}{COMMA16} lidí zemřelo při nehodě na {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Hodnocení parku: {BLACK}{COMMA16}
|
||||
@@ -3843,3 +3843,6 @@ STR_7000 :nebo
|
||||
STR_7001 :Název atrakce
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :Zvukový soubor ‘{STRING}’ je zkrácený. Očekáván sample {INT32}, avšak pouze {INT32} je dostupných. Zvažte přeinstalování RCT2.
|
||||
STR_7004 :Vynutit překresl. (force redraw)
|
||||
STR_7005 :Stavět cesty v oblasti označené tažením
|
||||
STR_7006 :Vykreslit okraje tlačítek s obrázky
|
||||
@@ -1566,8 +1566,8 @@ STR_2212 :Vis liste over Sikkerhedsvagter i parken
|
||||
STR_2213 :Vis liste over entertainere i parken
|
||||
STR_2214 :Konstruktion er ikke muligt, når spillet er sat på pause!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} på {STRINGID} er ikke kommet tilbage til {STRINGID} Endnu!{NEWLINE}Kontroller omm den sidder fast erler er strandet
|
||||
STR_2219 :{RED}{COMMA16} personer er døde i ulykken på {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Park Vurdering: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1569,8 +1569,8 @@ STR_2212 :Liste der Aufseher im Park anzeigen
|
||||
STR_2213 :Liste der Animateure im Park anzeigen
|
||||
STR_2214 :Konstruktion während des Pausemodus nicht möglich!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} bei {STRINGID} ist noch nicht zu {STRINGID} zurückgekehrt!{NEWLINE}Überprüfen Sie, ob es steckengeblieben ist oder angehalten hat
|
||||
STR_2219 :{RED}{COMMA16} Menschen sind bei einem Unfall in {STRINGID} gestorben
|
||||
STR_2220 :{WINDOW_COLOUR_2}Parkbewertung: {BLACK}{COMMA16}
|
||||
|
||||
@@ -473,14 +473,14 @@ STR_1076 :Shop stall mode
|
||||
STR_1077 :Rotation mode
|
||||
STR_1078 :Forward rotation
|
||||
STR_1079 :Backward rotation
|
||||
STR_1080 :Film: “Avenging aviators”
|
||||
STR_1081 :3D film: “Mouse tails”
|
||||
STR_1080 :Film: “Avenging Aviators”
|
||||
STR_1081 :3D film: “Mouse Tails”
|
||||
STR_1082 :Space rings mode
|
||||
STR_1083 :Beginners mode
|
||||
STR_1084 :LIM-powered launch
|
||||
STR_1085 :Film: “Thrill riders”
|
||||
STR_1086 :3D film: “Storm chasers”
|
||||
STR_1087 :3D film: “Space raiders”
|
||||
STR_1085 :Film: “Thrill Riders”
|
||||
STR_1086 :3D film: “Storm Chasers”
|
||||
STR_1087 :3D film: “Space Raiders”
|
||||
STR_1088 :Intense mode
|
||||
STR_1089 :Berserk mode
|
||||
STR_1090 :Haunted house mode
|
||||
@@ -1568,8 +1568,8 @@ STR_2212 :Show list of security guards in park
|
||||
STR_2213 :Show list of entertainers in park
|
||||
STR_2214 :Construction not possible while game is paused!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} on {STRINGID} hasn’t returned to the {STRINGID} yet!{NEWLINE}Check whether it is stuck or has stalled
|
||||
STR_2219 :{RED}{COMMA16} people have died in an accident on {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Park Rating: {BLACK}{COMMA16}
|
||||
@@ -3843,3 +3843,6 @@ STR_7001 :Ride name
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :Audio file ‘{STRING}’ is truncated. Expected sample {INT32}, but only {INT32} are available. Consider reinstalling RCT2.
|
||||
STR_7004 :Force Redraw
|
||||
STR_7005 :Drag an area of footpath
|
||||
STR_7006 :Draw border around image buttons
|
||||
STR_7007 :Ride Type
|
||||
@@ -1568,8 +1568,8 @@ STR_2212 :Montri liston de gardistoj en parko
|
||||
STR_2213 :Montri liston de amuzistoj en parko
|
||||
STR_2214 :Ne eblas konstrui, dum ludo estas paŭzita!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} sur {STRINGID} ne jam revenis al la {STRINGID}!{NEWLINE}Kontrolu se ĝi ne povas reveni, aŭ staŭlis
|
||||
STR_2219 :{RED}{COMMA16} homoj mortis pro akcidento sur {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Pritakso de Parko: {BLACK}{COMMA16}
|
||||
@@ -3839,3 +3839,5 @@ STR_7000 :aŭ
|
||||
STR_7001 :Nomo de atrakcio
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :Sondosiero ‘{STRING}’ estas distranĉita. Atendis sonpecon {INT32}, sed nur {INT32} disponeblas. Konsideru reinstali je RCT2.
|
||||
STR_7004 :Devigi redesegnon
|
||||
STR_7005 :Treni areon de trotuaro
|
||||
@@ -1569,8 +1569,8 @@ STR_2212 :Mostrar lista de guardias de seguridad en el parque
|
||||
STR_2213 :Mostrar lista de animadores en el parque
|
||||
STR_2214 :¡No es posible construir mientras el juego está pausado!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}¡{STRINGID} en {STRINGID} no ha regresado a la {STRINGID}!{NEWLINE}Comprueba si se ha atorado o se ha detenido.
|
||||
STR_2219 :{RED}{COMMA16} personas han muerto en un accidente en {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Valoración del parque: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1570,8 +1570,8 @@ STR_2212 :Näytä puiston vartijat
|
||||
STR_2213 :Näytä puiston viihdyttäjät
|
||||
STR_2214 :Rakentaminen ei ole mahdollista pelin ollessa pysäytettynä!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} laitteessa {STRINGID} ei ole vielä palannut {STRINGID}lle!{NEWLINE}Tarkista, onko se jumissa tai juuttunut
|
||||
STR_2219 :{RED}{COMMA16} henkilöä on kuollut laitteen {STRINGID} onnettomuudessa
|
||||
STR_2220 :{WINDOW_COLOUR_2}Puiston taso: {BLACK}{COMMA16}
|
||||
|
||||
@@ -473,12 +473,12 @@ STR_1076 :Mode magasins et boutiques
|
||||
STR_1077 :Mode rotation
|
||||
STR_1078 :Rotation avant
|
||||
STR_1079 :Rotation arrière
|
||||
STR_1080 :Film : « Les aviateurs vengeurs »
|
||||
STR_1081 :Film 3D : « Les queues de souris »
|
||||
STR_1080 :Film : « Les Aviateurs vengeurs »
|
||||
STR_1081 :Film 3D : « Les Queues de souris »
|
||||
STR_1082 :Mode anneaux de l’espace
|
||||
STR_1083 :Mode débutants
|
||||
STR_1084 :Lancement à induction linéaire
|
||||
STR_1085 :Film : « Le grand frisson »
|
||||
STR_1085 :Film : « Le Grand frisson »
|
||||
STR_1086 :Film 3D : « Chasseurs de tempêtes »
|
||||
STR_1087 :Film 3D : « Commandos de l’espace »
|
||||
STR_1088 :Mode intense
|
||||
@@ -1571,8 +1571,8 @@ STR_2212 :Afficher la liste des agents de sécurité dans le parc
|
||||
STR_2213 :Afficher la liste des animateurs dans le parc
|
||||
STR_2214 :Construction impossible tant que le jeu est en pause !
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} sur {STRINGID} n’est pas encore revenu à {STRINGID} !{NEWLINE}Vérifiez s’il est coincé ou au point mort.
|
||||
STR_2219 :{RED}{COMMA16} personnes sont décédées dans un accident sur {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Évaluation du parc : {BLACK}{COMMA16}
|
||||
@@ -3845,3 +3845,6 @@ STR_7000 :ou
|
||||
STR_7001 :Nom de l’attraction
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :Le fichier audio « {STRING} » est tronqué. L’échantillon {INT32} était attendu, mais seulement {INT32} sont disponibles. Songez à réinstaller RCT2.
|
||||
STR_7004 :Forcer le rendu
|
||||
STR_7005 :Remplir de chemin une zone
|
||||
STR_7006 :Dessiner une bordure autour des boutons-images
|
||||
@@ -473,13 +473,13 @@ STR_1076 :Modo de posto de venda
|
||||
STR_1077 :Modo de rotación
|
||||
STR_1078 :Rotación cara adiante
|
||||
STR_1079 :Rotación cara atrás
|
||||
STR_1080 :Filme: "Avións vingadores"
|
||||
STR_1081 :Filme 3D: "Rabos de rato"
|
||||
STR_1080 :Filme: "Aviadores vingadores"
|
||||
STR_1081 :Filme 3D: "Contos do rato"
|
||||
STR_1082 :Modo aneis espaciais
|
||||
STR_1083 :Modo principiante
|
||||
STR_1084 :Lanzamento impulsado por LIM (motores indución lineal)
|
||||
STR_1085 :Filme: "Pilotos da emoción"
|
||||
STR_1086 :Filme 3D: "Perseguidores de tormentas"
|
||||
STR_1086 :Filme 3D: "Cazadores de tempestades"
|
||||
STR_1087 :Filme 3D: "Asaltantes do espazo"
|
||||
STR_1088 :Modo intenso
|
||||
STR_1089 :Modo frenético
|
||||
@@ -1568,7 +1568,7 @@ STR_2212 :Amosar a lista de vixilantes no parque
|
||||
STR_2213 :Amosar a lista de animadores do parque
|
||||
STR_2214 :Non é posible construír mentres o xogo está en pausa!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} en {STRINGID} non volveu a {STRINGID}!{NEWLINE}Comproba se quedou atascado ou parado.
|
||||
STR_2219 :{RED}{COMMA16} persoas morreron nun accidente en {STRINGID}
|
||||
@@ -3839,3 +3839,6 @@ STR_7000 :ou
|
||||
STR_7001 :Nome da atracción
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :O ficheiro de son ‘{STRING}’ está incompleto. Agardabase {INT32} mostras, pero só {INT32} están dispoñibles. Considera reinstalar RCT2.
|
||||
STR_7004 :Forzar redeseño
|
||||
STR_7005 :Arrastra unha área de camiño
|
||||
STR_7006 :Debuxa un bordo arredor dos botóns de imaxe
|
||||
@@ -5,12 +5,12 @@ STR_0000 :
|
||||
STR_0001 :{STRINGID} {COMMA16}
|
||||
STR_0002 :Spirális hullámvasút
|
||||
STR_0003 :Álló hullámvasút
|
||||
STR_0004 :Felfüggesztett lengő hullámvasút
|
||||
STR_0004 :Függesztett lengő hullámvasút
|
||||
STR_0005 :Fordított hullámvasút
|
||||
STR_0006 :Gyerek hullámvasút
|
||||
STR_0007 :Kisvasút
|
||||
STR_0008 :Egysínű vasút
|
||||
STR_0009 :Mini felfüggesztett hullámvasút
|
||||
STR_0009 :Mini függesztett hullámvasút
|
||||
STR_0010 :Csónakkölcsönző
|
||||
STR_0011 :Fa vadegér
|
||||
STR_0012 :Akadályverseny
|
||||
@@ -66,7 +66,7 @@ STR_0061 :Virginia Reel
|
||||
STR_0062 :Csobbanó csónakok
|
||||
STR_0063 :Mini helikopterek
|
||||
STR_0064 :Fekvő hullámvasút
|
||||
STR_0065 :Felfüggesztett egysínű vasút
|
||||
STR_0065 :Egysínű függővasút
|
||||
STR_0066 :Ismeretlen játék (40)
|
||||
STR_0067 :Irányváltó hullámvasút
|
||||
STR_0068 :Palástorsózó hullámvasút
|
||||
@@ -103,12 +103,12 @@ STR_0098 :LSM kilövéses hullámvasút
|
||||
STR_0099 :Klasszikus fa csavart hullámvasút
|
||||
STR_0512 :Egy kompakt hullámvasút spirális felvonószakasszal és sima, csavaros esésekkel.
|
||||
STR_0513 :Egy átforduló hullámvasút, amelyen az utasok álló helyzetben utaznak
|
||||
STR_0514 :A hullámvasút pályája alatt felfüggesztett vonatok oldalt kilengenek a kanyarokban
|
||||
STR_0515 :Egy acél hullámvasút, pálya alatt felfüggesztett vonatokkal, valamint számos összetett és csavarodó pályaelemmel
|
||||
STR_0514 :A hullámvasút pályája alatt függesztett vonatok oldalt kilengenek a kanyarokban
|
||||
STR_0515 :Egy acél hullámvasút, pálya alatt függesztett vonatokkal, valamint számos összetett és csavarodó pályaelemmel
|
||||
STR_0516 :Egy enyhe hullámvasút azok számára, akik még nem éreznek magukban elég bátorságot ahhoz, hogy felüljenek a nagyobb játékokra
|
||||
STR_0517 :Az utasok miniatűr vonatokon utaznak egy keskeny nyomtávú vasúti pályán
|
||||
STR_0518 :Az utasok elektromos vonatokon utaznak egy egysínű pályán
|
||||
STR_0519 :Az utasok az egysínű pálya alatt felfüggesztett kocsikban utaznak, amelyek kétoldalt szabadon kilengenek a kanyarokban
|
||||
STR_0519 :Az utasok az egysínű pálya alatt függesztett kocsikban utaznak, amelyek kétoldalt szabadon kilengenek a kanyarokban
|
||||
STR_0520 :Egy kikötőállomás, ahonnan a vendégek saját vízi járművel vezethetnek/evezhetnek ki a vízre
|
||||
STR_0521 :Egy gyors és csavaros hullámvasút, tele éles kanyarokkal és meredek esésekkel. Nagy intenzitással rendelkezik
|
||||
STR_0522 :Egy kisebb hullámvasút, amelyen az utasok a pálya felett ülnek, anélkül, hogy kocsik vennék körbe őket
|
||||
@@ -138,7 +138,7 @@ STR_0548 :Egy illemhely
|
||||
STR_0549 :Nagy forgó kerék, nyitott székekkel
|
||||
STR_0550 :Az utasok filmet néznek a mozgásszimulátor kabinjában, miközben azt egy hidraulikus kar forgatja és mozgatja
|
||||
STR_0551 :3D-s filmeket vetítő mozi egy geodéziai gömb alakú épületben
|
||||
STR_0552 :A nagy forgó karokkal felfüggesztett kabinban az utasok előre-hátra forognak és bukfenceznek
|
||||
STR_0552 :A nagy forgó karokkal függesztett kabinban az utasok előre-hátra forognak és bukfenceznek
|
||||
STR_0553 :Koncentrikus forgó gyűrűk, amelyekben az utasok szabadon foroghatnak minden irányba
|
||||
STR_0554 :A kocsi aszinkronmotoros gyorsítással hagyja el az állomást egy hosszú vízszintes pálya mentén, hogy felmenjen egy teljesen függőleges emelkedőn, ahonnan szabadeséssel zuhan le, hogy visszatérjen az állomásra
|
||||
STR_0555 :Az utasok egy függőleges torony liftjében utazhatnak a szintek között
|
||||
@@ -153,7 +153,7 @@ STR_0563 :Kényelmes, egyszerű biztonsági rudas vonatokban ülve élvezheti
|
||||
STR_0564 :Ez a fa pályán futó hullámvasút gyors, durva, hangos és „kontrollvesztett” utazási élményt nyújt, bőséges „légi idővel”
|
||||
STR_0565 :Egy egyszerű, kizárólag enyhe lejtőkre és fordulókra képes fa hullámvasút, amelyen a kocsikat csak az oldalirányú súrlódásos kerekek és a gravitáció tartják a pályán
|
||||
STR_0566 :A különálló hullámvasút kocsik egy szűk, éles kanyarokkal és rövid, meredek esésekkel tarkított, cikcakkos pályán száguldoznak
|
||||
STR_0567 :A pálya mindkét oldalán felfüggesztett ülésekben ülve az utasok bukfencezve forognak, miközben meredek eséseken és különböző fordítókon haladnak át
|
||||
STR_0567 :A pálya mindkét oldalán függesztett ülésekben ülve az utasok bukfencezve forognak, miközben meredek eséseken és különböző fordítókon haladnak át
|
||||
STR_0569 :A pálya alatti speciális rögzítőhámokban utazva az utasok megtapasztalhatják a repülés élményét, ahogy szelik a levegőt
|
||||
STR_0571 :Kör alakú autók forognak körbe-körbe, miközben a cikkcakkos fa pályán haladnak
|
||||
STR_0572 :A nagy kapacitású csónakok egy széles vízcsatornán haladnak, felfelé a lejtőkön futószalag hajtja őket, majd a meredek lejtőkön lefelé gyorsulva óriási csobbanással áztatják el az utasokat
|
||||
@@ -168,14 +168,14 @@ STR_0581 :A gyűrű alakban elhelyezkedő székeket egy magas torony tetejér
|
||||
STR_0582 :A vendégek légpárnás járművekben utaznak, amelyeket szabadon irányítanak
|
||||
STR_0583 :Egy épület, amely ferde szobákat és kanyargó folyosókat tartalmaz, hogy összezavarja az áthaladó embereket
|
||||
STR_0584 :Speciális, az utasok pedálozásával hajtott biciklik közlekednek egy acél egysínű pályán
|
||||
STR_0585 :Az utasok a pálya alatt felfüggesztett üléspárokban ülnek, miközben kanyarognak és csavarodnak a szoros fordítókon
|
||||
STR_0585 :Az utasok a pálya alatt függesztett üléspárokban ülnek, miközben kanyarognak és csavarodnak a szoros fordítókon
|
||||
STR_0586 :A csónak alakú kocsik a hullámvasút pályáján haladnak, hogy lehetővé tegyék a csavaros kanyarokat és a meredek zuhanásokat, a szelíd folyószakaszok vizébe csobbanva
|
||||
STR_0587 :Egy izgalmas, léghajtású indítás után a vonat felfelé száguld egy függőleges pályán, át a tetején, majd függőlegesen lefelé a másik oldalon, hogy visszatérjen az állomásra
|
||||
STR_0588 :Különálló kocsik futnak a cikcakkos, hajtűkanyarokkal és éles esésekkel teli pálya alatt
|
||||
STR_0589 :Egy nagy, repülőszőnyeg-témájú kocsi, amely ciklikusan fel-le mozog a 4 kar végén
|
||||
STR_0590 :Az utasok egy alámerült tengeralattjáróban utaznak végig egy víz alatti pályán
|
||||
STR_0591 :A tutaj alakú csónakok szelíden kanyarognak a folyó pályája mentén
|
||||
STR_0593 :Forgó kerék felfüggesztett utaskabinokkal, amely először elkezd forogni, majd egy tartókar segítségével felfelé dől.
|
||||
STR_0593 :Forgó kerék függesztett utaskabinokkal, amely először elkezd forogni, majd egy tartókar segítségével felfelé dől.
|
||||
STR_0598 :A fordított hullámvasút vonatai az állomásból kifelé gyorsulva felfelé haladnak egy függőleges pályacsúcson, majd visszafordulnak az állomáson keresztül, hogy visszafelé haladjanak egy másik függőleges pályacsúcson.
|
||||
STR_0599 :Egy kompakt hullámvasút különálló kocsikkal és sima, csavaros esésekkel
|
||||
STR_0600 :Motoros bányavonatok futnak egy sima és csavaros pálya mentén
|
||||
@@ -375,7 +375,7 @@ STR_0978 :Új enyhe játékok
|
||||
STR_0979 :Új hullámvasutak
|
||||
STR_0980 :Új izgalmas játékok
|
||||
STR_0981 :Új vízi játékok
|
||||
STR_0982 :Új boltok & bódék
|
||||
STR_0982 :Új boltok és bódék
|
||||
STR_0983 :Kutatás-fejlesztés
|
||||
STR_0984 :{WINDOW_COLOUR_2}▲{BLACK} {CURRENCY2DP}
|
||||
STR_0985 :{WINDOW_COLOUR_2}▼{BLACK} {CURRENCY2DP}
|
||||
@@ -919,7 +919,7 @@ STR_1522 :„{STRINGID} esernyője igazán megéri az árát”
|
||||
STR_1523 :„{STRINGID} üdítője igazán megéri az árát”
|
||||
STR_1524 :„{STRINGID} hamburgere igazán megéri az árát”
|
||||
STR_1525 :„{STRINGID} sült krumplija igazán megéri az árát”
|
||||
STR_1526 :„{STRINGID} jégkrémje igazán megéri az árát”
|
||||
STR_1526 :„{STRINGID} fagylaltja igazán megéri az árát”
|
||||
STR_1527 :„{STRINGID} vattacukra igazán megéri az árát”
|
||||
STR_1528 :
|
||||
STR_1529 :
|
||||
@@ -953,7 +953,7 @@ STR_1556 :„{STRINGID} esernyője túl sokba kerül számomra”
|
||||
STR_1557 :„{STRINGID} üdítője túl sokba kerül számomra”
|
||||
STR_1558 :„{STRINGID} hamburgere túl sokba kerül számomra”
|
||||
STR_1559 :„{STRINGID} sült krumplija túl sokba kerül számomra”
|
||||
STR_1560 :„{STRINGID} jégkrémje túl sokba kerül számomra”
|
||||
STR_1560 :„{STRINGID} fagylaltja túl sokba kerül számomra”
|
||||
STR_1561 :„{STRINGID} vattacukra túl sokba kerül számomra”
|
||||
STR_1562 :
|
||||
STR_1563 :
|
||||
@@ -1335,7 +1335,7 @@ STR_1964 :{WINDOW_COLOUR_2}Esernyő ára:
|
||||
STR_1965 :{WINDOW_COLOUR_2}Üdítőital ára:
|
||||
STR_1966 :{WINDOW_COLOUR_2}Hamburger ára:
|
||||
STR_1967 :{WINDOW_COLOUR_2}Sült krumpli ára:
|
||||
STR_1968 :{WINDOW_COLOUR_2}Jégkrém ára:
|
||||
STR_1968 :{WINDOW_COLOUR_2}Fagylalt ára:
|
||||
STR_1969 :{WINDOW_COLOUR_2}Vattacukor ára:
|
||||
STR_1970 :{WINDOW_COLOUR_2}
|
||||
STR_1971 :{WINDOW_COLOUR_2}
|
||||
@@ -1363,7 +1363,7 @@ STR_1992 :Esernyő
|
||||
STR_1993 :Üdítőital
|
||||
STR_1994 :Hamburger
|
||||
STR_1995 :Sült krumpli
|
||||
STR_1996 :Jégkrém
|
||||
STR_1996 :Fagylalt
|
||||
STR_1997 :Vattacukor
|
||||
STR_1998 :Üres italos doboz
|
||||
STR_1999 :Szemét
|
||||
@@ -1391,7 +1391,7 @@ STR_2020 :Esernyő
|
||||
STR_2021 :Üdítőital
|
||||
STR_2022 :Hamburger
|
||||
STR_2023 :Sült krumpli
|
||||
STR_2024 :Jégkrém
|
||||
STR_2024 :Fagylalt
|
||||
STR_2025 :Vattacukor
|
||||
STR_2026 :Üres italos doboz
|
||||
STR_2027 :Szemét
|
||||
@@ -1419,7 +1419,7 @@ STR_2048 :egy esernyő
|
||||
STR_2049 :üdítőital
|
||||
STR_2050 :egy hamburger
|
||||
STR_2051 :sült krumpli
|
||||
STR_2052 :egy jégkrém
|
||||
STR_2052 :egy fagylalt
|
||||
STR_2053 :egy vattacukor
|
||||
STR_2054 :egy üres italos doboz
|
||||
STR_2055 :szemét
|
||||
@@ -1447,7 +1447,7 @@ STR_2076 :„{STRINGID}” esernyő
|
||||
STR_2077 :Üdítőital
|
||||
STR_2078 :Hamburger
|
||||
STR_2079 :Sült krumpli
|
||||
STR_2080 :Jégkrém
|
||||
STR_2080 :Fagylalt
|
||||
STR_2081 :Vattacukor
|
||||
STR_2082 :Üres italos doboz
|
||||
STR_2083 :Szemét
|
||||
@@ -1568,8 +1568,8 @@ STR_2212 :A park biztonsági őreinek listája
|
||||
STR_2213 :A park szórakoztatóinak listája
|
||||
STR_2214 :Szünet közben nem lehet építeni!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} itt van: {STRINGID} és még nem érkezett vissza ide: {STRINGID}!{NEWLINE}Ellenőrizd, hogy nincs-e beragadva vagy elakadva
|
||||
STR_2219 :{RED}{STRINGID} balesete közben {COMMA16} ember meghalt
|
||||
STR_2220 :{WINDOW_COLOUR_2}Park értékelése: {BLACK}{COMMA16}
|
||||
@@ -3839,3 +3839,6 @@ STR_7000 :vagy
|
||||
STR_7001 :Játéknév
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :A(z) „{STRING}” hangfájl csonka. Minta {INT32} lenne az elvárt, de csak {INT32} érhető el. Fontold meg az RCT2 újratelepítését.
|
||||
STR_7004 :Újrarajzolás kényszerítése
|
||||
STR_7005 :Útterület építése húzással
|
||||
STR_7006 :Keret rajzolása a képgombok köré
|
||||
@@ -1569,8 +1569,8 @@ STR_2212 :Mostra la lista dei vigilanti del parco
|
||||
STR_2213 :Mostra la lista degli intrattenitori del parco
|
||||
STR_2214 :Non è possibile costruire quando il gioco è in pausa!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} sull’attrazione {STRINGID} non ha ancora fatto ritorno presso: {STRINGID}!{NEWLINE}Controlla se si è bloccato o se è entrato in stallo
|
||||
STR_2219 :{RED}{COMMA16} persone sono rimaste uccise in un incidente su {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Valutazione del parco: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1564,8 +1564,8 @@ STR_2212 :パークの警備員の表示
|
||||
STR_2213 :パークのエンターテイナーの表示
|
||||
STR_2214 :ゲームが一時停止中で建設はできません。
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}℃
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}℉
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}℃
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}℉
|
||||
STR_2218 :{RED}{STRINGID}の{STRINGID}が{STRINGID}にまだ戻ってきていません!{NEWLINE}どこかにひっかかったり止まったりしていないか確認してください
|
||||
STR_2219 :{RED}{COMMA16}人の来客は{STRINGID}上の事故で死亡してしまいました。
|
||||
STR_2220 :{WINDOW_COLOUR_2}パーク評価値: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1572,8 +1572,8 @@ STR_2212 :경비원 목록을 보여줍니다
|
||||
STR_2213 :엔터테이너 목록을 보여줍니다
|
||||
STR_2214 :게임 일시정지 중에는 건설할 수 없습니다!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{POP16}{POP16}{STRINGID}의 {PUSH16}{PUSH16}{PUSH16}{PUSH16}{PUSH16}{STRINGID}(이)가 {POP16}{POP16}{POP16}{STRINGID}으로 아직 돌아오지 않았습니다!{NEWLINE}놀이기구가 멈춰있거나 오도가도 못하고 있는지 확인하세요.
|
||||
STR_2219 :{RED}{COMMA16}명의 손님이 {STRINGID} 사고로 사망하였습니다!
|
||||
STR_2220 :{WINDOW_COLOUR_2}공원 등급: {BLACK}{COMMA16}
|
||||
@@ -2935,7 +2935,7 @@ STR_5835 :게임 밖으로 커서가 나가면 게임에서 소리가 나지
|
||||
STR_5836 :첫 화면에서 사용할 음악을 선택합니다.{NEWLINE}RCT1 테마를 선택하려면 고급 탭에서 RCT1의 경로를 지정해야 합니다.
|
||||
STR_5837 :사용자 UI 테마를 생성하고 관리합니다.
|
||||
STR_5838 :메인 메뉴에 재정 창을 위한 별도의 버튼을 표시합니다.
|
||||
STR_5839 :메인 매뉴에 연구 및 개발 창을 위한 별도의 버튼을 표시합니다.
|
||||
STR_5839 :메인 메뉴에 연구 및 개발 창을 위한 별도의 버튼을 표시합니다.
|
||||
STR_5840 :메인 메뉴에 치트 창을 위한 별도의 버튼을 표시합니다.
|
||||
STR_5841 :메인 메뉴에 최근 메시지 창을 위한 별도의 버튼을 표시합니다.
|
||||
STR_5842 :시나리오를 RCT2처럼 난이도별로 정렬하거나, RCT1처럼 게임별로 정렬합니다.
|
||||
@@ -3842,3 +3842,6 @@ STR_7000 :(또는)
|
||||
STR_7001 :놀이기구 이름
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :오디오 파일(‘{STRING}’) 데이터가 잘려있습니다. {INT32}개의 데이터가 있어야 하지만 {INT32}개만 존재합니다. RCT2를 재설치해보세요.
|
||||
STR_7004 :강제 화면 갱신
|
||||
STR_7005 :드래그로 보도 건설
|
||||
STR_7006 :버튼 주위에 경계선 표시
|
||||
@@ -1562,8 +1562,8 @@ STR_2212 :Vis liste over sikkerhetsvakter i parken
|
||||
STR_2213 :Vis liste over underholdere i parken
|
||||
STR_2214 :Konstruksjon ikke mulig mens spillet er pauset!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} på {STRINGID} har ikke returnet til {STRINGID} enda!{NEWLINE}Sjekk om den sitter fast eller har stoppet
|
||||
STR_2219 :{RED}{COMMA16} personer har omkommet i en ulykke på {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Park Vurdering: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1569,8 +1569,8 @@ STR_2212 :Toon lijst van bewakers in het park
|
||||
STR_2213 :Toon lijst van entertainers in het park
|
||||
STR_2214 :Bouwen is niet mogelijk wanneer het spel is gepauzeerd!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16} °C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16} °F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16} °C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16} °F
|
||||
STR_2218 :{RED}{STRINGID} van {STRINGID} is nog niet teruggekeerd naar de opstapplaats ({STRINGID})!{NEWLINE}Controleer of het is vastgelopen of stil komen te staan
|
||||
STR_2219 :{RED}{COMMA16} personen zijn om het leven gekomen bij een ongeluk in {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Parkwaardering: {BLACK}{COMMA16}
|
||||
@@ -3838,3 +3838,5 @@ STR_7000 :of
|
||||
STR_7001 :Attractienaam
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :Audiobestand ‘{STRING}’ is beschadigd. Sample nr. {INT32} kon niet worden geladen, aangezien er maar {INT32} beschikbaar zijn. Installeer RollerCoaster Tycoon 2 opnieuw.
|
||||
STR_7004 :Volledig beeld hertekenen
|
||||
STR_7005 :Voetpaden aanleggen door te slepen
|
||||
@@ -1568,8 +1568,8 @@ STR_2212 :Pokaż listę wszystkich strażników w parku
|
||||
STR_2213 :Pokaż listę wszystkich komików w parku
|
||||
STR_2214 :Nie można budować przy wstrzymanej grze!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} na {STRINGID} jeszcze nie powrócił do {STRINGID}!{NEWLINE}Sprawdź czy gdzieś nie utknął.
|
||||
STR_2219 :{RED}{COMMA16} ludzi zginęło w wypadku na atrakcji {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Atrakcyjność parku: {BLACK}{COMMA16}
|
||||
|
||||
@@ -473,14 +473,14 @@ STR_1076 :Modo de lojas e barracas
|
||||
STR_1077 :Modo de rotação
|
||||
STR_1078 :Rotação para frente
|
||||
STR_1079 :Rotação para trás
|
||||
STR_1080 :Filme: ”Aviadores Vingadores”
|
||||
STR_1081 :Filme em 3D: ”Caudas de Rato”
|
||||
STR_1080 :Filme: “Aviadores vingadores”
|
||||
STR_1081 :Filme em 3D: “Bichos e rabichos”
|
||||
STR_1082 :Modo anéis espaciais
|
||||
STR_1083 :Modo iniciante
|
||||
STR_1084 :Lançamento por indução linear
|
||||
STR_1085 :Filme: ”Pilotos de Emoção”
|
||||
STR_1086 :Filme em 3D: ”Caçadores de tempestades”
|
||||
STR_1087 :Filme em 3D: ”Caçadores do espaço”
|
||||
STR_1085 :Filme: “Pilotos de emoção”
|
||||
STR_1086 :Filme em 3D: “Caçadores de tempestades”
|
||||
STR_1087 :Filme em 3D: “Corsários do espaço”
|
||||
STR_1088 :Modo intenso
|
||||
STR_1089 :Modo frenético
|
||||
STR_1090 :Modo casa mal-assombrada
|
||||
@@ -1568,8 +1568,8 @@ STR_2212 :Exibir a lista de seguranças no parque
|
||||
STR_2213 :Exibir a lista de animadores no parque
|
||||
STR_2214 :Impossível construir enquanto o jogo está pausado!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} em {STRINGID} não voltou à {STRINGID} ainda!{NEWLINE}Verifique se está preso ou parado
|
||||
STR_2219 :{RED}{COMMA16} pessoas morreram em um acidente em {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Classificação do Parque: {BLACK}{COMMA16}
|
||||
@@ -3838,4 +3838,6 @@ STR_6799 :Mini mapa
|
||||
STR_7000 :ou
|
||||
STR_7001 :Nome da atração
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :O arquito de áudio ‘{STRING}’ está incompleto. {INT32} amostras eram esperadas, mas apenas {INT32} estão disponíveis. Considere reinstalar o RCT2.
|
||||
STR_7003 :O arquivo de áudio ‘{STRING}’ está incompleto. {INT32} amostras eram esperadas, mas apenas {INT32} estão disponíveis. Considere reinstalar o RCT2.
|
||||
STR_7004 :Forçar Redesenho
|
||||
STR_7005 :Arrastar uma área de calçada
|
||||
@@ -1562,8 +1562,8 @@ STR_2212 :Показать список охранников
|
||||
STR_2213 :Показать список артистов
|
||||
STR_2214 :Нельзя строить во время паузы!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} на аттр. {STRINGID} не возвращается к {STRINGID}!{NEWLINE}Нужна помощь.
|
||||
STR_2219 :{RED}{COMMA16} людей погибло на {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Рейтинг парка: {BLACK}{COMMA16}
|
||||
@@ -3827,3 +3827,5 @@ STR_7000 :или
|
||||
STR_7001 :Название аттр.
|
||||
STR_7002 :{STRINGID} {STRINGID}
|
||||
STR_7003 :Аудио-файл «{STRING}» повреждён. Ожидалось {INT32} образцов, но доступны только {INT32}. Рекомендуется повторная установка RCT2.
|
||||
STR_7004 :Полная перерисовка
|
||||
STR_7006 :Бордюр на кнопках с изображениями
|
||||
@@ -1569,8 +1569,8 @@ STR_2212 :Visa listan över alla säkerhetsvakter
|
||||
STR_2213 :Visa listan över alla underhållare
|
||||
STR_2214 :Konstruktion är inte möjligt när spelet är pausat!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} på {STRINGID} har inte kommit tillbaka till {STRINGID} än!{NEWLINE}Kolla om den sitter fast eller har fått motorstopp
|
||||
STR_2219 :{RED}{COMMA16} personer har omkommit i en olycka på {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Parkomdöme: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1555,8 +1555,8 @@ STR_2212 :Parktaki tüm güvenlikler
|
||||
STR_2213 :Parktaki tüm animatörler
|
||||
STR_2214 :Oyun durdurulduğu sürece inşa edilemiyor!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} aletinde {STRINGID} halen {STRINGID}ye dönmedi!{NEWLINE}Aleti kontrol ediniz
|
||||
STR_2219 :{RED}{STRINGID} aletinde {COMMA16} kişi canını kayıp etti
|
||||
STR_2220 :{WINDOW_COLOUR_2}Park değerlendirmesi: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1562,8 +1562,8 @@ STR_2212 :Show list of security guards in park
|
||||
STR_2213 :Show list of entertainers in park
|
||||
STR_2214 :Construction not possible while game is paused!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} on {STRINGID} hasn’t returned to the {STRINGID} yet!{NEWLINE}Check whether it is stuck or has stalled
|
||||
STR_2219 :{RED}{COMMA16} people have died in an accident on {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Рейтинг парку: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1518,8 +1518,8 @@ STR_2212 :Hiện danh sách nhân viên bảo vệ trong công viên
|
||||
STR_2213 :Hiện danh sách người giải trí trong công viên
|
||||
STR_2214 :Không thể xây dựng khi trò chơi đang tạm dừng!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} trên {STRINGID} vẫn chưa trở lại {STRINGID}!{NEWLINE}Kiểm tra xem nó có bị kẹt hay bị dừng không
|
||||
STR_2219 :{RED}{COMMA16} người đã chết trong một tai nạn trên {STRINGID}
|
||||
STR_2220 :{WINDOW_COLOUR_2}Đánh giá công viên: {BLACK}{COMMA16}
|
||||
|
||||
@@ -1568,8 +1568,8 @@ STR_2212 :列出游乐园内的安全警卫
|
||||
STR_2213 :列出游乐园内的表演人员
|
||||
STR_2214 :你不能在游戏暂停时建造!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID} ,{STRINGID}的一部份,尚未返回到{STRINGID}!{NEWLINE}检查是否被卡住或被停止了
|
||||
STR_2219 :{RED}{COMMA16}人已丧生于{STRINGID}的意外中
|
||||
STR_2220 :{WINDOW_COLOUR_2}游乐园评价:{BLACK}{COMMA16}
|
||||
|
||||
@@ -1572,8 +1572,8 @@ STR_2212 :列出樂園內的安全警衛
|
||||
STR_2213 :列出樂園內的表演人員
|
||||
STR_2214 :遊戲暫停時無法建造任何物件!
|
||||
STR_2215 :{STRINGID}{NEWLINE}({STRINGID})
|
||||
STR_2216 :{WINDOW_COLOUR_2}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_2}{COMMA16}°F
|
||||
STR_2216 :{WINDOW_COLOUR_1}{COMMA16}°C
|
||||
STR_2217 :{WINDOW_COLOUR_1}{COMMA16}°F
|
||||
STR_2218 :{RED}{STRINGID}, {STRINGID}的一部份, 尚未返回到{STRINGID}!{NEWLINE}檢查是否被卡住或被停止了
|
||||
STR_2219 :{RED}{COMMA16}人已於{STRINGID}的意外中喪生
|
||||
STR_2220 :{WINDOW_COLOUR_2}樂園評價: {BLACK}{COMMA16}
|
||||
|
||||
@@ -7,5 +7,25 @@
|
||||
[ 9, 74 ]
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"paths": [
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete",
|
||||
"surface": "rct1aa.footpath_surface.queue_red",
|
||||
"coordinates": [
|
||||
[ 19, 58, 26 ],
|
||||
[ 20, 58, 26 ],
|
||||
[ 21, 58, 26 ],
|
||||
[ 22, 58, 26 ],
|
||||
[ 23, 58, 26 ],
|
||||
[ 23, 57, 26 ],
|
||||
[ 23, 56, 26 ],
|
||||
[ 22, 56, 26 ],
|
||||
[ 21, 56, 26 ],
|
||||
[ 21, 57, 26 ],
|
||||
[ 20, 57, 26 ]
|
||||
],
|
||||
"queue": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -22,5 +22,11 @@
|
||||
[ 95, 25 ]
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"rides": [
|
||||
{
|
||||
"id": 34,
|
||||
"operation": "swap_entrance_exit"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7,5 +7,25 @@
|
||||
[ 9, 74 ]
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"paths": [
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete",
|
||||
"surface": "rct2.footpath_surface.queue_yellow",
|
||||
"coordinates": [
|
||||
[ 19, 58, 26 ],
|
||||
[ 20, 58, 26 ],
|
||||
[ 21, 58, 26 ],
|
||||
[ 22, 58, 26 ],
|
||||
[ 23, 58, 26 ],
|
||||
[ 23, 57, 26 ],
|
||||
[ 23, 56, 26 ],
|
||||
[ 22, 56, 26 ],
|
||||
[ 21, 56, 26 ],
|
||||
[ 21, 57, 26 ],
|
||||
[ 20, 57, 26 ]
|
||||
],
|
||||
"queue": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -17,5 +17,33 @@
|
||||
[ 126, 73 ]
|
||||
]
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.queue_green",
|
||||
"coordinates": [ [ 51, 58, 16 ] ],
|
||||
"queue": true
|
||||
},
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.queue_green",
|
||||
"coordinates": [ [ 51, 59, 14 ] ],
|
||||
"slope_direction": 3,
|
||||
"queue": true
|
||||
},
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.tarmac_green",
|
||||
"coordinates": [ [ 50, 58, 16 ] ],
|
||||
"queue": false
|
||||
},
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.tarmac_green",
|
||||
"coordinates": [ [ 50, 59, 14 ] ],
|
||||
"slope_direction": 3,
|
||||
"queue": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -17,5 +17,33 @@
|
||||
[ 126, 73 ]
|
||||
]
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.queue_green",
|
||||
"coordinates": [ [ 51, 58, 16 ] ],
|
||||
"queue": true
|
||||
},
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.queue_green",
|
||||
"coordinates": [ [ 51, 59, 14 ] ],
|
||||
"slope_direction": 3,
|
||||
"queue": true
|
||||
},
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.tarmac_green",
|
||||
"coordinates": [ [ 50, 58, 16 ] ],
|
||||
"queue": false
|
||||
},
|
||||
{
|
||||
"railings": "rct2.footpath_railings.concrete_green",
|
||||
"surface": "rct2.footpath_surface.tarmac_green",
|
||||
"coordinates": [ [ 50, 59, 14 ] ],
|
||||
"slope_direction": 3,
|
||||
"queue": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,8 +1,46 @@
|
||||
0.4.28 (in development)
|
||||
------------------------------------------------------------------------
|
||||
- Feature: [#25286] Footpath area dragging tool.
|
||||
- Feature: [#25379] Add an option to the command line screenshot function to draw debug segment heights.
|
||||
- Improved: [#21375] The `load_object` console command now allows loading JSON objects.
|
||||
- Improved: [#25297] Paths on the ground in SV4/SC4 no longer block supports of the paths above.
|
||||
- Improved: [#25349] ‘Recent Messages’ window can now be fully themed.
|
||||
- Improved: [#25433] Colour dropdown now uses bigger images in Enlarged UI mode.
|
||||
- Change: [#25089] Peep actions and animations that cause them to stop moving no longer trigger when they are on a level crossing.
|
||||
- Change: [#25337] Placing track designs with scenery that is obstructed no longer disables all of the scenery.
|
||||
- Fix: [#20198] Guest inventory from RCT1 base game saves is not imported.
|
||||
- Fix: [#20486] Multiplayer desync when placing track designs without any scenery.
|
||||
- Fix: [#22779, #25330] Incorrect queue paths in Nevermore Park and Six Flags Holland scenarios (bug in the original scenarios).
|
||||
- Fix: [#24975] The Corkscrew and LIM Launched (original bug) roller coaster quarter loop tunnels are too high.
|
||||
- Fix: [#25139] Steam locomotive and tram claxons can sound louder than normal when approaching crossings that span multiple tiles.
|
||||
- Fix: [#25190] Inserting a block brake while a coaster is simulating will cause the simulation to behave strangely.
|
||||
- Fix: [#25206] System file picker does not show up on the Steam Deck.
|
||||
- Fix: [#25272] Text colour dropdown in the Banner window is too narrow, resulting in truncated labels.
|
||||
- Fix: [#25299] The Mine Train Coaster left large helix draws incorrect sprites at certain angles (original bug).
|
||||
- Fix: [#25328] Spiral Slide in Blackpool Pleasure Beach has its entrance and exit the wrong way round (bug in the original scenario).
|
||||
- Fix: [#25342] The Go-Karts medium right gentle sloped turn does not have a tunnel at the end.
|
||||
- Fix: [#25349] Items in Recent Messages are too narrow if there is no scrollbar visible.
|
||||
- Fix: [#25350] The scrolling intro background switches colour halfway through (original bug).
|
||||
- Fix: [#25350] When skipping the scrolling intro, the screen does not get cleared properly.
|
||||
- Fix: [#25350] Scrolling intro cannot be skipped using a mouse click.
|
||||
- Fix: [#25358] The Stand Up Roller Coaster left corkscrew does not block supports correctly.
|
||||
- Fix: [#25363] The Mine Train Coaster flat-to-steep track pieces do not block all metal supports.
|
||||
- Fix: [#25369] The Go-Karts medium turns and small flat and sloped turns do not block metal supports correctly.
|
||||
- Fix: [#25370] The Hybrid Coaster diagonal brakes and block brakes do not block metal supports consistently.
|
||||
- Fix: [#25371] The Wooden Roller Coaster small banked turns block too many metal supports.
|
||||
- Fix: [#25378] The land tool sometimes allows land to be raised through a maze.
|
||||
- Fix: [#25380] The Lay-down Roller Coaster left corkscrew supports are incorrect at one angle (original bug).
|
||||
- Fix: [#25388] The Shortcut Keys window uses the wrong colours for separators, scrollbars and buttons.
|
||||
- Fix: [#25401] Mazes can be built 2 units higher than their support limits.
|
||||
- Fix: [#25404] Guests that have been removed with the remove all guests cheat will still be visible if they were sliding down the Spiral Slide.
|
||||
- Fix: [#25410] Guest flags (e.g. tracking) not imported from RCT1.
|
||||
|
||||
0.4.27 (2025-10-04)
|
||||
------------------------------------------------------------------------
|
||||
- Feature: [#25218] `sprite exportobject` command, which allows extracting images from an object.
|
||||
- Feature: [#25274] New title sequence (see https://github.com/OpenRCT2/title-sequences/releases/tag/v0.4.26 for credits).
|
||||
- Improved: [#2296, #2307] The land tool now takes sloped track and paths into account when modifying land.
|
||||
- Improved: [#25192] Ride List now allows sorting by ride type.
|
||||
- Change: [#25111] Frozen guests no longer finish consuming any food or drink they are carrying.
|
||||
- Change: [#25161] Revert to the ‘fair ride price’ calculation of vanilla RCT2.
|
||||
- Change: [#25201] Ride List: put unknown popularity and satisfaction last when sorting.
|
||||
|
||||
|
After Width: | Height: | Size: 128 B |
|
After Width: | Height: | Size: 128 B |
|
After Width: | Height: | Size: 269 B |
|
After Width: | Height: | Size: 269 B |
@@ -324,6 +324,18 @@
|
||||
{
|
||||
"path": "icons/colour_invisible_pressed.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/colour_large.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/colour_pressed_large.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/colour_invisible_large.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/colour_invisible_pressed_large.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/folder.png"
|
||||
},
|
||||
@@ -838,5 +850,10 @@
|
||||
},
|
||||
{
|
||||
"path": "icons/rotate_view_anti-clockwise.png"
|
||||
},
|
||||
{
|
||||
"path": "tool/path_drag_tool.png",
|
||||
"x": 1,
|
||||
"y": 2
|
||||
}
|
||||
]
|
||||
|
After Width: | Height: | Size: 481 B |
@@ -24635,165 +24635,205 @@
|
||||
"palette": "keep"
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_1_1.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_1_2.png",
|
||||
"x": -32,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_1_3.png",
|
||||
"x": -32,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_1_4.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_2_1.png",
|
||||
"x": -32,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_2_2.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_2_3.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_2_4.png",
|
||||
"x": -32,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_3_1.png",
|
||||
"x": -32,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_3_2.png",
|
||||
"x": -32,
|
||||
"y": -11
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_3_3.png",
|
||||
"x": -32,
|
||||
"y": -11
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_3_4.png",
|
||||
"x": -32,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_4_1.png",
|
||||
"x": -32,
|
||||
"y": -57
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_4_2.png",
|
||||
"x": -32,
|
||||
"y": -41
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_4_3.png",
|
||||
"x": -32,
|
||||
"y": -41
|
||||
},
|
||||
{
|
||||
"path": "support/flat_to_steep_4_4.png",
|
||||
"x": -32,
|
||||
"y": -57
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_1_1.png",
|
||||
"x": -32,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_1_2.png",
|
||||
"x": -32,
|
||||
"y": -38
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_1_3.png",
|
||||
"x": -32,
|
||||
"y": -38
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_1_4.png",
|
||||
"x": -32,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_2_1.png",
|
||||
"x": -32,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_2_2.png",
|
||||
"x": -32,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_2_3.png",
|
||||
"x": -32,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_2_4.png",
|
||||
"x": -32,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_3_1.png",
|
||||
"x": -32,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_3_2.png",
|
||||
"path": "support/wooden/truss/up_25_even_1.png",
|
||||
"x": -32,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_3_3.png",
|
||||
"path": "support/wooden/truss/up_25_even_2.png",
|
||||
"x": -32,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/up_25_even_3.png",
|
||||
"x": -32,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/up_25_even_4.png",
|
||||
"x": -32,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_3_4.png",
|
||||
"path": "support/wooden/truss/flat_to_steep_1_1.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_1_2.png",
|
||||
"x": -32,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_1_3.png",
|
||||
"x": -32,
|
||||
"y": -1
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_1_4.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_2_1.png",
|
||||
"x": -32,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_2_2.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_2_3.png",
|
||||
"x": -32,
|
||||
"y": -5
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_2_4.png",
|
||||
"x": -32,
|
||||
"y": -18
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_3_1.png",
|
||||
"x": -32,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_3_2.png",
|
||||
"x": -32,
|
||||
"y": -11
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_3_3.png",
|
||||
"x": -32,
|
||||
"y": -11
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_3_4.png",
|
||||
"x": -32,
|
||||
"y": -27
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_4_1.png",
|
||||
"x": -32,
|
||||
"y": -57
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_4_2.png",
|
||||
"x": -32,
|
||||
"y": -41
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_4_3.png",
|
||||
"x": -32,
|
||||
"y": -41
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/flat_to_steep_4_4.png",
|
||||
"x": -32,
|
||||
"y": -57
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_1_1.png",
|
||||
"x": -32,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_1_2.png",
|
||||
"x": -32,
|
||||
"y": -38
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_1_3.png",
|
||||
"x": -32,
|
||||
"y": -38
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_1_4.png",
|
||||
"x": -32,
|
||||
"y": -54
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_2_1.png",
|
||||
"x": -32,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_2_2.png",
|
||||
"x": -32,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_2_3.png",
|
||||
"x": -32,
|
||||
"y": -15
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_2_4.png",
|
||||
"x": -32,
|
||||
"y": -31
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_3_1.png",
|
||||
"x": -32,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_4_1.png",
|
||||
"path": "support/wooden/truss/steep_to_flat_3_2.png",
|
||||
"x": -32,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_3_3.png",
|
||||
"x": -32,
|
||||
"y": -16
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_3_4.png",
|
||||
"x": -32,
|
||||
"y": -28
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/truss/steep_to_flat_4_1.png",
|
||||
"x": -32,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_4_2.png",
|
||||
"path": "support/wooden/truss/steep_to_flat_4_2.png",
|
||||
"x": -32,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_4_3.png",
|
||||
"path": "support/wooden/truss/steep_to_flat_4_3.png",
|
||||
"x": -32,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"path": "support/steep_to_flat_4_4.png",
|
||||
"path": "support/wooden/truss/steep_to_flat_4_4.png",
|
||||
"x": -32,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/mine/up_25_even_1.png",
|
||||
"x": -24,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/mine/up_25_even_2.png",
|
||||
"x": -24,
|
||||
"y": 4
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/mine/up_25_even_3.png",
|
||||
"x": -24,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/mine/up_25_even_4.png",
|
||||
"x": -24,
|
||||
"y": -12
|
||||
},
|
||||
{
|
||||
"path": "support/wooden/mine/flat_to_steep_1_1.png",
|
||||
"x": -24,
|
||||
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -28,7 +28,7 @@ CursorRepository::~CursorRepository()
|
||||
|
||||
void CursorRepository::LoadCursors()
|
||||
{
|
||||
SetCursorScale(static_cast<uint8_t>(round(Config::Get().general.WindowScale)));
|
||||
SetCursorScale(static_cast<uint8_t>(round(Config::Get().general.windowScale)));
|
||||
SetCurrentCursor(CursorID::Arrow);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <openrct2/core/Path.hpp>
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include <openrct2/core/StringBuilder.h>
|
||||
#include <openrct2/core/StringTypes.h>
|
||||
#include <openrct2/localisation/Language.h>
|
||||
#include <openrct2/platform/Platform.h>
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
@@ -102,21 +103,22 @@ namespace OpenRCT2::Ui
|
||||
|
||||
std::string executablePath;
|
||||
DialogType dtype = GetDialogApp(&executablePath);
|
||||
|
||||
switch (dtype)
|
||||
{
|
||||
case DialogType::kdialog:
|
||||
{
|
||||
std::string cmd = String::stdFormat(
|
||||
"%s --title \"OpenRCT2\" --msgbox \"%s\"", executablePath.c_str(), message.c_str());
|
||||
Platform::Execute(cmd);
|
||||
const char* args[] = {
|
||||
executablePath.c_str(), "--title", "OpenRCT2", "--msgbox", message.c_str(), nullptr
|
||||
};
|
||||
Platform::Execute(args);
|
||||
break;
|
||||
}
|
||||
case DialogType::zenity:
|
||||
{
|
||||
std::string cmd = String::stdFormat(
|
||||
"%s --title=\"OpenRCT2\" --info --text=\"%s\"", executablePath.c_str(), message.c_str());
|
||||
Platform::Execute(cmd);
|
||||
const char* args[] = {
|
||||
executablePath.c_str(), "--title=OpenRCT2", "--info", "--text", message.c_str(), nullptr
|
||||
};
|
||||
Platform::Execute(args);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@@ -127,15 +129,15 @@ namespace OpenRCT2::Ui
|
||||
|
||||
void OpenFolder(const std::string& path) override
|
||||
{
|
||||
std::string cmd = String::stdFormat("xdg-open %s", EscapePathForShell(path).c_str());
|
||||
Platform::Execute(cmd);
|
||||
const char* args[] = { "xdg-open", path.c_str(), nullptr };
|
||||
Platform::Execute(args);
|
||||
}
|
||||
|
||||
void OpenURL(const std::string& url) override
|
||||
{
|
||||
#ifndef __EMSCRIPTEN__
|
||||
std::string cmd = String::stdFormat("xdg-open %s", url.c_str());
|
||||
Platform::Execute(cmd);
|
||||
const char* args[] = { "xdg-open", url.c_str(), nullptr };
|
||||
Platform::Execute(args);
|
||||
#else
|
||||
MAIN_THREAD_EM_ASM({ window.open(UTF8ToString($0)); }, url.c_str());
|
||||
#endif
|
||||
@@ -145,19 +147,28 @@ namespace OpenRCT2::Ui
|
||||
{
|
||||
std::string result;
|
||||
std::string executablePath;
|
||||
u8string directory = EscapePathForShell(desc.InitialDirectory + '/');
|
||||
u8string directory = desc.InitialDirectory + '/';
|
||||
DialogType dtype = GetDialogApp(&executablePath);
|
||||
switch (dtype)
|
||||
{
|
||||
case DialogType::kdialog:
|
||||
{
|
||||
std::string action = (desc.Type == FileDialogType::Open) ? "--getopenfilename" : "--getsavefilename";
|
||||
std::string filter = GetKDialogFilterString(desc.Filters);
|
||||
std::string cmd = String::stdFormat(
|
||||
"%s --title '%s' %s %s '%s'", executablePath.c_str(), desc.Title.c_str(), action.c_str(),
|
||||
directory.c_str(), filter.c_str());
|
||||
std::vector<std::string> filters = GetKDialogFilterString(desc.Filters);
|
||||
std::vector<std::string> argsVec = { executablePath, "--title", desc.Title, action, directory };
|
||||
for (const auto& filter : filters)
|
||||
{
|
||||
argsVec.push_back(filter);
|
||||
}
|
||||
std::vector<const char*> args;
|
||||
for (const auto& arg : argsVec)
|
||||
{
|
||||
args.push_back(arg.c_str());
|
||||
}
|
||||
args.push_back(nullptr);
|
||||
|
||||
std::string output;
|
||||
if (Platform::Execute(cmd, &output) == 0)
|
||||
if (Platform::Execute(args.data(), &output) == 0)
|
||||
{
|
||||
result = output;
|
||||
}
|
||||
@@ -166,17 +177,30 @@ namespace OpenRCT2::Ui
|
||||
case DialogType::zenity:
|
||||
{
|
||||
std::string action = "--file-selection";
|
||||
std::string flags;
|
||||
std::vector<std::string> filters = GetZenityFilterString(desc.Filters);
|
||||
u8string directoryarg = String::stdFormat("--filename=%s", directory.c_str());
|
||||
std::vector<std::string> argsVec = { executablePath, action, directoryarg };
|
||||
if (desc.Type == FileDialogType::Save)
|
||||
{
|
||||
flags = "--confirm-overwrite --save";
|
||||
argsVec.push_back("--confirm-overwrite");
|
||||
argsVec.push_back("--save");
|
||||
}
|
||||
std::string filters = GetZenityFilterString(desc.Filters);
|
||||
std::string cmd = String::stdFormat(
|
||||
"%s %s --filename=%s %s --title='%s' / %s", executablePath.c_str(), action.c_str(), directory.c_str(),
|
||||
flags.c_str(), desc.Title.c_str(), filters.c_str());
|
||||
argsVec.push_back("--title");
|
||||
argsVec.push_back(desc.Title);
|
||||
argsVec.push_back("/");
|
||||
for (const auto& filter : filters)
|
||||
{
|
||||
argsVec.push_back(filter);
|
||||
}
|
||||
std::vector<const char*> args;
|
||||
for (const auto& arg : argsVec)
|
||||
{
|
||||
args.push_back(arg.c_str());
|
||||
}
|
||||
args.push_back(nullptr);
|
||||
|
||||
std::string output;
|
||||
if (Platform::Execute(cmd, &output) == 0)
|
||||
if (Platform::Execute(args.data(), &output) == 0)
|
||||
{
|
||||
if (desc.Type == FileDialogType::Save)
|
||||
{
|
||||
@@ -219,8 +243,9 @@ namespace OpenRCT2::Ui
|
||||
}
|
||||
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)
|
||||
u8string overwrite = String::stdFormat("Overwrite %s?", result.c_str());
|
||||
const char* args[] = { executablePath.c_str(), "--yesno", overwrite.c_str(), nullptr };
|
||||
if (Platform::Execute(args) != 0)
|
||||
{
|
||||
result = std::string();
|
||||
}
|
||||
@@ -241,7 +266,9 @@ namespace OpenRCT2::Ui
|
||||
std::string output;
|
||||
std::string cmd = String::stdFormat(
|
||||
"%s --title '%s' --getexistingdirectory /", executablePath.c_str(), title.c_str());
|
||||
if (Platform::Execute(cmd, &output) == 0)
|
||||
const char* args[] = { executablePath.c_str(), "--title", title.c_str(),
|
||||
"--getexistingdirectory", "/", nullptr };
|
||||
if (Platform::Execute(args, &output) == 0)
|
||||
{
|
||||
result = output;
|
||||
}
|
||||
@@ -252,7 +279,9 @@ namespace OpenRCT2::Ui
|
||||
std::string output;
|
||||
std::string cmd = String::stdFormat(
|
||||
"%s --title='%s' --file-selection --directory /", executablePath.c_str(), title.c_str());
|
||||
if (Platform::Execute(cmd, &output) == 0)
|
||||
const char* args[] = { executablePath.c_str(), "--title", title.c_str(), "--file-selection",
|
||||
"--directory", "/", nullptr };
|
||||
if (Platform::Execute(args, &output) == 0)
|
||||
{
|
||||
result = output;
|
||||
}
|
||||
@@ -306,30 +335,49 @@ namespace OpenRCT2::Ui
|
||||
{
|
||||
case DialogType::zenity:
|
||||
{
|
||||
auto sb = StringBuilder();
|
||||
sb.Append(String::stdFormat("zenity --list --column '' --width=%d --height=%d", width, height));
|
||||
std::vector<std::string> argsVec = { executablePath,
|
||||
"--list",
|
||||
"--column",
|
||||
"",
|
||||
String::stdFormat("--width=%d", width),
|
||||
String::stdFormat("--height=%d", height) };
|
||||
for (const auto& option : options)
|
||||
{
|
||||
sb.Append(String::stdFormat(" '%s'", option.c_str()));
|
||||
argsVec.push_back(option);
|
||||
}
|
||||
sb.Append(String::stdFormat(" --title '%s' --text '%s'", title.c_str(), text.c_str()));
|
||||
|
||||
argsVec.push_back("--title");
|
||||
argsVec.push_back(title);
|
||||
argsVec.push_back("--text");
|
||||
argsVec.push_back(text);
|
||||
std::vector<const char*> args;
|
||||
for (const auto& arg : argsVec)
|
||||
{
|
||||
args.push_back(arg.c_str());
|
||||
}
|
||||
args.push_back(nullptr);
|
||||
std::string buff;
|
||||
Platform::Execute(sb.GetBuffer(), &buff);
|
||||
Platform::Execute(args.data(), &buff);
|
||||
return std::find(options.begin(), options.end(), buff) - options.begin();
|
||||
}
|
||||
case DialogType::kdialog:
|
||||
{
|
||||
auto sb = StringBuilder();
|
||||
sb.Append(String::stdFormat("kdialog --geometry %dx%d --title '%s' --menu ", width, height, title.c_str()));
|
||||
sb.Append(String::stdFormat(" '%s'", text.c_str()));
|
||||
std::vector<std::string> argsVec = {
|
||||
executablePath, "--geometry", String::stdFormat("%dx%d", width, height), "--title", title,
|
||||
"--menu", text
|
||||
};
|
||||
for (const auto& option : options)
|
||||
{
|
||||
sb.Append(String::stdFormat(" '%s' '%s'", option.c_str(), option.c_str()));
|
||||
argsVec.push_back(option);
|
||||
argsVec.push_back(option);
|
||||
}
|
||||
|
||||
std::vector<const char*> args;
|
||||
for (const auto& arg : argsVec)
|
||||
{
|
||||
args.push_back(arg.c_str());
|
||||
}
|
||||
args.push_back(nullptr);
|
||||
std::string buff;
|
||||
Platform::Execute(sb.GetBuffer(), &buff);
|
||||
Platform::Execute(args.data(), &buff);
|
||||
return std::find(options.begin(), options.end(), buff) - options.begin();
|
||||
}
|
||||
default:
|
||||
@@ -346,8 +394,6 @@ namespace OpenRCT2::Ui
|
||||
{
|
||||
// Prefer zenity as it offers more required features, e.g., overwrite
|
||||
// confirmation and selecting only existing files.
|
||||
// Silence error output with 2> /dev/null to avoid confusion in the
|
||||
// case where a user does not have zenity and/or kdialog.
|
||||
// OpenRCT2 will fall back to an SDL pop-up if the user has neither.
|
||||
if (Platform::FindApp("zenity", executablePath))
|
||||
{
|
||||
@@ -360,35 +406,31 @@ namespace OpenRCT2::Ui
|
||||
return DialogType::none;
|
||||
}
|
||||
|
||||
static std::string GetKDialogFilterString(const std::vector<FileDialogDesc::Filter> filters)
|
||||
static std::vector<std::string> GetKDialogFilterString(const std::vector<FileDialogDesc::Filter>& filters)
|
||||
{
|
||||
std::stringstream filtersb;
|
||||
bool first = true;
|
||||
std::vector<std::string> filterStrings;
|
||||
for (const auto& filter : filters)
|
||||
{
|
||||
if (!first)
|
||||
{
|
||||
filtersb << "\\n";
|
||||
}
|
||||
first = false;
|
||||
|
||||
std::stringstream filtersb;
|
||||
filtersb << filter.Name.c_str() << " (";
|
||||
AddFilterCaseInsensitive(filtersb, filter.Pattern);
|
||||
filtersb << ")";
|
||||
filterStrings.push_back(filtersb.str());
|
||||
}
|
||||
return filtersb.str();
|
||||
return filterStrings;
|
||||
}
|
||||
|
||||
static std::string GetZenityFilterString(const std::vector<FileDialogDesc::Filter> filters)
|
||||
static std::vector<std::string> GetZenityFilterString(const std::vector<FileDialogDesc::Filter>& filters)
|
||||
{
|
||||
std::stringstream filtersb;
|
||||
std::vector<std::string> filterStrings;
|
||||
for (const auto& filter : filters)
|
||||
{
|
||||
filtersb << " --file-filter='" << filter.Name << " | ";
|
||||
std::stringstream filtersb;
|
||||
filtersb << "--file-filter=" << filter.Name << " | ";
|
||||
AddFilterCaseInsensitive(filtersb, filter.Pattern);
|
||||
filtersb << "'";
|
||||
filterStrings.push_back(filtersb.str());
|
||||
}
|
||||
return filtersb.str();
|
||||
return filterStrings;
|
||||
}
|
||||
|
||||
static void AddFilterCaseInsensitive(std::stringstream& stream, u8string pattern)
|
||||
@@ -418,15 +460,6 @@ namespace OpenRCT2::Ui
|
||||
uiContext.ShowMessageBox(dialogMissingWarning);
|
||||
throw std::runtime_error(dialogMissingWarning);
|
||||
}
|
||||
|
||||
static std::string EscapePathForShell(std::string path)
|
||||
{
|
||||
for (size_t index = 0; (index = path.find('"', index)) != std::string::npos; index += 2)
|
||||
{
|
||||
path.replace(index, 1, "\\\"");
|
||||
}
|
||||
return '"' + path + '"';
|
||||
}
|
||||
};
|
||||
|
||||
std::unique_ptr<IPlatformUiContext> CreatePlatformUiContext()
|
||||
|
||||
@@ -198,12 +198,12 @@ public:
|
||||
// Set window size
|
||||
UpdateFullscreenResolutions();
|
||||
Resolution resolution = GetClosestResolution(
|
||||
Config::Get().general.FullscreenWidth, Config::Get().general.FullscreenHeight);
|
||||
Config::Get().general.fullscreenWidth, Config::Get().general.fullscreenHeight);
|
||||
SDL_SetWindowSize(_window, resolution.Width, resolution.Height);
|
||||
}
|
||||
else if (mode == FullscreenMode::windowed)
|
||||
{
|
||||
SDL_SetWindowSize(_window, Config::Get().general.WindowWidth, Config::Get().general.WindowHeight);
|
||||
SDL_SetWindowSize(_window, Config::Get().general.windowWidth, Config::Get().general.windowHeight);
|
||||
}
|
||||
|
||||
if (SDL_SetWindowFullscreen(_window, windowFlags))
|
||||
@@ -374,16 +374,16 @@ public:
|
||||
{
|
||||
// Update default display index
|
||||
int32_t displayIndex = SDL_GetWindowDisplayIndex(_window);
|
||||
if (displayIndex != Config::Get().general.DefaultDisplay)
|
||||
if (displayIndex != Config::Get().general.defaultDisplay)
|
||||
{
|
||||
Config::Get().general.DefaultDisplay = displayIndex;
|
||||
Config::Get().general.defaultDisplay = displayIndex;
|
||||
Config::Save();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (Config::Get().sound.audio_focus)
|
||||
if (Config::Get().sound.audioFocus)
|
||||
{
|
||||
if (e.window.event == SDL_WINDOWEVENT_FOCUS_GAINED)
|
||||
{
|
||||
@@ -396,8 +396,8 @@ public:
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEMOTION:
|
||||
_cursorState.position = { static_cast<int32_t>(e.motion.x / Config::Get().general.WindowScale),
|
||||
static_cast<int32_t>(e.motion.y / Config::Get().general.WindowScale) };
|
||||
_cursorState.position = { static_cast<int32_t>(e.motion.x / Config::Get().general.windowScale),
|
||||
static_cast<int32_t>(e.motion.y / Config::Get().general.windowScale) };
|
||||
break;
|
||||
case SDL_MOUSEWHEEL:
|
||||
if (_inGameConsole.IsOpen())
|
||||
@@ -413,8 +413,8 @@ public:
|
||||
{
|
||||
break;
|
||||
}
|
||||
ScreenCoordsXY mousePos = { static_cast<int32_t>(e.button.x / Config::Get().general.WindowScale),
|
||||
static_cast<int32_t>(e.button.y / Config::Get().general.WindowScale) };
|
||||
ScreenCoordsXY mousePos = { static_cast<int32_t>(e.button.x / Config::Get().general.windowScale),
|
||||
static_cast<int32_t>(e.button.y / Config::Get().general.windowScale) };
|
||||
switch (e.button.button)
|
||||
{
|
||||
case SDL_BUTTON_LEFT:
|
||||
@@ -449,8 +449,8 @@ public:
|
||||
{
|
||||
break;
|
||||
}
|
||||
ScreenCoordsXY mousePos = { static_cast<int32_t>(e.button.x / Config::Get().general.WindowScale),
|
||||
static_cast<int32_t>(e.button.y / Config::Get().general.WindowScale) };
|
||||
ScreenCoordsXY mousePos = { static_cast<int32_t>(e.button.x / Config::Get().general.windowScale),
|
||||
static_cast<int32_t>(e.button.y / Config::Get().general.windowScale) };
|
||||
switch (e.button.button)
|
||||
{
|
||||
case SDL_BUTTON_LEFT:
|
||||
@@ -604,7 +604,7 @@ public:
|
||||
{
|
||||
char scaleQualityBuffer[4];
|
||||
_scaleQuality = ScaleQuality::SmoothNearestNeighbour;
|
||||
if (Config::Get().general.WindowScale == std::floor(Config::Get().general.WindowScale))
|
||||
if (Config::Get().general.windowScale == std::floor(Config::Get().general.windowScale))
|
||||
{
|
||||
_scaleQuality = ScaleQuality::NearestNeighbour;
|
||||
}
|
||||
@@ -624,10 +624,10 @@ public:
|
||||
|
||||
void CreateWindow() override
|
||||
{
|
||||
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, Config::Get().general.MinimizeFullscreenFocusLoss ? "1" : "0");
|
||||
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, Config::Get().general.minimizeFullscreenFocusLoss ? "1" : "0");
|
||||
|
||||
// Set window position to default display
|
||||
int32_t defaultDisplay = std::clamp(Config::Get().general.DefaultDisplay, 0, 0xFFFF);
|
||||
int32_t defaultDisplay = std::clamp(Config::Get().general.defaultDisplay, 0, 0xFFFF);
|
||||
auto windowPos = ScreenCoordsXY{ static_cast<int32_t>(SDL_WINDOWPOS_UNDEFINED_DISPLAY(defaultDisplay)),
|
||||
static_cast<int32_t>(SDL_WINDOWPOS_UNDEFINED_DISPLAY(defaultDisplay)) };
|
||||
|
||||
@@ -770,7 +770,7 @@ private:
|
||||
void InferDisplayDPI()
|
||||
{
|
||||
auto& config = Config::Get().general;
|
||||
if (!config.InferDisplayDPI)
|
||||
if (!config.inferDisplayDPI)
|
||||
return;
|
||||
|
||||
int wWidth, wHeight;
|
||||
@@ -779,9 +779,9 @@ private:
|
||||
auto renderer = SDL_GetRenderer(_window);
|
||||
int rWidth, rHeight;
|
||||
if (SDL_GetRendererOutputSize(renderer, &rWidth, &rHeight) == 0)
|
||||
config.WindowScale = rWidth / wWidth;
|
||||
config.windowScale = rWidth / wWidth;
|
||||
|
||||
config.InferDisplayDPI = false;
|
||||
config.inferDisplayDPI = false;
|
||||
Config::Save();
|
||||
}
|
||||
|
||||
@@ -797,8 +797,8 @@ private:
|
||||
emscripten_get_canvas_element_size("!canvas", &width, &height);
|
||||
#else
|
||||
// Get saved window size
|
||||
int32_t width = Config::Get().general.WindowWidth;
|
||||
int32_t height = Config::Get().general.WindowHeight;
|
||||
int32_t width = Config::Get().general.windowWidth;
|
||||
int32_t height = Config::Get().general.windowHeight;
|
||||
#endif
|
||||
if (width <= 0)
|
||||
width = 640;
|
||||
@@ -807,7 +807,7 @@ private:
|
||||
|
||||
// Create window in window first rather than fullscreen so we have the display the window is on first
|
||||
uint32_t flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI;
|
||||
if (Config::Get().general.DrawingEngine == DrawingEngine::OpenGL)
|
||||
if (Config::Get().general.drawingEngine == DrawingEngine::OpenGL)
|
||||
{
|
||||
flags |= SDL_WINDOW_OPENGL;
|
||||
}
|
||||
@@ -821,7 +821,7 @@ private:
|
||||
ApplyScreenSaverLockSetting();
|
||||
|
||||
SDL_SetWindowMinimumSize(_window, 720, 480);
|
||||
SetCursorTrap(Config::Get().general.TrapCursor);
|
||||
SetCursorTrap(Config::Get().general.trapCursor);
|
||||
_platformUiContext->SetWindowIcon(_window);
|
||||
|
||||
// Initialise the surface, palette and draw buffer
|
||||
@@ -831,15 +831,15 @@ private:
|
||||
|
||||
UpdateFullscreenResolutions();
|
||||
|
||||
SetFullscreenMode(static_cast<FullscreenMode>(Config::Get().general.FullscreenMode));
|
||||
SetFullscreenMode(static_cast<FullscreenMode>(Config::Get().general.fullscreenMode));
|
||||
TriggerResize();
|
||||
}
|
||||
|
||||
void OnResize(int32_t width, int32_t height)
|
||||
{
|
||||
// Scale the native window size to the game's canvas size
|
||||
_width = static_cast<int32_t>(width / Config::Get().general.WindowScale);
|
||||
_height = static_cast<int32_t>(height / Config::Get().general.WindowScale);
|
||||
_width = static_cast<int32_t>(width / Config::Get().general.windowScale);
|
||||
_height = static_cast<int32_t>(height / Config::Get().general.windowScale);
|
||||
|
||||
DrawingEngineResize();
|
||||
|
||||
@@ -861,10 +861,10 @@ private:
|
||||
|
||||
if (!(flags & nonWindowFlags))
|
||||
{
|
||||
if (width != Config::Get().general.WindowWidth || height != Config::Get().general.WindowHeight)
|
||||
if (width != Config::Get().general.windowWidth || height != Config::Get().general.windowHeight)
|
||||
{
|
||||
Config::Get().general.WindowWidth = width;
|
||||
Config::Get().general.WindowHeight = height;
|
||||
Config::Get().general.windowWidth = width;
|
||||
Config::Get().general.windowHeight = height;
|
||||
Config::Save();
|
||||
}
|
||||
}
|
||||
@@ -911,10 +911,10 @@ private:
|
||||
|
||||
// Update config fullscreen resolution if not set
|
||||
if (!resolutions.empty()
|
||||
&& (Config::Get().general.FullscreenWidth == -1 || Config::Get().general.FullscreenHeight == -1))
|
||||
&& (Config::Get().general.fullscreenWidth == -1 || Config::Get().general.fullscreenHeight == -1))
|
||||
{
|
||||
Config::Get().general.FullscreenWidth = resolutions.back().Width;
|
||||
Config::Get().general.FullscreenHeight = resolutions.back().Height;
|
||||
Config::Get().general.fullscreenWidth = resolutions.back().Width;
|
||||
Config::Get().general.fullscreenHeight = resolutions.back().Height;
|
||||
}
|
||||
|
||||
_fsResolutions = resolutions;
|
||||
|
||||
@@ -703,6 +703,7 @@ namespace OpenRCT2
|
||||
STR_CONSTRUCT_THE_SELECTED_FOOTPATH_SECTION_TIP = 1189,
|
||||
STR_DIRECTION = 1183,
|
||||
STR_DIRECTION_TIP = 1185,
|
||||
STR_DRAG_AREA_OF_FOOTPATH_TIP = 7005,
|
||||
STR_FOOTPATHS = 1181,
|
||||
STR_FOOTPATH_TIP = 1424,
|
||||
STR_LEVEL_TIP = 1187,
|
||||
@@ -1786,6 +1787,7 @@ namespace OpenRCT2
|
||||
STR_RIDE_LIST_INFORMATION_TYPE_TIP = 1844,
|
||||
STR_RIDE_LIST_INTENSITY = 6464,
|
||||
STR_RIDE_LIST_NAUSEA = 6466,
|
||||
STR_RIDE_LIST_RIDETYPE = 7007,
|
||||
STR_RIDE_LIST_RUNNING_COST = 5771,
|
||||
STR_RIDE_LIST_RUNNING_COST_LABEL = 5780,
|
||||
STR_RIDE_LIST_RUNNING_COST_UNKNOWN = 5781,
|
||||
@@ -1971,6 +1973,7 @@ namespace OpenRCT2
|
||||
STR_THEMES_OPTION_RCT1_PARK_CONTROLS = 5283,
|
||||
STR_THEMES_OPTION_RCT1_RIDE_CONTROLS = 5282,
|
||||
STR_THEMES_OPTION_RCT1_SCENARIO_SELECTION_FONT = 5284,
|
||||
STR_THEMES_OPTION_USE_3D_IMAGE_BUTTONS = 7006,
|
||||
STR_THEMES_PROMPT_ENTER_THEME_NAME = 5240,
|
||||
STR_THEMES_TAB_EDITORS_TIP = 5232,
|
||||
STR_THEMES_TAB_FEATURES_TIP = 5281,
|
||||
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
case WindowView::financesResearch:
|
||||
return FinancesResearchOpen();
|
||||
case WindowView::rideResearch:
|
||||
if (Config::Get().interface.ToolbarShowResearch)
|
||||
if (Config::Get().interface.toolbarShowResearch)
|
||||
{
|
||||
return this->OpenWindow(WindowClass::research);
|
||||
}
|
||||
@@ -855,7 +855,7 @@ public:
|
||||
|
||||
// Check if there are any window slots left
|
||||
// include kWindowLimitReserved for items such as the main viewport and toolbars to not appear to be counted.
|
||||
if (gWindowList.size() >= static_cast<size_t>(Config::Get().general.WindowLimit + kWindowLimitReserved))
|
||||
if (gWindowList.size() >= static_cast<size_t>(Config::Get().general.windowLimit + kWindowLimitReserved))
|
||||
{
|
||||
// Close least recently used window
|
||||
for (auto& w : gWindowList)
|
||||
|
||||
@@ -146,8 +146,8 @@ void AudioMixer::GetNextAudioChunk(uint8_t* dst, size_t length)
|
||||
else
|
||||
{
|
||||
auto group = channel->GetGroup();
|
||||
if ((group != MixerGroup::Sound || Config::Get().sound.SoundEnabled) && Config::Get().sound.MasterSoundEnabled
|
||||
&& Config::Get().sound.MasterVolume != 0)
|
||||
if ((group != MixerGroup::Sound || Config::Get().sound.soundEnabled) && Config::Get().sound.masterSoundEnabled
|
||||
&& Config::Get().sound.masterVolume != 0)
|
||||
{
|
||||
MixChannel(channel.get(), dst, length);
|
||||
}
|
||||
@@ -159,14 +159,14 @@ void AudioMixer::GetNextAudioChunk(uint8_t* dst, size_t length)
|
||||
void AudioMixer::UpdateAdjustedSound()
|
||||
{
|
||||
// Did the volume level get changed? Recalculate level in this case.
|
||||
if (_settingSoundVolume != Config::Get().sound.SoundVolume)
|
||||
if (_settingSoundVolume != Config::Get().sound.soundVolume)
|
||||
{
|
||||
_settingSoundVolume = Config::Get().sound.SoundVolume;
|
||||
_settingSoundVolume = Config::Get().sound.soundVolume;
|
||||
_adjustSoundVolume = powf(static_cast<float>(_settingSoundVolume) / 100.f, 10.f / 6.f);
|
||||
}
|
||||
if (_settingMusicVolume != Config::Get().sound.AudioFocus)
|
||||
if (_settingMusicVolume != Config::Get().sound.rideMusicVolume)
|
||||
{
|
||||
_settingMusicVolume = Config::Get().sound.AudioFocus;
|
||||
_settingMusicVolume = Config::Get().sound.rideMusicVolume;
|
||||
_adjustMusicVolume = powf(static_cast<float>(_settingMusicVolume) / 100.f, 10.f / 6.f);
|
||||
}
|
||||
}
|
||||
@@ -297,7 +297,7 @@ void AudioMixer::ApplyPan(const IAudioChannel* channel, void* buffer, size_t len
|
||||
int32_t AudioMixer::ApplyVolume(const IAudioChannel* channel, void* buffer, size_t len)
|
||||
{
|
||||
float volumeAdjust = _volume;
|
||||
volumeAdjust *= Config::Get().sound.MasterSoundEnabled ? (static_cast<float>(Config::Get().sound.MasterVolume) / 100.0f)
|
||||
volumeAdjust *= Config::Get().sound.masterSoundEnabled ? (static_cast<float>(Config::Get().sound.masterVolume) / 100.0f)
|
||||
: 0.0f;
|
||||
|
||||
switch (channel->GetGroup())
|
||||
|
||||
@@ -153,7 +153,7 @@ public:
|
||||
|
||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, scaleQualityBuffer);
|
||||
|
||||
uint32_t scale = std::ceil(Config::Get().general.WindowScale);
|
||||
uint32_t scale = std::ceil(Config::Get().general.windowScale);
|
||||
_scaledScreenTexture = SDL_CreateTexture(
|
||||
_sdlRenderer, pixelFormat, SDL_TEXTUREACCESS_TARGET, width * scale, height * scale);
|
||||
|
||||
@@ -186,7 +186,7 @@ public:
|
||||
_paletteHWMapped[i] = SDL_MapRGB(_screenTextureFormat, palette[i].Red, palette[i].Green, palette[i].Blue);
|
||||
}
|
||||
|
||||
if (Config::Get().general.EnableLightFx)
|
||||
if (Config::Get().general.enableLightFx)
|
||||
{
|
||||
auto& lightPalette = LightFx::GetPalette();
|
||||
for (int32_t i = 0; i < 256; i++)
|
||||
@@ -235,7 +235,7 @@ private:
|
||||
{
|
||||
auto* viewport = WindowGetViewport(WindowGetMain());
|
||||
|
||||
if (Config::Get().general.EnableLightFx && viewport != nullptr)
|
||||
if (Config::Get().general.enableLightFx && viewport != nullptr)
|
||||
{
|
||||
void* pixels;
|
||||
int32_t pitch;
|
||||
@@ -351,8 +351,8 @@ private:
|
||||
SDL_GetWindowSize(_window, &windowX, &windowY);
|
||||
SDL_GetRendererOutputSize(_sdlRenderer, &renderX, &renderY);
|
||||
|
||||
float scaleX = Config::Get().general.WindowScale * renderX / static_cast<float>(windowX);
|
||||
float scaleY = Config::Get().general.WindowScale * renderY / static_cast<float>(windowY);
|
||||
float scaleX = Config::Get().general.windowScale * renderX / static_cast<float>(windowX);
|
||||
float scaleY = Config::Get().general.windowScale * renderY / static_cast<float>(windowY);
|
||||
|
||||
SDL_SetRenderDrawBlendMode(_sdlRenderer, SDL_BLENDMODE_BLEND);
|
||||
for (uint32_t y = 0; y < _invalidationGrid.getRowCount(); y++)
|
||||
|
||||
@@ -613,7 +613,7 @@ private:
|
||||
}
|
||||
if (GetContext()->GetUiContext().GetScaleQuality() == ScaleQuality::SmoothNearestNeighbour)
|
||||
{
|
||||
uint32_t scale = std::ceil(Config::Get().general.WindowScale);
|
||||
uint32_t scale = std::ceil(Config::Get().general.windowScale);
|
||||
_smoothScaleFramebuffer = std::make_unique<OpenGLFramebuffer>(_width * scale, _height * scale, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ void InputManager::handleViewScrolling()
|
||||
}
|
||||
|
||||
// Mouse edge scrolling
|
||||
if (Config::Get().general.EdgeScrolling)
|
||||
if (Config::Get().general.edgeScrolling)
|
||||
{
|
||||
if (InputGetState() != InputState::Normal)
|
||||
return;
|
||||
@@ -299,7 +299,7 @@ void InputManager::handleModifiers()
|
||||
}
|
||||
#endif
|
||||
|
||||
if (Config::Get().general.VirtualFloorStyle != VirtualFloorStyles::Off)
|
||||
if (Config::Get().general.virtualFloorStyle != VirtualFloorStyles::Off)
|
||||
{
|
||||
if (isModifierKeyPressed(ModifierKey::ctrl) || isModifierKeyPressed(ModifierKey::shift))
|
||||
VirtualFloorEnable();
|
||||
|
||||
@@ -233,8 +233,8 @@ namespace OpenRCT2
|
||||
windowMgr->InvalidateByNumber(w->classification, w->number);
|
||||
|
||||
ScreenCoordsXY fixedCursorPosition = {
|
||||
static_cast<int32_t>(std::ceil(gInputDragLast.x * Config::Get().general.WindowScale)),
|
||||
static_cast<int32_t>(std::ceil(gInputDragLast.y * Config::Get().general.WindowScale))
|
||||
static_cast<int32_t>(std::ceil(gInputDragLast.x * Config::Get().general.windowScale)),
|
||||
static_cast<int32_t>(std::ceil(gInputDragLast.y * Config::Get().general.windowScale))
|
||||
};
|
||||
|
||||
ContextSetCursorPosition(fixedCursorPosition);
|
||||
@@ -492,7 +492,7 @@ namespace OpenRCT2
|
||||
{
|
||||
int32_t snapProximity;
|
||||
|
||||
snapProximity = (w.flags.has(WindowFlag::noSnapping)) ? 0 : Config::Get().general.WindowSnapProximity;
|
||||
snapProximity = (w.flags.has(WindowFlag::noSnapping)) ? 0 : Config::Get().general.windowSnapProximity;
|
||||
WindowMoveAndSnap(w, newScreenCoords - lastScreenCoords, snapProximity);
|
||||
}
|
||||
|
||||
@@ -547,7 +547,7 @@ namespace OpenRCT2
|
||||
_ticksSinceDragStart = gCurrentRealTimeTicks;
|
||||
auto cursorPosition = ContextGetCursorPosition();
|
||||
gInputDragLast = cursorPosition;
|
||||
if (!Config::Get().general.InvertViewportDrag)
|
||||
if (!Config::Get().general.invertViewportDrag)
|
||||
{
|
||||
ContextHideCursor();
|
||||
}
|
||||
@@ -608,7 +608,7 @@ namespace OpenRCT2
|
||||
differentialCoords.x = posX ? -differentialCoords.x : differentialCoords.x;
|
||||
differentialCoords.y = posY ? -differentialCoords.y : differentialCoords.y;
|
||||
|
||||
if (Config::Get().general.InvertViewportDrag)
|
||||
if (Config::Get().general.invertViewportDrag)
|
||||
{
|
||||
w->savedViewPos -= differentialCoords;
|
||||
}
|
||||
@@ -621,7 +621,7 @@ namespace OpenRCT2
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
const CursorState* cursorState = ContextGetCursorState();
|
||||
if (cursorState->touch || Config::Get().general.InvertViewportDrag)
|
||||
if (cursorState->touch || Config::Get().general.invertViewportDrag)
|
||||
{
|
||||
gInputDragLast = newDragCoords;
|
||||
}
|
||||
@@ -1115,6 +1115,7 @@ namespace OpenRCT2
|
||||
case WidgetType::trnBtn:
|
||||
case WidgetType::tab:
|
||||
case WidgetType::flatBtn:
|
||||
case WidgetType::hiddenButton:
|
||||
case WidgetType::button:
|
||||
case WidgetType::tableHeader:
|
||||
case WidgetType::spinner:
|
||||
@@ -1634,7 +1635,7 @@ namespace OpenRCT2
|
||||
if (viewport == nullptr)
|
||||
return;
|
||||
|
||||
const int32_t speed = Config::Get().general.EdgeScrollingSpeed;
|
||||
const int32_t speed = Config::Get().general.edgeScrollingSpeed;
|
||||
|
||||
int32_t multiplier = viewport->zoom.ApplyTo(speed);
|
||||
int32_t dx = scrollScreenCoords.x * multiplier;
|
||||
|
||||
@@ -457,7 +457,7 @@ static void ShortcutOpenSceneryPicker()
|
||||
|
||||
static void ShortcutScaleUp()
|
||||
{
|
||||
Config::Get().general.WindowScale += 0.25f;
|
||||
Config::Get().general.windowScale += 0.25f;
|
||||
Config::Save();
|
||||
GfxInvalidateScreen();
|
||||
ContextTriggerResize();
|
||||
@@ -466,8 +466,8 @@ static void ShortcutScaleUp()
|
||||
|
||||
static void ShortcutScaleDown()
|
||||
{
|
||||
Config::Get().general.WindowScale -= 0.25f;
|
||||
Config::Get().general.WindowScale = std::max(0.5f, Config::Get().general.WindowScale);
|
||||
Config::Get().general.windowScale -= 0.25f;
|
||||
Config::Get().general.windowScale = std::max(0.5f, Config::Get().general.windowScale);
|
||||
Config::Save();
|
||||
GfxInvalidateScreen();
|
||||
ContextTriggerResize();
|
||||
@@ -623,7 +623,7 @@ static void ShortcutToggleConsole()
|
||||
{
|
||||
console.Toggle();
|
||||
}
|
||||
else if (Config::Get().general.DebuggingTools && !ContextIsInputActive())
|
||||
else if (Config::Get().general.debuggingTools && !ContextIsInputActive())
|
||||
{
|
||||
WindowCancelTextbox();
|
||||
console.Toggle();
|
||||
@@ -737,7 +737,7 @@ static void ShortcutToggleTransparentWater()
|
||||
if (gLegacyScene == LegacyScene::titleSequence)
|
||||
return;
|
||||
|
||||
Config::Get().general.TransparentWater ^= 1;
|
||||
Config::Get().general.transparentWater ^= 1;
|
||||
Config::Save();
|
||||
GfxInvalidateScreen();
|
||||
}
|
||||
@@ -827,7 +827,7 @@ void ShortcutManager::registerDefaultShortcuts()
|
||||
registerShortcut(ShortcutId::kInterfaceOpenTransparencyOptions, STR_SHORTCUT_OPEN_TRANSPARENCY_OPTIONS, "CTRL+T", ShortcutOpenTransparencyWindow);
|
||||
registerShortcut(ShortcutId::kInterfaceOpenCheats, STR_SHORTCUT_OPEN_CHEATS_WINDOW, "CTRL+ALT+C", ShortcutOpenCheatWindow);
|
||||
registerShortcut(ShortcutId::kInterfaceOpenTileInspector, STR_SHORTCUT_OPEN_TILE_INSPECTOR, []() {
|
||||
if (Config::Get().interface.ToolbarShowCheats)
|
||||
if (Config::Get().interface.toolbarShowCheats)
|
||||
{
|
||||
OpenWindow(WindowClass::tileInspector);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
auto& config = Config::Get().general;
|
||||
|
||||
// Open system file picker?
|
||||
if (config.UseNativeBrowseDialog && hasFilePicker)
|
||||
if (config.useNativeBrowseDialog && hasFilePicker)
|
||||
{
|
||||
const bool isSave = (action == LoadSaveAction::save);
|
||||
const auto defaultDirectory = GetDir(type);
|
||||
@@ -84,7 +84,7 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
if (a.type != b.type)
|
||||
return EnumValue(a.type) - EnumValue(b.type) < 0;
|
||||
|
||||
switch (Config::Get().general.LoadSaveSort)
|
||||
switch (Config::Get().general.loadSaveSort)
|
||||
{
|
||||
case FileBrowserSort::NameAscending:
|
||||
return String::logicalCmp(a.name.c_str(), b.name.c_str()) < 0;
|
||||
@@ -123,16 +123,16 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
switch (type)
|
||||
{
|
||||
case LoadSaveType::park:
|
||||
return Config::Get().general.LastSaveGameDirectory;
|
||||
return Config::Get().general.lastSaveGameDirectory;
|
||||
|
||||
case LoadSaveType::landscape:
|
||||
return Config::Get().general.LastSaveLandscapeDirectory;
|
||||
return Config::Get().general.lastSaveLandscapeDirectory;
|
||||
|
||||
case LoadSaveType::scenario:
|
||||
return Config::Get().general.LastSaveScenarioDirectory;
|
||||
return Config::Get().general.lastSaveScenarioDirectory;
|
||||
|
||||
case LoadSaveType::track:
|
||||
return Config::Get().general.LastSaveTrackDirectory;
|
||||
return Config::Get().general.lastSaveTrackDirectory;
|
||||
|
||||
default:
|
||||
return u8string();
|
||||
@@ -257,7 +257,7 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
{
|
||||
case (LoadSaveType::park):
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveGameDirectory, pathBuffer);
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveGameDirectory, pathBuffer);
|
||||
if (GetContext()->LoadParkFromFile(pathBuffer))
|
||||
{
|
||||
InvokeCallback(ModalResult::ok, pathBuffer);
|
||||
@@ -278,7 +278,7 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
}
|
||||
case (LoadSaveType::landscape):
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveLandscapeDirectory, pathBuffer);
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveLandscapeDirectory, pathBuffer);
|
||||
if (Editor::LoadLandscape(pathBuffer))
|
||||
{
|
||||
gCurrentLoadedPath = pathBuffer;
|
||||
@@ -295,12 +295,12 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
}
|
||||
case (LoadSaveType::scenario):
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveScenarioDirectory, pathBuffer);
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveScenarioDirectory, pathBuffer);
|
||||
int32_t parkFlagsBackup = gameState.park.flags;
|
||||
gameState.park.flags &= ~PARK_FLAGS_SPRITES_INITIALISED;
|
||||
gameState.editorStep = EditorStep::Invalid;
|
||||
gameState.scenarioFileName = std::string(String::toStringView(pathBuffer, std::size(pathBuffer)));
|
||||
int32_t success = ScenarioSave(gameState, pathBuffer, Config::Get().general.SavePluginData ? 3 : 2);
|
||||
int32_t success = ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 3 : 2);
|
||||
gameState.park.flags = parkFlagsBackup;
|
||||
|
||||
if (success)
|
||||
@@ -321,7 +321,7 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
}
|
||||
case (LoadSaveType::track):
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveTrackDirectory, pathBuffer);
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveTrackDirectory, pathBuffer);
|
||||
auto intent = Intent(WindowClass::installTrack);
|
||||
intent.PutExtra(INTENT_EXTRA_PATH, std::string{ pathBuffer });
|
||||
ContextOpenIntent(&intent);
|
||||
@@ -344,8 +344,8 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
{
|
||||
case LoadSaveType::park:
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveGameDirectory, pathBuffer);
|
||||
if (ScenarioSave(gameState, pathBuffer, Config::Get().general.SavePluginData ? 1 : 0))
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveGameDirectory, pathBuffer);
|
||||
if (ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 1 : 0))
|
||||
{
|
||||
gScenarioSavePath = pathBuffer;
|
||||
gCurrentLoadedPath = pathBuffer;
|
||||
@@ -366,9 +366,9 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
}
|
||||
case LoadSaveType::landscape:
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveLandscapeDirectory, pathBuffer);
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveLandscapeDirectory, pathBuffer);
|
||||
gameState.scenarioFileName = std::string(String::toStringView(pathBuffer, std::size(pathBuffer)));
|
||||
if (ScenarioSave(gameState, pathBuffer, Config::Get().general.SavePluginData ? 3 : 2))
|
||||
if (ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 3 : 2))
|
||||
{
|
||||
gCurrentLoadedPath = pathBuffer;
|
||||
windowMgr->CloseByClass(WindowClass::loadsave);
|
||||
@@ -384,12 +384,12 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
}
|
||||
case LoadSaveType::scenario:
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveScenarioDirectory, pathBuffer);
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveScenarioDirectory, pathBuffer);
|
||||
int32_t parkFlagsBackup = gameState.park.flags;
|
||||
gameState.park.flags &= ~PARK_FLAGS_SPRITES_INITIALISED;
|
||||
gameState.editorStep = EditorStep::Invalid;
|
||||
gameState.scenarioFileName = std::string(String::toStringView(pathBuffer, std::size(pathBuffer)));
|
||||
int32_t success = ScenarioSave(gameState, pathBuffer, Config::Get().general.SavePluginData ? 3 : 2);
|
||||
int32_t success = ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 3 : 2);
|
||||
gameState.park.flags = parkFlagsBackup;
|
||||
|
||||
if (success)
|
||||
@@ -410,7 +410,7 @@ namespace OpenRCT2::Ui::FileBrowser
|
||||
}
|
||||
case LoadSaveType::track:
|
||||
{
|
||||
SetAndSaveConfigPath(Config::Get().general.LastSaveTrackDirectory, pathBuffer);
|
||||
SetAndSaveConfigPath(Config::Get().general.lastSaveTrackDirectory, pathBuffer);
|
||||
|
||||
const auto withExtension = Path::WithExtension(pathBuffer, ".td6");
|
||||
String::set(pathBuffer, sizeof(pathBuffer), withExtension.c_str());
|
||||
|
||||
@@ -11,11 +11,14 @@
|
||||
|
||||
#include <openrct2-ui/interface/Graph.h>
|
||||
#include <openrct2/Date.h>
|
||||
#include <openrct2/drawing/Rectangle.h>
|
||||
#include <openrct2/localisation/Formatter.h>
|
||||
#include <openrct2/localisation/Formatting.h>
|
||||
#include <openrct2/localisation/Localisation.Date.h>
|
||||
#include <openrct2/world/ParkData.h>
|
||||
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
namespace OpenRCT2::Graph
|
||||
{
|
||||
constexpr int32_t kDashLength = 2;
|
||||
@@ -37,13 +40,13 @@ namespace OpenRCT2::Graph
|
||||
rt, { internalBounds.GetLeft() - kYTickMarkPadding, curScreenPos }, { FontStyle::Small, TextAlignment::RIGHT },
|
||||
buffer);
|
||||
// Draw Y label tick mark
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt, { { internalBounds.GetLeft() - 5, curScreenPos + 5 }, { internalBounds.GetLeft(), curScreenPos + 5 } },
|
||||
PaletteIndex::pi10);
|
||||
// Draw horizontal gridline
|
||||
GfxFillRectInset(
|
||||
Rectangle::fillInset(
|
||||
rt, { { internalBounds.GetLeft(), curScreenPos + 5 }, { internalBounds.GetRight(), curScreenPos + 5 } },
|
||||
lineCol, INSET_RECT_FLAG_BORDER_INSET);
|
||||
lineCol, Rectangle::BorderStyle::inset);
|
||||
curScreenPos += yLabelStepPx;
|
||||
curLabel -= yLabelStep;
|
||||
}
|
||||
@@ -68,7 +71,7 @@ namespace OpenRCT2::Graph
|
||||
rt, screenCoords - ScreenCoordsXY{ 0, 14 }, STR_GRAPH_LABEL, ft,
|
||||
{ FontStyle::Small, TextAlignment::CENTRE });
|
||||
// Draw month tick mark
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt, { screenCoords - ScreenCoordsXY{ 0, 4 }, screenCoords - ScreenCoordsXY{ 0, 1 } }, PaletteIndex::pi10);
|
||||
}
|
||||
|
||||
@@ -99,8 +102,8 @@ namespace OpenRCT2::Graph
|
||||
|
||||
DrawText(rt, coords - ScreenCoordsXY{ 0, 16 }, { textCol, TextAlignment::CENTRE }, text);
|
||||
|
||||
GfxFillRect(rt, { { coords - ScreenCoordsXY{ 2, 2 } }, coords + ScreenCoordsXY{ 2, 2 } }, PaletteIndex::pi10);
|
||||
GfxFillRect(rt, { { coords - ScreenCoordsXY{ 1, 1 } }, { coords + ScreenCoordsXY{ 1, 1 } } }, PaletteIndex::pi21);
|
||||
Rectangle::fill(rt, { { coords - ScreenCoordsXY{ 2, 2 } }, coords + ScreenCoordsXY{ 2, 2 } }, PaletteIndex::pi10);
|
||||
Rectangle::fill(rt, { { coords - ScreenCoordsXY{ 1, 1 } }, { coords + ScreenCoordsXY{ 1, 1 } } }, PaletteIndex::pi21);
|
||||
}
|
||||
|
||||
template<typename T, T TkNoValue, bool TbackgroundLine>
|
||||
@@ -134,7 +137,7 @@ namespace OpenRCT2::Graph
|
||||
}
|
||||
if (i == 0)
|
||||
{
|
||||
GfxFillRect(rt, { coords, coords + ScreenCoordsXY{ 2, 2 } }, PaletteIndex::pi10);
|
||||
Rectangle::fill(rt, { coords, coords + ScreenCoordsXY{ 2, 2 } }, PaletteIndex::pi10);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -147,7 +150,7 @@ namespace OpenRCT2::Graph
|
||||
}
|
||||
if (i == 0)
|
||||
{
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt, { coords - ScreenCoordsXY{ 1, 1 }, coords + ScreenCoordsXY{ 1, 1 } }, PaletteIndex::pi21);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/core/UTF8.h>
|
||||
#include <openrct2/drawing/Drawing.h>
|
||||
#include <openrct2/drawing/Rectangle.h>
|
||||
#include <openrct2/interface/Colour.h>
|
||||
#include <openrct2/interface/Viewport.h>
|
||||
#include <openrct2/interface/Window.h>
|
||||
@@ -27,13 +28,14 @@
|
||||
#include <openrct2/localisation/LocalisationService.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
using namespace OpenRCT2::Ui;
|
||||
|
||||
static InGameConsole _inGameConsole;
|
||||
|
||||
static FontStyle InGameConsoleGetFontStyle()
|
||||
{
|
||||
return (Config::Get().interface.ConsoleSmallFont ? FontStyle::Small : FontStyle::Medium);
|
||||
return (Config::Get().interface.consoleSmallFont ? FontStyle::Small : FontStyle::Medium);
|
||||
}
|
||||
|
||||
static int32_t InGameConsoleGetLineHeight()
|
||||
@@ -310,19 +312,21 @@ void InGameConsole::Draw(RenderTarget& rt) const
|
||||
Invalidate();
|
||||
|
||||
// Give console area a translucent effect.
|
||||
GfxFilterRect(rt, { _consoleTopLeft, _consoleBottomRight }, FilterPaletteID::palette51);
|
||||
Rectangle::filter(rt, { _consoleTopLeft, _consoleBottomRight }, FilterPaletteID::palette51);
|
||||
|
||||
// Make input area more opaque.
|
||||
GfxFilterRect(
|
||||
Rectangle::filter(
|
||||
rt, { { _consoleTopLeft.x, _consoleBottomRight.y - lineHeight - 10 }, _consoleBottomRight - ScreenCoordsXY{ 0, 1 } },
|
||||
FilterPaletteID::palette51);
|
||||
|
||||
// Paint background colour.
|
||||
auto backgroundColour = ThemeGetColour(WindowClass::console, 0);
|
||||
GfxFillRectInset(rt, { _consoleTopLeft, _consoleBottomRight }, backgroundColour, INSET_RECT_FLAG_FILL_NONE);
|
||||
GfxFillRectInset(
|
||||
Rectangle::fillInset(
|
||||
rt, { _consoleTopLeft, _consoleBottomRight }, backgroundColour, Rectangle::BorderStyle::outset,
|
||||
Rectangle::FillBrightness::light, Rectangle::FillMode::none);
|
||||
Rectangle::fillInset(
|
||||
rt, { _consoleTopLeft + ScreenCoordsXY{ 1, 1 }, _consoleBottomRight - ScreenCoordsXY{ 1, 1 } }, backgroundColour,
|
||||
INSET_RECT_FLAG_BORDER_INSET);
|
||||
Rectangle::BorderStyle::inset);
|
||||
|
||||
std::string lineBuffer;
|
||||
auto screenCoords = _consoleTopLeft + ScreenCoordsXY{ kConsoleEdgePadding, kConsoleEdgePadding };
|
||||
@@ -331,7 +335,7 @@ void InGameConsole::Draw(RenderTarget& rt) const
|
||||
for (std::size_t i = 0; i < _consoleLines.size() && i < static_cast<size_t>(maxLines); i++)
|
||||
{
|
||||
const size_t index = i + _consoleScrollPos;
|
||||
if (_consoleLines[index].second == FormatToken::ColourWindow2)
|
||||
if (_consoleLines[index].second == FormatToken::colourWindow2)
|
||||
{
|
||||
// This is something of a hack to ensure the text is actually black
|
||||
// as opposed to a desaturated grey
|
||||
@@ -373,7 +377,7 @@ void InGameConsole::Draw(RenderTarget& rt) const
|
||||
{
|
||||
auto caret = screenCoords + ScreenCoordsXY{ _caretScreenPosX, lineHeight };
|
||||
uint8_t caretColour = ColourMapA[textColour.colour].lightest;
|
||||
GfxFillRect(rt, { caret, caret + ScreenCoordsXY{ kConsoleCaretWidth, 1 } }, caretColour);
|
||||
Rectangle::fill(rt, { caret, caret + ScreenCoordsXY{ kConsoleCaretWidth, 1 } }, caretColour);
|
||||
}
|
||||
|
||||
// What about border colours?
|
||||
@@ -381,22 +385,22 @@ void InGameConsole::Draw(RenderTarget& rt) const
|
||||
uint8_t borderColour2 = ColourMapA[backgroundColour.colour].mid_dark;
|
||||
|
||||
// Input area top border
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt,
|
||||
{ { _consoleTopLeft.x, _consoleBottomRight.y - lineHeight - 11 },
|
||||
{ _consoleBottomRight.x, _consoleBottomRight.y - lineHeight - 11 } },
|
||||
borderColour1);
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt,
|
||||
{ { _consoleTopLeft.x, _consoleBottomRight.y - lineHeight - 10 },
|
||||
{ _consoleBottomRight.x, _consoleBottomRight.y - lineHeight - 10 } },
|
||||
borderColour2);
|
||||
|
||||
// Input area bottom border
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt, { { _consoleTopLeft.x, _consoleBottomRight.y - 1 }, { _consoleBottomRight.x, _consoleBottomRight.y - 1 } },
|
||||
borderColour1);
|
||||
GfxFillRect(rt, { { _consoleTopLeft.x, _consoleBottomRight.y }, _consoleBottomRight }, borderColour2);
|
||||
Rectangle::fill(rt, { { _consoleTopLeft.x, _consoleBottomRight.y }, _consoleBottomRight }, borderColour2);
|
||||
}
|
||||
|
||||
// Calculates the amount of visible lines, based on the console size, excluding the input line.
|
||||
|
||||
@@ -88,7 +88,46 @@ namespace OpenRCT2::Ui
|
||||
*/
|
||||
static UITheme* FromJson(json_t& json);
|
||||
static UITheme* FromFile(const std::string& path);
|
||||
static UITheme CreatePredefined(const std::string& name, const UIThemeWindowEntry* entries, uint8_t flags);
|
||||
static UITheme CreatePredefined(const std::string& name, std::span<const UIThemeWindowEntry> entries, uint8_t flags);
|
||||
};
|
||||
|
||||
struct VariableWindowColours
|
||||
{
|
||||
uint8_t numColours{};
|
||||
WindowTheme defaultTheme{};
|
||||
|
||||
constexpr VariableWindowColours() = default;
|
||||
|
||||
constexpr VariableWindowColours(ColourWithFlags colour1)
|
||||
{
|
||||
numColours = 1;
|
||||
defaultTheme.Colours[0] = colour1;
|
||||
}
|
||||
|
||||
constexpr VariableWindowColours(ColourWithFlags colour1, ColourWithFlags colour2)
|
||||
{
|
||||
numColours = 2;
|
||||
defaultTheme.Colours[0] = colour1;
|
||||
defaultTheme.Colours[1] = colour2;
|
||||
}
|
||||
|
||||
constexpr VariableWindowColours(ColourWithFlags colour1, ColourWithFlags colour2, ColourWithFlags colour3)
|
||||
{
|
||||
numColours = 3;
|
||||
defaultTheme.Colours[0] = colour1;
|
||||
defaultTheme.Colours[1] = colour2;
|
||||
defaultTheme.Colours[2] = colour3;
|
||||
}
|
||||
|
||||
constexpr VariableWindowColours(
|
||||
ColourWithFlags colour1, ColourWithFlags colour2, ColourWithFlags colour3, ColourWithFlags colour4)
|
||||
{
|
||||
numColours = 4;
|
||||
defaultTheme.Colours[0] = colour1;
|
||||
defaultTheme.Colours[1] = colour2;
|
||||
defaultTheme.Colours[2] = colour3;
|
||||
defaultTheme.Colours[3] = colour4;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -99,150 +138,133 @@ namespace OpenRCT2::Ui
|
||||
::WindowClass WindowClass;
|
||||
const utf8* WindowClassSZ;
|
||||
StringId WindowName;
|
||||
uint8_t NumColours;
|
||||
WindowTheme DefaultTheme;
|
||||
VariableWindowColours windowColours;
|
||||
};
|
||||
|
||||
#pragma region Window Theme Descriptors
|
||||
|
||||
// clang-format off
|
||||
#define COLOURS_1(c0) 1, { { (c0), 0, 0, 0, 0, 0 } }
|
||||
#define COLOURS_2(c0, c1) 2, { { (c0), (c1), 0, 0, 0, 0 } }
|
||||
#define COLOURS_3(c0, c1, c2) 3, { { (c0), (c1), (c2), 0, 0, 0 } }
|
||||
#define COLOURS_4(c0, c1, c2, c3) 4, { { (c0), (c1), (c2), (c3), 0, 0 } }
|
||||
#define COLOURS_5(c0, c1, c2, c3, c4) 5, { { (c0), (c1), (c2), (c3), (c4), 0 } }
|
||||
#define COLOURS_6(c0, c1, c2, c3, c4, c5) 6, { { (c0), (c1), (c2), (c3), (c4), (c5) } }
|
||||
|
||||
#define THEME_DEF_END { WindowClass::null, { 0, 0, 0, 0, 0, 0 } }
|
||||
static constexpr ColourWithFlags opaque(colour_t colour)
|
||||
{
|
||||
return ColourWithFlags{ colour };
|
||||
}
|
||||
static constexpr ColourWithFlags translucent(colour_t colour)
|
||||
{
|
||||
return ColourWithFlags{ colour, EnumToFlag(ColourFlag::translucent) };
|
||||
}
|
||||
|
||||
#define TWINDOW(window_class, window_name, window_string_id, theme) { window_class, window_name, window_string_id, theme }
|
||||
|
||||
static constexpr ColourWithFlags opaque(colour_t colour)
|
||||
{
|
||||
return ColourWithFlags{ colour };
|
||||
}
|
||||
static constexpr ColourWithFlags translucent(colour_t colour)
|
||||
{
|
||||
return ColourWithFlags{ colour, EnumToFlag(ColourFlag::translucent) };
|
||||
}
|
||||
|
||||
static constexpr WindowThemeDesc WindowThemeDescriptors[] =
|
||||
{
|
||||
// WindowClass WindowClassSZ WindowName NumColours, DefaultTheme
|
||||
{ WindowClass::topToolbar, "WC_TOP_TOOLBAR", STR_THEMES_WINDOW_TOP_TOOLBAR, COLOURS_4(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_GREY) ) },
|
||||
{ WindowClass::bottomToolbar, "WC_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR, COLOURS_4(translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN), opaque(COLOUR_BLACK), opaque(COLOUR_BRIGHT_GREEN) ) },
|
||||
{ WindowClass::ride, "WC_RIDE", STR_THEMES_WINDOW_RIDE, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_SATURATED_GREEN) ) },
|
||||
{ WindowClass::rideConstruction, "WC_RIDE_CONSTRUCTION", STR_THEMES_WINDOW_RIDE_CONSTRUCTION, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::rideList, "WC_RIDE_LIST", STR_THEMES_WINDOW_RIDE_LIST, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::savePrompt, "WC_SAVE_PROMPT", STR_THEMES_WINDOW_SAVE_PROMPT, COLOURS_1(translucent(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::constructRide, "WC_CONSTRUCT_RIDE", STR_THEMES_WINDOW_CONSTRUCT_RIDE, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::demolishRidePrompt, "WC_DEMOLISH_RIDE_PROMPT", STR_THEMES_WINDOW_DEMOLISH_RIDE_PROMPT, COLOURS_1(translucent(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::error, "WC_ERROR", STR_THEMES_WINDOW_ERROR, COLOURS_1(translucent(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::scenery, "WC_SCENERY", STR_THEMES_WINDOW_SCENERY, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::sceneryScatter, "WC_SCENERY_SCATTER", STR_THEMES_WINDOW_SCENERY_SCATTER, COLOURS_2(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::options, "WC_OPTIONS", STR_THEMES_WINDOW_OPTIONS, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::assetPacks, "WC_ASSET_PACKS", STR_ASSET_PACKS, COLOURS_3(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::footpath, "WC_FOOTPATH", STR_THEMES_WINDOW_FOOTPATH, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::land, "WC_LAND", STR_THEMES_WINDOW_LAND, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::water, "WC_WATER", STR_THEMES_WINDOW_WATER, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::peep, "WC_PEEP", STR_THEMES_WINDOW_PEEP, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_OLIVE_GREEN), opaque(COLOUR_OLIVE_GREEN) ) },
|
||||
{ WindowClass::guestList, "WC_GUEST_LIST", STR_THEMES_WINDOW_GUEST_LIST, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_OLIVE_GREEN), opaque(COLOUR_OLIVE_GREEN) ) },
|
||||
{ WindowClass::staffList, "WC_STAFF_LIST", STR_THEMES_WINDOW_STAFF_LIST, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE) ) },
|
||||
{ WindowClass::firePrompt, "WC_FIRE_PROMPT", STR_THEMES_WINDOW_FIRE_PROMPT, COLOURS_1(translucent(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::parkInformation, "WC_PARK_INFORMATION", STR_THEMES_WINDOW_PARK_INFORMATION, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) ) },
|
||||
{ WindowClass::finances, "WC_FINANCES", STR_THEMES_WINDOW_FINANCES, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) ) },
|
||||
{ WindowClass::titleMenu, "WC_TITLE_MENU", STR_THEMES_WINDOW_TITLE_MENU_BUTTONS, COLOURS_3(translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::titleExit, "WC_TITLE_EXIT", STR_THEMES_WINDOW_TITLE_MENU_EXIT, COLOURS_3(translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::recentNews, "WC_RECENT_NEWS", STR_THEMES_WINDOW_RECENT_NEWS, COLOURS_3(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_GREY), opaque(COLOUR_BLACK) ) },
|
||||
{ WindowClass::scenarioSelect, "WC_SCENARIO_SELECT", STR_THEMES_WINDOW_TITLE_MENU_SCENARIO_SELECTION, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::trackDesignList, "WC_TRACK_DESIGN_LIST", STR_THEMES_WINDOW_TRACK_DESIGN_LIST, COLOURS_3(opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::trackDesignPlace, "WC_TRACK_DESIGN_PLACE", STR_THEMES_WINDOW_TRACK_DESIGN_PLACE, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::newCampaign, "WC_NEW_CAMPAIGN", STR_THEMES_WINDOW_NEW_CAMPAIGN, COLOURS_3(opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) ) },
|
||||
{ WindowClass::keyboardShortcutList, "WC_KEYBOARD_SHORTCUT_LIST", STR_THEMES_WINDOW_KEYBOARD_SHORTCUT_LIST, COLOURS_3(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::changeKeyboardShortcut, "WC_CHANGE_KEYBOARD_SHORTCUT", STR_THEMES_WINDOW_CHANGE_KEYBOARD_SHORTCUT, COLOURS_3(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::resetShortcutKeysPrompt, "WC_RESET_SHORTCUT_KEYS_PROMPT", STR_SHORTCUT_ACTION_RESET, COLOURS_1(translucent(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::map, "WC_MAP", STR_THEMES_WINDOW_MAP, COLOURS_2(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::banner, "WC_BANNER", STR_THEMES_WINDOW_BANNER, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::editorObjectSelection, "WC_EDITOR_OBJECT_SELECTION", STR_THEMES_WINDOW_EDITOR_OBJECT_SELECTION, COLOURS_3(opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY) ) },
|
||||
{ WindowClass::editorInventionList, "WC_EDITOR_INVENTION_LIST", STR_THEMES_WINDOW_EDITOR_INVENTION_LIST, COLOURS_3(opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY) ) },
|
||||
{ WindowClass::editorScenarioOptions, "WC_EDITOR_SCENARIO_OPTIONS", STR_THEMES_WINDOW_EDITOR_SCENARIO_OPTIONS, COLOURS_3(opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY) ) },
|
||||
{ WindowClass::manageTrackDesign, "WC_MANAGE_TRACK_DESIGN", STR_THEMES_WINDOW_MANAGE_TRACK_DESIGN, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_GREY) ) },
|
||||
{ WindowClass::trackDeletePrompt, "WC_TRACK_DELETE_PROMPT", STR_THEMES_WINDOW_TRACK_DELETE_PROMPT, COLOURS_3(opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::installTrack, "WC_INSTALL_TRACK", STR_THEMES_WINDOW_INSTALL_TRACK, COLOURS_3(opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::clearScenery, "WC_CLEAR_SCENERY", STR_THEMES_WINDOW_CLEAR_SCENERY, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::cheats, "WC_CHEATS", STR_CHEAT_TITLE, COLOURS_2(opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW) ) },
|
||||
{ WindowClass::research, "WC_RESEARCH", STR_THEMES_WINDOW_RESEARCH, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) ) },
|
||||
{ WindowClass::viewport, "WC_VIEWPORT", STR_THEMES_WINDOW_VIEWPORT, COLOURS_3(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::mapgen, "WC_MAPGEN", STR_THEMES_WINDOW_MAPGEN, COLOURS_3(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
{ WindowClass::loadsave, "WC_LOADSAVE", STR_THEMES_WINDOW_LOADSAVE, COLOURS_3(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::loadsaveOverwritePrompt, "WC_LOADSAVE_OVERWRITE_PROMPT", STR_THEMES_WINDOW_LOADSAVE_OVERWRITE_PROMPT, COLOURS_1(translucent(COLOUR_BORDEAUX_RED) ) },
|
||||
{ WindowClass::titleOptions, "WC_TITLE_OPTIONS", STR_THEMES_WINDOW_TITLE_MENU_OPTIONS, COLOURS_3(translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::landRights, "WC_LAND_RIGHTS", STR_THEMES_WINDOW_LAND_RIGHTS, COLOURS_3(opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) ) },
|
||||
{ WindowClass::themes, "WC_THEMES", STR_THEMES_WINDOW_THEMES, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::staff, "WC_STAFF", STR_THEMES_WINDOW_STAFF, COLOURS_3(opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE) ) },
|
||||
{ WindowClass::editorTrackBottomToolbar, "WC_EDITOR_TRACK_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR_TRACK_EDITOR, COLOURS_3(translucent(COLOUR_LIGHT_BLUE), translucent(COLOUR_LIGHT_BLUE), translucent(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::editorScenarioBottomToolbar, "WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR_SCENARIO_EDITOR, COLOURS_3(translucent(COLOUR_LIGHT_BROWN), translucent(COLOUR_LIGHT_BROWN), translucent(COLOUR_MOSS_GREEN) ) },
|
||||
{ WindowClass::tileInspector, "WC_TILE_INSPECTOR", STR_TILE_INSPECTOR_TITLE, COLOURS_2(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::viewClipping, "WC_VIEW_CLIPPING", STR_VIEW_CLIPPING_TITLE, COLOURS_1(opaque(COLOUR_DARK_GREEN) ) },
|
||||
{ WindowClass::patrolArea, "WC_PATROL_AREA", STR_SET_PATROL_AREA, COLOURS_3(opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE) ) },
|
||||
{ WindowClass::transparency, "WC_TRANSPARENCY", STR_TRANSPARENCY_OPTIONS_TITLE, COLOURS_3(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::about, "WC_ABOUT", STR_ABOUT, COLOURS_2(opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::changelog, "WC_CHANGELOG", STR_CHANGELOG_TITLE, COLOURS_2(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::multiplayer, "WC_MULTIPLAYER", STR_MULTIPLAYER, COLOURS_3(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::player, "WC_PLAYER", STR_THEMES_WINDOW_PLAYER, COLOURS_3(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::networkStatus, "WC_NETWORK_STATUS", STR_THEMES_WINDOW_NETWORK_STATUS, COLOURS_1(opaque(COLOUR_BLACK) ) },
|
||||
{ WindowClass::serverList, "WC_SERVER_LIST", STR_SERVER_LIST, COLOURS_2(opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) ) },
|
||||
{ WindowClass::chat, "WC_CHAT", STR_CHAT, COLOURS_1(translucent(COLOUR_GREY) ) },
|
||||
{ WindowClass::console, "WC_CONSOLE", STR_CONSOLE, COLOURS_2(translucent(COLOUR_LIGHT_BLUE), opaque(COLOUR_WHITE) ) },
|
||||
{ WindowClass::progressWindow, "WC_PROGRESS_WINDOW", STR_THEME_LOADING_WINDOW, COLOURS_1(opaque(COLOUR_BLACK) ) },
|
||||
{ WindowClass::editorParkEntrance, "WC_EDITOR_PARK_ENTRANCE", STR_OBJECT_SELECTION_PARK_ENTRANCE, COLOURS_2(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN) ) },
|
||||
};
|
||||
static constexpr WindowThemeDesc kWindowThemeDescriptors[] =
|
||||
{
|
||||
// WindowClass WindowClassSZ WindowName windowColours
|
||||
{ WindowClass::topToolbar, "WC_TOP_TOOLBAR", STR_THEMES_WINDOW_TOP_TOOLBAR, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_GREY) } },
|
||||
{ WindowClass::bottomToolbar, "WC_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR, { translucent(COLOUR_DARK_GREEN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BRIGHT_GREEN) } },
|
||||
{ WindowClass::ride, "WC_RIDE", STR_THEMES_WINDOW_RIDE, { opaque(COLOUR_GREY), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_SATURATED_GREEN) } },
|
||||
{ WindowClass::rideConstruction, "WC_RIDE_CONSTRUCTION", STR_THEMES_WINDOW_RIDE_CONSTRUCTION, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::rideList, "WC_RIDE_LIST", STR_THEMES_WINDOW_RIDE_LIST, { opaque(COLOUR_GREY), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::savePrompt, "WC_SAVE_PROMPT", STR_THEMES_WINDOW_SAVE_PROMPT, { translucent(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::constructRide, "WC_CONSTRUCT_RIDE", STR_THEMES_WINDOW_CONSTRUCT_RIDE, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::demolishRidePrompt, "WC_DEMOLISH_RIDE_PROMPT", STR_THEMES_WINDOW_DEMOLISH_RIDE_PROMPT, { translucent(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::error, "WC_ERROR", STR_THEMES_WINDOW_ERROR, { translucent(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::scenery, "WC_SCENERY", STR_THEMES_WINDOW_SCENERY, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::sceneryScatter, "WC_SCENERY_SCATTER", STR_THEMES_WINDOW_SCENERY_SCATTER, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::options, "WC_OPTIONS", STR_THEMES_WINDOW_OPTIONS, { opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::assetPacks, "WC_ASSET_PACKS", STR_ASSET_PACKS, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::footpath, "WC_FOOTPATH", STR_THEMES_WINDOW_FOOTPATH, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::land, "WC_LAND", STR_THEMES_WINDOW_LAND, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::water, "WC_WATER", STR_THEMES_WINDOW_WATER, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::peep, "WC_PEEP", STR_THEMES_WINDOW_PEEP, { opaque(COLOUR_GREY), opaque(COLOUR_OLIVE_GREEN), opaque(COLOUR_OLIVE_GREEN) } },
|
||||
{ WindowClass::guestList, "WC_GUEST_LIST", STR_THEMES_WINDOW_GUEST_LIST, { opaque(COLOUR_GREY), opaque(COLOUR_OLIVE_GREEN), opaque(COLOUR_OLIVE_GREEN) } },
|
||||
{ WindowClass::staffList, "WC_STAFF_LIST", STR_THEMES_WINDOW_STAFF_LIST, { opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE) } },
|
||||
{ WindowClass::firePrompt, "WC_FIRE_PROMPT", STR_THEMES_WINDOW_FIRE_PROMPT, { translucent(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::parkInformation, "WC_PARK_INFORMATION", STR_THEMES_WINDOW_PARK_INFORMATION, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) } },
|
||||
{ WindowClass::finances, "WC_FINANCES", STR_THEMES_WINDOW_FINANCES, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) } },
|
||||
{ WindowClass::titleMenu, "WC_TITLE_MENU", STR_THEMES_WINDOW_TITLE_MENU_BUTTONS, { translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::titleExit, "WC_TITLE_EXIT", STR_THEMES_WINDOW_TITLE_MENU_EXIT, { translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::recentNews, "WC_RECENT_NEWS", STR_THEMES_WINDOW_RECENT_NEWS, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::scenarioSelect, "WC_SCENARIO_SELECT", STR_THEMES_WINDOW_TITLE_MENU_SCENARIO_SELECTION, { opaque(COLOUR_GREY), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::trackDesignList, "WC_TRACK_DESIGN_LIST", STR_THEMES_WINDOW_TRACK_DESIGN_LIST, { opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::trackDesignPlace, "WC_TRACK_DESIGN_PLACE", STR_THEMES_WINDOW_TRACK_DESIGN_PLACE, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::newCampaign, "WC_NEW_CAMPAIGN", STR_THEMES_WINDOW_NEW_CAMPAIGN, { opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) } },
|
||||
{ WindowClass::keyboardShortcutList, "WC_KEYBOARD_SHORTCUT_LIST", STR_THEMES_WINDOW_KEYBOARD_SHORTCUT_LIST, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::changeKeyboardShortcut, "WC_CHANGE_KEYBOARD_SHORTCUT", STR_THEMES_WINDOW_CHANGE_KEYBOARD_SHORTCUT, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::resetShortcutKeysPrompt, "WC_RESET_SHORTCUT_KEYS_PROMPT", STR_SHORTCUT_ACTION_RESET, { translucent(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::map, "WC_MAP", STR_THEMES_WINDOW_MAP, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::banner, "WC_BANNER", STR_THEMES_WINDOW_BANNER, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::editorObjectSelection, "WC_EDITOR_OBJECT_SELECTION", STR_THEMES_WINDOW_EDITOR_OBJECT_SELECTION, { opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY) } },
|
||||
{ WindowClass::editorInventionList, "WC_EDITOR_INVENTION_LIST", STR_THEMES_WINDOW_EDITOR_INVENTION_LIST, { opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY) } },
|
||||
{ WindowClass::editorScenarioOptions, "WC_EDITOR_SCENARIO_OPTIONS", STR_THEMES_WINDOW_EDITOR_SCENARIO_OPTIONS, { opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY) } },
|
||||
{ WindowClass::manageTrackDesign, "WC_MANAGE_TRACK_DESIGN", STR_THEMES_WINDOW_MANAGE_TRACK_DESIGN, { opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_GREY) } },
|
||||
{ WindowClass::trackDeletePrompt, "WC_TRACK_DELETE_PROMPT", STR_THEMES_WINDOW_TRACK_DELETE_PROMPT, { opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::installTrack, "WC_INSTALL_TRACK", STR_THEMES_WINDOW_INSTALL_TRACK, { opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::clearScenery, "WC_CLEAR_SCENERY", STR_THEMES_WINDOW_CLEAR_SCENERY, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::cheats, "WC_CHEATS", STR_CHEAT_TITLE, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW) } },
|
||||
{ WindowClass::research, "WC_RESEARCH", STR_THEMES_WINDOW_RESEARCH, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) } },
|
||||
{ WindowClass::viewport, "WC_VIEWPORT", STR_THEMES_WINDOW_VIEWPORT, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::mapgen, "WC_MAPGEN", STR_THEMES_WINDOW_MAPGEN, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN) } },
|
||||
{ WindowClass::loadsave, "WC_LOADSAVE", STR_THEMES_WINDOW_LOADSAVE, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::loadsaveOverwritePrompt, "WC_LOADSAVE_OVERWRITE_PROMPT", STR_THEMES_WINDOW_LOADSAVE_OVERWRITE_PROMPT, { translucent(COLOUR_BORDEAUX_RED) } },
|
||||
{ WindowClass::titleOptions, "WC_TITLE_OPTIONS", STR_THEMES_WINDOW_TITLE_MENU_OPTIONS, { translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN), translucent(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::landRights, "WC_LAND_RIGHTS", STR_THEMES_WINDOW_LAND_RIGHTS, { opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW), opaque(COLOUR_DARK_YELLOW) } },
|
||||
{ WindowClass::themes, "WC_THEMES", STR_THEMES_WINDOW_THEMES, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::staff, "WC_STAFF", STR_THEMES_WINDOW_STAFF, { opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE) } },
|
||||
{ WindowClass::editorTrackBottomToolbar, "WC_EDITOR_TRACK_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR_TRACK_EDITOR, { translucent(COLOUR_LIGHT_BLUE), translucent(COLOUR_LIGHT_BLUE), translucent(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::editorScenarioBottomToolbar, "WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR_SCENARIO_EDITOR, { translucent(COLOUR_LIGHT_BROWN), translucent(COLOUR_LIGHT_BROWN), translucent(COLOUR_MOSS_GREEN) } },
|
||||
{ WindowClass::tileInspector, "WC_TILE_INSPECTOR", STR_TILE_INSPECTOR_TITLE, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::viewClipping, "WC_VIEW_CLIPPING", STR_VIEW_CLIPPING_TITLE, { opaque(COLOUR_DARK_GREEN) } },
|
||||
{ WindowClass::patrolArea, "WC_PATROL_AREA", STR_SET_PATROL_AREA, { opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE) } },
|
||||
{ WindowClass::transparency, "WC_TRANSPARENCY", STR_TRANSPARENCY_OPTIONS_TITLE, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::about, "WC_ABOUT", STR_ABOUT, { opaque(COLOUR_GREY), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::changelog, "WC_CHANGELOG", STR_CHANGELOG_TITLE, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::multiplayer, "WC_MULTIPLAYER", STR_MULTIPLAYER, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::player, "WC_PLAYER", STR_THEMES_WINDOW_PLAYER, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::networkStatus, "WC_NETWORK_STATUS", STR_THEMES_WINDOW_NETWORK_STATUS, { opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::serverList, "WC_SERVER_LIST", STR_SERVER_LIST, { opaque(COLOUR_LIGHT_BLUE), opaque(COLOUR_LIGHT_BLUE) } },
|
||||
{ WindowClass::chat, "WC_CHAT", STR_CHAT, { translucent(COLOUR_GREY) } },
|
||||
{ WindowClass::console, "WC_CONSOLE", STR_CONSOLE, { translucent(COLOUR_LIGHT_BLUE), opaque(COLOUR_WHITE) } },
|
||||
{ WindowClass::progressWindow, "WC_PROGRESS_WINDOW", STR_THEME_LOADING_WINDOW, { opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::editorParkEntrance, "WC_EDITOR_PARK_ENTRANCE", STR_OBJECT_SELECTION_PARK_ENTRANCE, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_DARK_BROWN) } },
|
||||
};
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Pre-defined Themes
|
||||
|
||||
#define COLOURS_RCT1(c0, c1, c2, c3, c4, c5) { { (c0), (c1), (c2), (c3), (c4), (c5) } }
|
||||
|
||||
static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{
|
||||
{ WindowClass::topToolbar, COLOURS_RCT1(opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::bottomToolbar, COLOURS_RCT1(translucent(COLOUR_GREY), translucent(COLOUR_GREY), opaque(COLOUR_VOID), opaque(COLOUR_YELLOW), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::ride, COLOURS_RCT1(opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_GREY), opaque(COLOUR_SATURATED_GREEN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::rideList, COLOURS_RCT1(opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::constructRide, COLOURS_RCT1(opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::peep, COLOURS_RCT1(opaque(COLOUR_LIGHT_BROWN), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::guestList, COLOURS_RCT1(opaque(COLOUR_LIGHT_BROWN), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::staffList, COLOURS_RCT1(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::finances, COLOURS_RCT1(opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::titleMenu, COLOURS_RCT1(translucent(COLOUR_GREY), translucent(COLOUR_GREY), translucent(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::titleExit, COLOURS_RCT1(translucent(COLOUR_GREY), translucent(COLOUR_GREY), translucent(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::newCampaign, COLOURS_RCT1(opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::titleOptions, COLOURS_RCT1(translucent(COLOUR_GREY), translucent(COLOUR_GREY), translucent(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::staff, COLOURS_RCT1(opaque(COLOUR_DARK_GREEN), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::options, COLOURS_RCT1(opaque(COLOUR_GREY), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::assetPacks, COLOURS_RCT1(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::keyboardShortcutList, COLOURS_RCT1(opaque(COLOUR_GREY), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::changeKeyboardShortcut, COLOURS_RCT1(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::recentNews, COLOURS_RCT1(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::trackDesignList, COLOURS_RCT1(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::map, COLOURS_RCT1(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::about, COLOURS_RCT1(opaque(COLOUR_GREY), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_WHITE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
{ WindowClass::changelog, COLOURS_RCT1(opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_WHITE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK)) },
|
||||
THEME_DEF_END,
|
||||
};
|
||||
static constexpr std::array kPredefinedThemeRCT1Entries = std::to_array<UIThemeWindowEntry>({
|
||||
{ WindowClass::topToolbar, { opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::bottomToolbar, { translucent(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_VOID), opaque(COLOUR_YELLOW), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::ride, { opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_GREY), opaque(COLOUR_SATURATED_GREEN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::rideList, { opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::constructRide, { opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::peep, { opaque(COLOUR_LIGHT_BROWN), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::guestList, { opaque(COLOUR_LIGHT_BROWN), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BORDEAUX_RED), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::staffList, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::finances, { opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::titleMenu, { translucent(COLOUR_GREY), translucent(COLOUR_GREY), translucent(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::titleExit, { translucent(COLOUR_GREY), translucent(COLOUR_GREY), translucent(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::newCampaign, { opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::titleOptions, { translucent(COLOUR_GREY), translucent(COLOUR_GREY), translucent(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::staff, { opaque(COLOUR_DARK_GREEN), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_LIGHT_PURPLE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::options, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::assetPacks, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::keyboardShortcutList, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::changeKeyboardShortcut, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::recentNews, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_VOID), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::trackDesignList, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::map, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_GREY), opaque(COLOUR_GREY), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::about, { opaque(COLOUR_GREY), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_WHITE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
{ WindowClass::changelog, { opaque(COLOUR_DARK_BROWN), opaque(COLOUR_DARK_BROWN), opaque(COLOUR_WHITE), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK), opaque(COLOUR_BLACK) } },
|
||||
});
|
||||
// clang-format on
|
||||
|
||||
static constexpr UIThemeWindowEntry PredefinedThemeRCT2_Entries[] = {
|
||||
THEME_DEF_END,
|
||||
};
|
||||
static constexpr std::array<UIThemeWindowEntry, 0> kPredefinedThemeRCT2Entries = {};
|
||||
|
||||
const UITheme PredefinedThemeRCT1 = UITheme::CreatePredefined(
|
||||
"*RCT1", PredefinedThemeRCT1_Entries,
|
||||
const UITheme kPredefinedThemeRCT1 = UITheme::CreatePredefined(
|
||||
"*RCT1", kPredefinedThemeRCT1Entries,
|
||||
UITHEME_FLAG_USE_LIGHTS_RIDE | UITHEME_FLAG_USE_LIGHTS_PARK | UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT
|
||||
| UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR);
|
||||
| UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR | UITHEME_FLAG_USE_3D_IMAGE_BUTTONS);
|
||||
|
||||
const UITheme PredefinedThemeRCT2 = UITheme::CreatePredefined("*RCT2", PredefinedThemeRCT2_Entries, 0);
|
||||
const UITheme kPredefinedThemeRCT2 = UITheme::CreatePredefined("*RCT2", kPredefinedThemeRCT2Entries, 0);
|
||||
|
||||
struct PredefinedTheme
|
||||
{
|
||||
@@ -250,16 +272,16 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
StringId Name;
|
||||
};
|
||||
|
||||
static constexpr PredefinedTheme PredefinedThemes[] = {
|
||||
{ &PredefinedThemeRCT1, STR_TITLE_SEQUENCE_RCT1 },
|
||||
{ &PredefinedThemeRCT2, STR_TITLE_SEQUENCE_RCT2 },
|
||||
static constexpr PredefinedTheme kPredefinedThemes[] = {
|
||||
{ &kPredefinedThemeRCT1, STR_TITLE_SEQUENCE_RCT1 },
|
||||
{ &kPredefinedThemeRCT2, STR_TITLE_SEQUENCE_RCT2 },
|
||||
};
|
||||
|
||||
#pragma endregion
|
||||
|
||||
static const WindowThemeDesc* GetWindowThemeDescriptor(WindowClass windowClass)
|
||||
{
|
||||
for (const auto& desc : WindowThemeDescriptors)
|
||||
for (const auto& desc : kWindowThemeDescriptors)
|
||||
{
|
||||
if (desc.WindowClass == windowClass)
|
||||
{
|
||||
@@ -271,7 +293,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
|
||||
static const WindowThemeDesc* GetWindowThemeDescriptor(const utf8* windowClassSZ)
|
||||
{
|
||||
for (const auto& desc : WindowThemeDescriptors)
|
||||
for (const auto& desc : kWindowThemeDescriptors)
|
||||
{
|
||||
if (String::equals(desc.WindowClassSZ, windowClassSZ))
|
||||
{
|
||||
@@ -297,7 +319,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
}
|
||||
|
||||
json_t jsonColours = json_t::array();
|
||||
for (uint8_t i = 0; i < wtDesc->NumColours; i++)
|
||||
for (uint8_t i = 0; i < wtDesc->windowColours.numColours; i++)
|
||||
{
|
||||
json_t jsonEntry = { { "colour", Colour::ToString(Theme.Colours[i].colour) },
|
||||
{ "translucent", Theme.Colours[i].hasFlag(ColourFlag::translucent) } };
|
||||
@@ -325,10 +347,10 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
|
||||
UIThemeWindowEntry result{};
|
||||
result.Class = wtDesc->WindowClass;
|
||||
result.Theme = wtDesc->DefaultTheme;
|
||||
result.Theme = wtDesc->windowColours.defaultTheme;
|
||||
|
||||
// result.Theme.Colours only has 6 values
|
||||
size_t colourCount = std::min(jsonColours.size(), static_cast<size_t>(wtDesc->NumColours));
|
||||
size_t colourCount = std::min(jsonColours.size(), static_cast<size_t>(wtDesc->windowColours.numColours));
|
||||
|
||||
for (size_t i = 0; i < colourCount; i++)
|
||||
{
|
||||
@@ -419,6 +441,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{ "useLightsPark", (Flags & UITHEME_FLAG_USE_LIGHTS_PARK) != 0 },
|
||||
{ "useAltScenarioSelectFont", (Flags & UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT) != 0 },
|
||||
{ "useFullBottomToolbar", (Flags & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR) != 0 },
|
||||
{ "use3dImageButtons", (Flags & UITHEME_FLAG_USE_3D_IMAGE_BUTTONS) != 0 },
|
||||
};
|
||||
|
||||
return jsonTheme;
|
||||
@@ -467,6 +490,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{ "useLightsPark", UITHEME_FLAG_USE_LIGHTS_PARK },
|
||||
{ "useAltScenarioSelectFont", UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT },
|
||||
{ "useFullBottomToolbar", UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR },
|
||||
{ "use3dImageButtons", UITHEME_FLAG_USE_3D_IMAGE_BUTTONS },
|
||||
});
|
||||
|
||||
if (jsonEntries.is_object())
|
||||
@@ -513,18 +537,11 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
return result;
|
||||
}
|
||||
|
||||
UITheme UITheme::CreatePredefined(const std::string& name, const UIThemeWindowEntry* entries, uint8_t flags)
|
||||
UITheme UITheme::CreatePredefined(const std::string& name, std::span<const UIThemeWindowEntry> entries, uint8_t flags)
|
||||
{
|
||||
auto theme = UITheme(name);
|
||||
theme.Flags = flags | UITHEME_FLAG_PREDEFINED;
|
||||
|
||||
size_t numEntries = 0;
|
||||
for (const UIThemeWindowEntry* entry = entries; entry->Class != WindowClass::null; entry++)
|
||||
{
|
||||
numEntries++;
|
||||
}
|
||||
|
||||
theme.Entries = std::vector<UIThemeWindowEntry>(entries, entries + numEntries);
|
||||
theme.Entries.assign(entries.begin(), entries.end());
|
||||
return theme;
|
||||
}
|
||||
|
||||
@@ -555,7 +572,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
outThemes->clear();
|
||||
|
||||
NumPredefinedThemes = 0;
|
||||
for (auto predefinedTheme : PredefinedThemes)
|
||||
for (auto predefinedTheme : kPredefinedThemes)
|
||||
{
|
||||
AvailableTheme theme{};
|
||||
theme.Name = predefinedTheme.Theme->Name;
|
||||
@@ -610,7 +627,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
if (theme == nullptr)
|
||||
{
|
||||
// Fall-back to default
|
||||
theme = const_cast<UITheme*>(&PredefinedThemeRCT2);
|
||||
theme = const_cast<UITheme*>(&kPredefinedThemeRCT2);
|
||||
LoadTheme(theme);
|
||||
}
|
||||
else
|
||||
@@ -629,7 +646,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{
|
||||
if (theme.Path.empty())
|
||||
{
|
||||
LoadTheme(const_cast<UITheme*>(PredefinedThemes[i].Theme));
|
||||
LoadTheme(const_cast<UITheme*>(kPredefinedThemes[i].Theme));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -645,13 +662,13 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
static void Initialise()
|
||||
{
|
||||
ThemeManager::GetAvailableThemes(&ThemeManager::AvailableThemes);
|
||||
LoadTheme(const_cast<UITheme*>(&PredefinedThemeRCT2));
|
||||
LoadTheme(const_cast<UITheme*>(&kPredefinedThemeRCT2));
|
||||
ActiveAvailableThemeIndex = 1;
|
||||
|
||||
bool configValid = false;
|
||||
if (!Config::Get().interface.CurrentThemePreset.empty())
|
||||
if (!Config::Get().interface.currentThemePreset.empty())
|
||||
{
|
||||
if (LoadThemeByConfigName(Config::Get().interface.CurrentThemePreset.c_str()))
|
||||
if (LoadThemeByConfigName(Config::Get().interface.currentThemePreset.c_str()))
|
||||
{
|
||||
configValid = true;
|
||||
}
|
||||
@@ -659,7 +676,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
|
||||
if (!configValid)
|
||||
{
|
||||
Config::Get().interface.CurrentThemePreset = ThemeManagerGetAvailableThemeConfigName(1);
|
||||
Config::Get().interface.currentThemePreset = ThemeManagerGetAvailableThemeConfigName(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -714,7 +731,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
const utf8* ThemeManagerGetAvailableThemeName(size_t index)
|
||||
{
|
||||
if (index < ThemeManager::NumPredefinedThemes)
|
||||
return LanguageGetString(PredefinedThemes[index].Name);
|
||||
return LanguageGetString(kPredefinedThemes[index].Name);
|
||||
return ThemeManager::AvailableThemes[index].Name.c_str();
|
||||
}
|
||||
|
||||
@@ -727,7 +744,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{
|
||||
if (index < ThemeManager::NumPredefinedThemes)
|
||||
{
|
||||
ThemeManager::LoadTheme(const_cast<UITheme*>(PredefinedThemes[index].Theme));
|
||||
ThemeManager::LoadTheme(const_cast<UITheme*>(kPredefinedThemes[index].Theme));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -741,7 +758,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
}
|
||||
}
|
||||
ThemeManager::ActiveAvailableThemeIndex = index;
|
||||
Config::Get().interface.CurrentThemePreset = ThemeManagerGetAvailableThemeConfigName(index);
|
||||
Config::Get().interface.currentThemePreset = ThemeManagerGetAvailableThemeConfigName(index);
|
||||
|
||||
ColourSchemeUpdateAll();
|
||||
}
|
||||
@@ -770,7 +787,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{
|
||||
return {};
|
||||
}
|
||||
return desc->DefaultTheme.Colours[index];
|
||||
return desc->windowColours.defaultTheme.Colours[index];
|
||||
}
|
||||
|
||||
return entry->Theme.Colours[index];
|
||||
@@ -793,7 +810,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{
|
||||
return;
|
||||
}
|
||||
entry.Theme = desc->DefaultTheme;
|
||||
entry.Theme = desc->windowColours.defaultTheme;
|
||||
}
|
||||
|
||||
entry.Theme.Colours[index] = colour;
|
||||
@@ -837,7 +854,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
if (Path::Equals(newPath, ThemeManager::AvailableThemes[i].Path))
|
||||
{
|
||||
ThemeManager::ActiveAvailableThemeIndex = i;
|
||||
Config::Get().interface.CurrentThemePreset = ThemeManagerGetAvailableThemeConfigName(1);
|
||||
Config::Get().interface.currentThemePreset = ThemeManagerGetAvailableThemeConfigName(1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -862,7 +879,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
if (Path::Equals(newPath, ThemeManager::AvailableThemes[i].Path))
|
||||
{
|
||||
ThemeManager::ActiveAvailableThemeIndex = i;
|
||||
Config::Get().interface.CurrentThemePreset = ThemeManagerGetAvailableThemeConfigName(i);
|
||||
Config::Get().interface.currentThemePreset = ThemeManagerGetAvailableThemeConfigName(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -871,9 +888,9 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
void ThemeDelete()
|
||||
{
|
||||
File::Delete(ThemeManager::CurrentThemePath);
|
||||
ThemeManager::LoadTheme(const_cast<UITheme*>(&PredefinedThemeRCT2));
|
||||
ThemeManager::LoadTheme(const_cast<UITheme*>(&kPredefinedThemeRCT2));
|
||||
ThemeManager::ActiveAvailableThemeIndex = 1;
|
||||
Config::Get().interface.CurrentThemePreset = ThemeManagerGetAvailableThemeConfigName(1);
|
||||
Config::Get().interface.currentThemePreset = ThemeManagerGetAvailableThemeConfigName(1);
|
||||
}
|
||||
|
||||
void ThemeManagerInitialise()
|
||||
@@ -888,7 +905,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return desc->NumColours;
|
||||
return desc->windowColours.numColours;
|
||||
}
|
||||
|
||||
StringId ThemeDescGetName(WindowClass wc)
|
||||
@@ -929,7 +946,7 @@ static constexpr UIThemeWindowEntry PredefinedThemeRCT1_Entries[] =
|
||||
return;
|
||||
}
|
||||
|
||||
windowTheme = &desc->DefaultTheme;
|
||||
windowTheme = &desc->windowColours.defaultTheme;
|
||||
}
|
||||
|
||||
for (int32_t i = 0; i < 6; i++)
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace OpenRCT2::Ui
|
||||
UITHEME_FLAG_USE_LIGHTS_PARK = 1 << 2,
|
||||
UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT = 1 << 3,
|
||||
UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR = 1 << 4,
|
||||
UITHEME_FLAG_USE_3D_IMAGE_BUTTONS = 1 << 5,
|
||||
};
|
||||
|
||||
void ColourSchemeUpdate(WindowBase* window);
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace OpenRCT2::Ui
|
||||
case ViewportInteractionItem::entity:
|
||||
switch (sprite->Type)
|
||||
{
|
||||
case EntityType::Vehicle:
|
||||
case EntityType::vehicle:
|
||||
{
|
||||
auto vehicle = sprite->As<Vehicle>();
|
||||
if (vehicle != nullptr && !vehicle->IsCableLift())
|
||||
@@ -123,8 +123,8 @@ namespace OpenRCT2::Ui
|
||||
info.interactionType = ViewportInteractionItem::none;
|
||||
}
|
||||
break;
|
||||
case EntityType::Guest:
|
||||
case EntityType::Staff:
|
||||
case EntityType::guest:
|
||||
case EntityType::staff:
|
||||
{
|
||||
auto peep = sprite->As<Peep>();
|
||||
if (peep != nullptr)
|
||||
@@ -205,22 +205,22 @@ namespace OpenRCT2::Ui
|
||||
auto entity = info.Entity;
|
||||
switch (entity->Type)
|
||||
{
|
||||
case EntityType::Vehicle:
|
||||
case EntityType::vehicle:
|
||||
{
|
||||
auto intent = Intent(WindowDetail::vehicle);
|
||||
intent.PutExtra(INTENT_EXTRA_VEHICLE, entity);
|
||||
ContextOpenIntent(&intent);
|
||||
break;
|
||||
}
|
||||
case EntityType::Guest:
|
||||
case EntityType::Staff:
|
||||
case EntityType::guest:
|
||||
case EntityType::staff:
|
||||
{
|
||||
auto intent = Intent(WindowClass::peep);
|
||||
intent.PutExtra(INTENT_EXTRA_PEEP, entity);
|
||||
ContextOpenIntent(&intent);
|
||||
break;
|
||||
}
|
||||
case EntityType::Balloon:
|
||||
case EntityType::balloon:
|
||||
{
|
||||
if (GameIsNotPaused())
|
||||
{
|
||||
@@ -229,7 +229,7 @@ namespace OpenRCT2::Ui
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EntityType::Duck:
|
||||
case EntityType::duck:
|
||||
{
|
||||
if (GameIsNotPaused())
|
||||
{
|
||||
@@ -288,7 +288,7 @@ namespace OpenRCT2::Ui
|
||||
case ViewportInteractionItem::entity:
|
||||
{
|
||||
auto sprite = info.Entity;
|
||||
if (gLegacyScene == LegacyScene::scenarioEditor || sprite->Type != EntityType::Vehicle)
|
||||
if (gLegacyScene == LegacyScene::scenarioEditor || sprite->Type != EntityType::vehicle)
|
||||
{
|
||||
info.interactionType = ViewportInteractionItem::none;
|
||||
return info;
|
||||
@@ -573,7 +573,7 @@ namespace OpenRCT2::Ui
|
||||
case ViewportInteractionItem::entity:
|
||||
{
|
||||
auto entity = info.Entity;
|
||||
if (entity->Type == EntityType::Vehicle)
|
||||
if (entity->Type == EntityType::vehicle)
|
||||
{
|
||||
auto vehicle = entity->As<Vehicle>();
|
||||
if (vehicle == nullptr)
|
||||
|
||||
@@ -12,18 +12,21 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <openrct2-ui/UiStringIds.h>
|
||||
#include <openrct2-ui/interface/Theme.h>
|
||||
#include <openrct2-ui/windows/Windows.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/Input.h>
|
||||
#include <openrct2/SpriteIds.h>
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/drawing/Rectangle.h>
|
||||
#include <openrct2/drawing/Text.h>
|
||||
#include <openrct2/localisation/Formatter.h>
|
||||
#include <openrct2/localisation/Formatting.h>
|
||||
#include <openrct2/localisation/StringIds.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
@@ -80,6 +83,7 @@ namespace OpenRCT2::Ui
|
||||
WidgetTabDraw(rt, w, widgetIndex);
|
||||
break;
|
||||
case WidgetType::flatBtn:
|
||||
case WidgetType::hiddenButton:
|
||||
WidgetFlatButtonDraw(rt, w, widgetIndex);
|
||||
break;
|
||||
case WidgetType::button:
|
||||
@@ -141,12 +145,14 @@ namespace OpenRCT2::Ui
|
||||
int32_t b = w.windowPos.y + widget.bottom;
|
||||
|
||||
//
|
||||
uint8_t press = (w.flags.has(WindowFlag::higherContrastOnPress) ? INSET_RECT_FLAG_FILL_MID_LIGHT : 0);
|
||||
auto brightness
|
||||
= (w.flags.has(WindowFlag::higherContrastOnPress) ? Rectangle::FillBrightness::dark
|
||||
: Rectangle::FillBrightness::light);
|
||||
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
// Draw the frame
|
||||
GfxFillRectInset(rt, { leftTop, { r, b } }, colour, press);
|
||||
Rectangle::fillInset(rt, { leftTop, { r, b } }, colour, Rectangle::BorderStyle::outset, brightness);
|
||||
|
||||
if (!w.canBeResized())
|
||||
return;
|
||||
@@ -173,7 +179,7 @@ namespace OpenRCT2::Ui
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
// Draw the panel
|
||||
GfxFillRectInset(rt, { leftTop, { r, b } }, colour, 0);
|
||||
Rectangle::fillInset(rt, { leftTop, { r, b } }, colour);
|
||||
|
||||
if (!w.canBeResized())
|
||||
return;
|
||||
@@ -197,7 +203,8 @@ namespace OpenRCT2::Ui
|
||||
w.windowPos + ScreenCoordsXY{ widget.right, widget.bottom } };
|
||||
|
||||
// Check if the button is pressed down
|
||||
uint8_t press = widgetIsPressed(w, widgetIndex) || isToolActive(w, widgetIndex) ? INSET_RECT_FLAG_BORDER_INSET : 0;
|
||||
auto borderStyle = widgetIsPressed(w, widgetIndex) || isToolActive(w, widgetIndex) ? Rectangle::BorderStyle::inset
|
||||
: Rectangle::BorderStyle::outset;
|
||||
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
@@ -205,12 +212,12 @@ namespace OpenRCT2::Ui
|
||||
if (static_cast<int32_t>(widget.image.GetIndex()) == -2)
|
||||
{
|
||||
// Draw border with no fill
|
||||
GfxFillRectInset(rt, rect, colour, press | INSET_RECT_FLAG_FILL_NONE);
|
||||
Rectangle::fillInset(rt, rect, colour, borderStyle, Rectangle::FillBrightness::light, Rectangle::FillMode::none);
|
||||
return;
|
||||
}
|
||||
|
||||
// Draw the border with fill
|
||||
GfxFillRectInset(rt, rect, colour, press);
|
||||
Rectangle::fillInset(rt, rect, colour, borderStyle);
|
||||
|
||||
WidgetDrawImage(rt, w, widgetIndex);
|
||||
}
|
||||
@@ -270,15 +277,15 @@ namespace OpenRCT2::Ui
|
||||
*/
|
||||
static void WidgetFlatButtonDraw(RenderTarget& rt, WindowBase& w, WidgetIndex widgetIndex)
|
||||
{
|
||||
if (!widgetIsDisabled(w, widgetIndex) && widgetIsHighlighted(w, widgetIndex))
|
||||
const auto& widget = w.widgets[widgetIndex];
|
||||
// First check is needed as this function handles both WidgetType::flatBtn and WidgetType::hiddenButton
|
||||
const bool alwaysDrawAs3d = widget.type == WidgetType::flatBtn && (ThemeGetFlags() & UITHEME_FLAG_USE_3D_IMAGE_BUTTONS);
|
||||
if (alwaysDrawAs3d || (!widgetIsDisabled(w, widgetIndex) && widgetIsHighlighted(w, widgetIndex)))
|
||||
{
|
||||
WidgetButtonDraw(rt, w, widgetIndex);
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the widget
|
||||
const auto& widget = w.widgets[widgetIndex];
|
||||
|
||||
// Resolve the absolute ltrb
|
||||
ScreenRect rect{ w.windowPos + ScreenCoordsXY{ widget.left, widget.top },
|
||||
w.windowPos + ScreenCoordsXY{ widget.right, widget.bottom } };
|
||||
@@ -292,12 +299,14 @@ namespace OpenRCT2::Ui
|
||||
if (static_cast<int32_t>(widget.image.GetIndex()) == -2)
|
||||
{
|
||||
// Draw border with no fill
|
||||
GfxFillRectInset(rt, rect, colour, INSET_RECT_FLAG_BORDER_INSET | INSET_RECT_FLAG_FILL_NONE);
|
||||
Rectangle::fillInset(
|
||||
rt, rect, colour, Rectangle::BorderStyle::inset, Rectangle::FillBrightness::light,
|
||||
Rectangle::FillMode::none);
|
||||
return;
|
||||
}
|
||||
|
||||
// Draw the border with fill
|
||||
GfxFillRectInset(rt, rect, colour, INSET_RECT_FLAG_BORDER_INSET);
|
||||
Rectangle::fillInset(rt, rect, colour, Rectangle::BorderStyle::inset);
|
||||
}
|
||||
|
||||
// Draw image
|
||||
@@ -320,8 +329,9 @@ namespace OpenRCT2::Ui
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
// Border
|
||||
uint8_t press = widgetIsPressed(w, widgetIndex) || isToolActive(w, widgetIndex) ? INSET_RECT_FLAG_BORDER_INSET : 0;
|
||||
GfxFillRectInset(rt, rect, colour, press);
|
||||
auto borderStyle = widgetIsPressed(w, widgetIndex) || isToolActive(w, widgetIndex) ? Rectangle::BorderStyle::inset
|
||||
: Rectangle::BorderStyle::outset;
|
||||
Rectangle::fillInset(rt, rect, colour, borderStyle);
|
||||
|
||||
// Button caption
|
||||
if (widget.type != WidgetType::tableHeader)
|
||||
@@ -442,7 +452,9 @@ namespace OpenRCT2::Ui
|
||||
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
GfxFillRectInset(rt, rect, colour, INSET_RECT_F_60);
|
||||
Rectangle::fillInset(
|
||||
rt, rect, colour, Rectangle::BorderStyle::inset, Rectangle::FillBrightness::light,
|
||||
Rectangle::FillMode::dontLightenWhenInset);
|
||||
WidgetText(rt, w, widgetIndex);
|
||||
}
|
||||
|
||||
@@ -501,24 +513,24 @@ namespace OpenRCT2::Ui
|
||||
uint8_t colour = w.colours[widget.colour].colour;
|
||||
|
||||
// Border left of text
|
||||
GfxFillRect(rt, { { l, t }, { l + 4, t } }, ColourMapA[colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + 1, t + 1 }, { l + 4, t + 1 } }, ColourMapA[colour].lighter);
|
||||
Rectangle::fill(rt, { { l, t }, { l + 4, t } }, ColourMapA[colour].mid_dark);
|
||||
Rectangle::fill(rt, { { l + 1, t + 1 }, { l + 4, t + 1 } }, ColourMapA[colour].lighter);
|
||||
|
||||
// Border right of text
|
||||
GfxFillRect(rt, { { textRight, t }, { r - 1, t } }, ColourMapA[colour].mid_dark);
|
||||
GfxFillRect(rt, { { textRight, t + 1 }, { r - 2, t + 1 } }, ColourMapA[colour].lighter);
|
||||
Rectangle::fill(rt, { { textRight, t }, { r - 1, t } }, ColourMapA[colour].mid_dark);
|
||||
Rectangle::fill(rt, { { textRight, t + 1 }, { r - 2, t + 1 } }, ColourMapA[colour].lighter);
|
||||
|
||||
// Border right
|
||||
GfxFillRect(rt, { { r - 1, t + 1 }, { r - 1, b - 1 } }, ColourMapA[colour].mid_dark);
|
||||
GfxFillRect(rt, { { r, t }, { r, b } }, ColourMapA[colour].lighter);
|
||||
Rectangle::fill(rt, { { r - 1, t + 1 }, { r - 1, b - 1 } }, ColourMapA[colour].mid_dark);
|
||||
Rectangle::fill(rt, { { r, t }, { r, b } }, ColourMapA[colour].lighter);
|
||||
|
||||
// Border bottom
|
||||
GfxFillRect(rt, { { l, b - 1 }, { r - 2, b - 1 } }, ColourMapA[colour].mid_dark);
|
||||
GfxFillRect(rt, { { l, b }, { r - 1, b } }, ColourMapA[colour].lighter);
|
||||
Rectangle::fill(rt, { { l, b - 1 }, { r - 2, b - 1 } }, ColourMapA[colour].mid_dark);
|
||||
Rectangle::fill(rt, { { l, b }, { r - 1, b } }, ColourMapA[colour].lighter);
|
||||
|
||||
// Border left
|
||||
GfxFillRect(rt, { { l, t + 1 }, { l, b - 2 } }, ColourMapA[colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + 1, t + 2 }, { l + 1, b - 2 } }, ColourMapA[colour].lighter);
|
||||
Rectangle::fill(rt, { { l, t + 1 }, { l, b - 2 } }, ColourMapA[colour].mid_dark);
|
||||
Rectangle::fill(rt, { { l + 1, t + 2 }, { l + 1, b - 2 } }, ColourMapA[colour].lighter);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -536,19 +548,21 @@ namespace OpenRCT2::Ui
|
||||
|
||||
auto colour = w.colours[widget->colour];
|
||||
|
||||
uint8_t press = INSET_RECT_F_60;
|
||||
auto brightness = Rectangle::FillBrightness::light;
|
||||
if (w.flags.has(WindowFlag::higherContrastOnPress))
|
||||
press |= INSET_RECT_FLAG_FILL_MID_LIGHT;
|
||||
brightness = Rectangle::FillBrightness::dark;
|
||||
|
||||
GfxFillRectInset(rt, { topLeft, bottomRight }, colour, press);
|
||||
Rectangle::fillInset(
|
||||
rt, { topLeft, bottomRight }, colour, Rectangle::BorderStyle::inset, brightness,
|
||||
Rectangle::FillMode::dontLightenWhenInset);
|
||||
|
||||
// Black caption bars look slightly green, this fixes that
|
||||
if (colour.colour == COLOUR_BLACK)
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt, { { topLeft + ScreenCoordsXY{ 1, 1 } }, { bottomRight - ScreenCoordsXY{ 1, 1 } } },
|
||||
ColourMapA[colour.colour].dark);
|
||||
else
|
||||
GfxFilterRect(
|
||||
Rectangle::filter(
|
||||
rt, { { topLeft + ScreenCoordsXY{ 1, 1 } }, { bottomRight - ScreenCoordsXY{ 1, 1 } } },
|
||||
FilterPaletteID::paletteDarken3);
|
||||
|
||||
@@ -568,9 +582,9 @@ namespace OpenRCT2::Ui
|
||||
width -= kCloseButtonSize;
|
||||
}
|
||||
topLeft.x += width / 2;
|
||||
if (Config::Get().interface.WindowButtonsOnTheLeft)
|
||||
if (Config::Get().interface.windowButtonsOnTheLeft)
|
||||
topLeft.x += kCloseButtonSize;
|
||||
if (Config::Get().interface.EnlargedUi)
|
||||
if (Config::Get().interface.enlargedUi)
|
||||
topLeft.y += kTitleHeightLarge / 4;
|
||||
|
||||
DrawTextEllipsised(
|
||||
@@ -592,16 +606,17 @@ namespace OpenRCT2::Ui
|
||||
auto bottomRight = w.windowPos + ScreenCoordsXY{ widget.right, widget.bottom };
|
||||
|
||||
// Check if the button is pressed down
|
||||
uint8_t press = 0;
|
||||
auto brightness = Rectangle::FillBrightness::light;
|
||||
auto borderStyle = Rectangle::BorderStyle::outset;
|
||||
if (w.flags.has(WindowFlag::higherContrastOnPress))
|
||||
press |= INSET_RECT_FLAG_FILL_MID_LIGHT;
|
||||
brightness = Rectangle::FillBrightness::dark;
|
||||
if (widgetIsPressed(w, widgetIndex) || isToolActive(w, widgetIndex))
|
||||
press |= INSET_RECT_FLAG_BORDER_INSET;
|
||||
borderStyle = Rectangle::BorderStyle::inset;
|
||||
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
// Draw the button
|
||||
GfxFillRectInset(rt, { topLeft, bottomRight }, colour, press);
|
||||
Rectangle::fillInset(rt, { topLeft, bottomRight }, colour, borderStyle, brightness);
|
||||
|
||||
if (widget.string == nullptr)
|
||||
return;
|
||||
@@ -631,7 +646,9 @@ namespace OpenRCT2::Ui
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
// checkbox
|
||||
GfxFillRectInset(rt, { midLeft - ScreenCoordsXY{ 0, 5 }, midLeft + ScreenCoordsXY{ 9, 4 } }, colour, INSET_RECT_F_60);
|
||||
Rectangle::fillInset(
|
||||
rt, { midLeft - ScreenCoordsXY{ 0, 5 }, midLeft + ScreenCoordsXY{ 9, 4 } }, colour, Rectangle::BorderStyle::inset,
|
||||
Rectangle::FillBrightness::light, Rectangle::FillMode::dontLightenWhenInset);
|
||||
|
||||
if (widgetIsDisabled(w, widgetIndex))
|
||||
{
|
||||
@@ -680,7 +697,9 @@ namespace OpenRCT2::Ui
|
||||
auto colour = w.colours[widget.colour];
|
||||
|
||||
// Draw the border
|
||||
GfxFillRectInset(rt, { topLeft, bottomRight }, colour, INSET_RECT_F_60);
|
||||
Rectangle::fillInset(
|
||||
rt, { topLeft, bottomRight }, colour, Rectangle::BorderStyle::inset, Rectangle::FillBrightness::light,
|
||||
Rectangle::FillMode::dontLightenWhenInset);
|
||||
|
||||
// Inflate by -1
|
||||
topLeft.x++;
|
||||
@@ -746,19 +765,24 @@ namespace OpenRCT2::Ui
|
||||
colour.setFlag(ColourFlag::translucent, false);
|
||||
|
||||
// Trough
|
||||
GfxFillRect(rt, { { l + kScrollBarWidth, t }, { r - kScrollBarWidth, b } }, ColourMapA[colour.colour].lighter);
|
||||
GfxFillRect(
|
||||
Rectangle::fill(rt, { { l + kScrollBarWidth, t }, { r - kScrollBarWidth, b } }, ColourMapA[colour.colour].lighter);
|
||||
Rectangle::fill(
|
||||
rt, { { l + kScrollBarWidth, t }, { r - kScrollBarWidth, b } }, 0x1000000 | ColourMapA[colour.colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + kScrollBarWidth, t + 2 }, { r - kScrollBarWidth, t + 2 } }, ColourMapA[colour.colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + kScrollBarWidth, t + 3 }, { r - kScrollBarWidth, t + 3 } }, ColourMapA[colour.colour].lighter);
|
||||
GfxFillRect(rt, { { l + kScrollBarWidth, t + 7 }, { r - kScrollBarWidth, t + 7 } }, ColourMapA[colour.colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + kScrollBarWidth, t + 8 }, { r - kScrollBarWidth, t + 8 } }, ColourMapA[colour.colour].lighter);
|
||||
Rectangle::fill(
|
||||
rt, { { l + kScrollBarWidth, t + 2 }, { r - kScrollBarWidth, t + 2 } }, ColourMapA[colour.colour].mid_dark);
|
||||
Rectangle::fill(
|
||||
rt, { { l + kScrollBarWidth, t + 3 }, { r - kScrollBarWidth, t + 3 } }, ColourMapA[colour.colour].lighter);
|
||||
Rectangle::fill(
|
||||
rt, { { l + kScrollBarWidth, t + 7 }, { r - kScrollBarWidth, t + 7 } }, ColourMapA[colour.colour].mid_dark);
|
||||
Rectangle::fill(
|
||||
rt, { { l + kScrollBarWidth, t + 8 }, { r - kScrollBarWidth, t + 8 } }, ColourMapA[colour.colour].lighter);
|
||||
|
||||
// Left button
|
||||
{
|
||||
uint8_t flags = (scroll.flags & HSCROLLBAR_LEFT_PRESSED) ? INSET_RECT_FLAG_BORDER_INSET : 0;
|
||||
auto borderStyle = (scroll.flags & HSCROLLBAR_LEFT_PRESSED) ? Rectangle::BorderStyle::inset
|
||||
: Rectangle::BorderStyle::outset;
|
||||
|
||||
GfxFillRectInset(rt, { { l, t }, { l + (kScrollBarWidth - 1), b } }, colour, flags);
|
||||
Rectangle::fillInset(rt, { { l, t }, { l + (kScrollBarWidth - 1), b } }, colour, borderStyle);
|
||||
DrawText(rt, { l + 1, t }, {}, kBlackLeftArrowString);
|
||||
}
|
||||
|
||||
@@ -766,16 +790,18 @@ namespace OpenRCT2::Ui
|
||||
{
|
||||
int16_t left = std::max(l + kScrollBarWidth, l + scroll.hThumbLeft - 1);
|
||||
int16_t right = std::min(r - kScrollBarWidth, l + scroll.hThumbRight - 1);
|
||||
uint8_t flags = (scroll.flags & HSCROLLBAR_THUMB_PRESSED) ? INSET_RECT_FLAG_BORDER_INSET : 0;
|
||||
auto borderStyle = (scroll.flags & HSCROLLBAR_THUMB_PRESSED) ? Rectangle::BorderStyle::inset
|
||||
: Rectangle::BorderStyle::outset;
|
||||
|
||||
GfxFillRectInset(rt, { { left, t }, { right, b } }, colour, flags);
|
||||
Rectangle::fillInset(rt, { { left, t }, { right, b } }, colour, borderStyle);
|
||||
}
|
||||
|
||||
// Right button
|
||||
{
|
||||
uint8_t flags = (scroll.flags & HSCROLLBAR_RIGHT_PRESSED) ? INSET_RECT_FLAG_BORDER_INSET : 0;
|
||||
auto borderStyle = (scroll.flags & HSCROLLBAR_RIGHT_PRESSED) ? Rectangle::BorderStyle::inset
|
||||
: Rectangle::BorderStyle::outset;
|
||||
|
||||
GfxFillRectInset(rt, { { r - (kScrollBarWidth - 1), t }, { r, b } }, colour, flags);
|
||||
Rectangle::fillInset(rt, { { r - (kScrollBarWidth - 1), t }, { r, b } }, colour, borderStyle);
|
||||
DrawText(rt, { r - 6, t }, {}, kBlackRightArrowString);
|
||||
}
|
||||
}
|
||||
@@ -786,31 +812,36 @@ namespace OpenRCT2::Ui
|
||||
colour.setFlag(ColourFlag::translucent, false);
|
||||
|
||||
// Trough
|
||||
GfxFillRect(rt, { { l, t + kScrollBarWidth }, { r, b - kScrollBarWidth } }, ColourMapA[colour.colour].lighter);
|
||||
GfxFillRect(
|
||||
Rectangle::fill(rt, { { l, t + kScrollBarWidth }, { r, b - kScrollBarWidth } }, ColourMapA[colour.colour].lighter);
|
||||
Rectangle::fill(
|
||||
rt, { { l, t + kScrollBarWidth }, { r, b - kScrollBarWidth } }, 0x1000000 | ColourMapA[colour.colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + 2, t + kScrollBarWidth }, { l + 2, b - kScrollBarWidth } }, ColourMapA[colour.colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + 3, t + kScrollBarWidth }, { l + 3, b - kScrollBarWidth } }, ColourMapA[colour.colour].lighter);
|
||||
GfxFillRect(rt, { { l + 7, t + kScrollBarWidth }, { l + 7, b - kScrollBarWidth } }, ColourMapA[colour.colour].mid_dark);
|
||||
GfxFillRect(rt, { { l + 8, t + kScrollBarWidth }, { l + 8, b - kScrollBarWidth } }, ColourMapA[colour.colour].lighter);
|
||||
Rectangle::fill(
|
||||
rt, { { l + 2, t + kScrollBarWidth }, { l + 2, b - kScrollBarWidth } }, ColourMapA[colour.colour].mid_dark);
|
||||
Rectangle::fill(
|
||||
rt, { { l + 3, t + kScrollBarWidth }, { l + 3, b - kScrollBarWidth } }, ColourMapA[colour.colour].lighter);
|
||||
Rectangle::fill(
|
||||
rt, { { l + 7, t + kScrollBarWidth }, { l + 7, b - kScrollBarWidth } }, ColourMapA[colour.colour].mid_dark);
|
||||
Rectangle::fill(
|
||||
rt, { { l + 8, t + kScrollBarWidth }, { l + 8, b - kScrollBarWidth } }, ColourMapA[colour.colour].lighter);
|
||||
|
||||
// Up button
|
||||
GfxFillRectInset(
|
||||
Rectangle::fillInset(
|
||||
rt, { { l, t }, { r, t + (kScrollBarWidth - 1) } }, colour,
|
||||
((scroll.flags & VSCROLLBAR_UP_PRESSED) ? INSET_RECT_FLAG_BORDER_INSET : 0));
|
||||
((scroll.flags & VSCROLLBAR_UP_PRESSED) ? Rectangle::BorderStyle::inset : Rectangle::BorderStyle::outset));
|
||||
DrawText(rt, { l + 1, t - 1 }, {}, kBlackUpArrowString);
|
||||
|
||||
// Thumb
|
||||
GfxFillRectInset(
|
||||
Rectangle::fillInset(
|
||||
rt,
|
||||
{ { l, std::max(t + kScrollBarWidth, t + scroll.vThumbTop - 1) },
|
||||
{ r, std::min(b - kScrollBarWidth, t + scroll.vThumbBottom - 1) } },
|
||||
{ colour }, ((scroll.flags & VSCROLLBAR_THUMB_PRESSED) ? INSET_RECT_FLAG_BORDER_INSET : 0));
|
||||
{ colour },
|
||||
((scroll.flags & VSCROLLBAR_THUMB_PRESSED) ? Rectangle::BorderStyle::inset : Rectangle::BorderStyle::outset));
|
||||
|
||||
// Down button
|
||||
GfxFillRectInset(
|
||||
Rectangle::fillInset(
|
||||
rt, { { l, b - (kScrollBarWidth - 1) }, { r, b } }, colour,
|
||||
((scroll.flags & VSCROLLBAR_DOWN_PRESSED) ? INSET_RECT_FLAG_BORDER_INSET : 0));
|
||||
((scroll.flags & VSCROLLBAR_DOWN_PRESSED) ? Rectangle::BorderStyle::inset : Rectangle::BorderStyle::outset));
|
||||
DrawText(rt, { l + 1, b - (kScrollBarWidth - 1) }, {}, kBlackDownArrowString);
|
||||
}
|
||||
|
||||
@@ -1128,8 +1159,10 @@ namespace OpenRCT2::Ui
|
||||
bool active = w.classification == tbIdent.window.classification && w.number == tbIdent.window.number
|
||||
&& widgetIndex == tbIdent.widgetIndex;
|
||||
|
||||
// GfxFillRectInset(rt, l, t, r, b, colour, 0x20 | (!active ? 0x40 : 0x00));
|
||||
GfxFillRectInset(rt, { topLeft, bottomRight }, w.colours[widget.colour], INSET_RECT_F_60);
|
||||
// Rectangle::fillInset(rt, l, t, r, b, colour, 0x20 | (!active ? 0x40 : 0x00));
|
||||
Rectangle::fillInset(
|
||||
rt, { topLeft, bottomRight }, w.colours[widget.colour], Rectangle::BorderStyle::inset,
|
||||
Rectangle::FillBrightness::light, Rectangle::FillMode::dontLightenWhenInset);
|
||||
|
||||
// Figure out where the text should be positioned vertically.
|
||||
topLeft.y = w.windowPos.y + widget.textTop();
|
||||
@@ -1175,7 +1208,7 @@ namespace OpenRCT2::Ui
|
||||
{
|
||||
auto colour = ColourMapA[w.colours[1].colour].mid_light;
|
||||
auto y = topLeft.y + 1 + widget.height() - 4;
|
||||
GfxFillRect(rt, { { curX, y }, { curX + width, y } }, colour + 5);
|
||||
Rectangle::fill(rt, { { curX, y }, { curX + width, y } }, colour + 5);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1193,7 +1226,9 @@ namespace OpenRCT2::Ui
|
||||
auto isBlinking = (lowerBlinkBounds != upperBlinkBounds) && (percentage >= lowerBlinkBounds)
|
||||
&& (percentage <= upperBlinkBounds);
|
||||
|
||||
GfxFillRectInset(rt, { topLeft, bottomRight }, w.colours[1], INSET_RECT_F_30);
|
||||
Rectangle::fillInset(
|
||||
rt, { topLeft, bottomRight }, w.colours[1], Rectangle::BorderStyle::inset, Rectangle::FillBrightness::light,
|
||||
Rectangle::FillMode::none);
|
||||
if (isBlinking)
|
||||
{
|
||||
if (GameIsNotPaused() && (gCurrentRealTimeTicks & 8))
|
||||
@@ -1204,9 +1239,9 @@ namespace OpenRCT2::Ui
|
||||
const int32_t fillSize = (barWidth * percentage) / 100;
|
||||
if (fillSize > 0)
|
||||
{
|
||||
GfxFillRectInset(
|
||||
Rectangle::fillInset(
|
||||
rt, { topLeft + ScreenCoordsXY{ 1, 1 }, topLeft + ScreenCoordsXY{ fillSize + 1, widget.height() - 1 } },
|
||||
{ widget.colour }, 0);
|
||||
{ widget.colour });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1215,7 +1250,7 @@ namespace OpenRCT2::Ui
|
||||
ScreenCoordsXY topLeft{ w.windowPos + ScreenCoordsXY{ widget.left, widget.top } };
|
||||
ScreenCoordsXY bottomRight{ w.windowPos + ScreenCoordsXY{ widget.right, widget.bottom } };
|
||||
|
||||
GfxFillRectInset(rt, { topLeft, bottomRight }, w.colours[1], INSET_RECT_FLAG_BORDER_INSET);
|
||||
Rectangle::fillInset(rt, { topLeft, bottomRight }, w.colours[1], Rectangle::BorderStyle::inset);
|
||||
}
|
||||
|
||||
ImageId getColourButtonImage(colour_t colour)
|
||||
|
||||
@@ -24,12 +24,15 @@
|
||||
#include <openrct2/audio/Audio.h>
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/drawing/Drawing.h>
|
||||
#include <openrct2/drawing/Rectangle.h>
|
||||
#include <openrct2/entity/EntityRegistry.h>
|
||||
#include <openrct2/interface/Viewport.h>
|
||||
#include <openrct2/interface/Widget.h>
|
||||
#include <openrct2/ui/WindowManager.h>
|
||||
#include <openrct2/world/Location.hpp>
|
||||
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
// The amount of pixels to scroll per wheel click
|
||||
@@ -314,7 +317,7 @@ namespace OpenRCT2::Ui
|
||||
|
||||
void ApplyScreenSaverLockSetting()
|
||||
{
|
||||
Config::Get().general.DisableScreensaver ? SDL_DisableScreenSaver() : SDL_EnableScreenSaver();
|
||||
Config::Get().general.disableScreensaver ? SDL_DisableScreenSaver() : SDL_EnableScreenSaver();
|
||||
}
|
||||
|
||||
void Window::scrollToViewport()
|
||||
@@ -514,7 +517,7 @@ namespace OpenRCT2::Ui
|
||||
|
||||
ScreenCoordsXY WindowGetViewportSoundIconPos(WindowBase& w)
|
||||
{
|
||||
const uint8_t buttonOffset = (Config::Get().interface.WindowButtonsOnTheLeft) ? kCloseButtonSize + 2 : 0;
|
||||
const uint8_t buttonOffset = (Config::Get().interface.windowButtonsOnTheLeft) ? kCloseButtonSize + 2 : 0;
|
||||
return w.windowPos + ScreenCoordsXY{ 2 + buttonOffset, 2 };
|
||||
}
|
||||
} // namespace OpenRCT2::Ui
|
||||
@@ -960,7 +963,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
w.maxWidth = std::max(minSize.width, maxSize.width);
|
||||
w.maxHeight = std::max(minSize.height, maxSize.height);
|
||||
|
||||
if (Config::Get().interface.EnlargedUi)
|
||||
if (Config::Get().interface.enlargedUi)
|
||||
{
|
||||
// Not sure why plugin windows have to be treated differently,
|
||||
// but they currently show a deviation if we don't.
|
||||
@@ -1022,7 +1025,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
void WindowDrawWidgets(WindowBase& w, RenderTarget& rt)
|
||||
{
|
||||
if ((w.flags.has(WindowFlag::transparent)) && !(w.flags.has(WindowFlag::noBackground)))
|
||||
GfxFilterRect(
|
||||
Rectangle::filter(
|
||||
rt, { w.windowPos, w.windowPos + ScreenCoordsXY{ w.width - 1, w.height - 1 } }, FilterPaletteID::palette51);
|
||||
|
||||
// todo: some code missing here? Between 006EB18C and 006EB260
|
||||
@@ -1048,9 +1051,9 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
if (w.flashTimer > 0)
|
||||
{
|
||||
GfxFillRectInset(
|
||||
Rectangle::fillInset(
|
||||
rt, { w.windowPos, w.windowPos + ScreenCoordsXY{ w.width - 1, w.height - 1 } }, { COLOUR_WHITE },
|
||||
INSET_RECT_FLAG_FILL_NONE);
|
||||
Rectangle::BorderStyle::outset, Rectangle::FillBrightness::light, Rectangle::FillMode::none);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,9 +18,11 @@
|
||||
#include <numeric>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include <openrct2/drawing/Rectangle.h>
|
||||
#include <openrct2/localisation/Formatter.h>
|
||||
#include <openrct2/localisation/Formatting.h>
|
||||
|
||||
using namespace OpenRCT2::Drawing;
|
||||
using namespace OpenRCT2::Scripting;
|
||||
using namespace OpenRCT2::Ui::Windows;
|
||||
|
||||
@@ -565,7 +567,7 @@ void CustomListView::MouseUp(const ScreenCoordsXY& pos)
|
||||
void CustomListView::Paint(WindowBase* w, RenderTarget& rt, const ScrollArea* scroll) const
|
||||
{
|
||||
auto paletteIndex = ColourMapA[w->colours[1].colour].mid_light;
|
||||
GfxFillRect(rt, { { rt.x, rt.y }, { rt.x + rt.width, rt.y + rt.height } }, paletteIndex);
|
||||
Rectangle::fill(rt, { { rt.x, rt.y }, { rt.x + rt.width, rt.y + rt.height } }, paletteIndex);
|
||||
|
||||
int32_t y = ShowColumnHeaders ? kColumnHeaderHeight : 0;
|
||||
for (size_t i = 0; i < Items.size(); i++)
|
||||
@@ -595,17 +597,17 @@ void CustomListView::Paint(WindowBase* w, RenderTarget& rt, const ScrollArea* sc
|
||||
auto isSelected = (SelectedCell && itemIndex == SelectedCell->Row);
|
||||
if (isSelected)
|
||||
{
|
||||
GfxFilterRect(
|
||||
Rectangle::filter(
|
||||
rt, { { rt.x, y }, { rt.x + rt.width, y + (kListRowHeight - 1) } }, FilterPaletteID::paletteDarken2);
|
||||
}
|
||||
else if (isHighlighted)
|
||||
{
|
||||
GfxFilterRect(
|
||||
Rectangle::filter(
|
||||
rt, { { rt.x, y }, { rt.x + rt.width, y + (kListRowHeight - 1) } }, FilterPaletteID::paletteDarken2);
|
||||
}
|
||||
else if (isStriped)
|
||||
{
|
||||
GfxFillRect(
|
||||
Rectangle::fill(
|
||||
rt, { { rt.x, y }, { rt.x + rt.width, y + (kListRowHeight - 1) } },
|
||||
ColourMapA[w->colours[1].colour].lighter | 0x1000000);
|
||||
}
|
||||
@@ -652,7 +654,7 @@ void CustomListView::Paint(WindowBase* w, RenderTarget& rt, const ScrollArea* sc
|
||||
y = scroll->contentOffsetY;
|
||||
|
||||
auto bgColour = ColourMapA[w->colours[1].colour].mid_light;
|
||||
GfxFillRect(rt, { { rt.x, y }, { rt.x + rt.width, y + 12 } }, bgColour);
|
||||
Rectangle::fill(rt, { { rt.x, y }, { rt.x + rt.width, y + 12 } }, bgColour);
|
||||
|
||||
int32_t x = 0;
|
||||
for (int32_t j = 0; j < static_cast<int32_t>(Columns.size()); j++)
|
||||
@@ -679,12 +681,12 @@ void CustomListView::PaintHeading(
|
||||
WindowBase* w, RenderTarget& rt, const ScreenCoordsXY& pos, const ScreenSize& size, const std::string& text,
|
||||
ColumnSortOrder sortOrder, bool isPressed) const
|
||||
{
|
||||
auto boxFlags = 0;
|
||||
auto borderStyle = Rectangle::BorderStyle::outset;
|
||||
if (isPressed)
|
||||
{
|
||||
boxFlags = INSET_RECT_FLAG_BORDER_INSET;
|
||||
borderStyle = Rectangle::BorderStyle::inset;
|
||||
}
|
||||
GfxFillRectInset(rt, { pos, pos + ScreenCoordsXY{ size.width - 1, size.height - 1 } }, w->colours[1], boxFlags);
|
||||
Rectangle::fillInset(rt, { pos, pos + ScreenCoordsXY{ size.width - 1, size.height - 1 } }, w->colours[1], borderStyle);
|
||||
if (!text.empty())
|
||||
{
|
||||
PaintCell(rt, pos, size, text.c_str(), false);
|
||||
|
||||
@@ -489,7 +489,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
auto& closeButton = widgets[WIDX_CLOSE];
|
||||
bool translucent = colours[closeButton.colour].hasFlag(ColourFlag::translucent);
|
||||
if (Config::Get().interface.EnlargedUi)
|
||||
if (Config::Get().interface.enlargedUi)
|
||||
closeButton.string = !translucent ? kCloseBoxStringBlackLarge : kCloseBoxStringWhiteLarge;
|
||||
else
|
||||
closeButton.string = !translucent ? kCloseBoxStringBlackNormal : kCloseBoxStringWhiteNormal;
|
||||
|
||||