diff --git a/client/RailEnterprise.Client/assets/i18n/strings.csv b/client/RailEnterprise.Client/assets/i18n/strings.csv index c7ab4f1..6d67856 100644 --- a/client/RailEnterprise.Client/assets/i18n/strings.csv +++ b/client/RailEnterprise.Client/assets/i18n/strings.csv @@ -773,6 +773,57 @@ una leva non oltre {0} (rimborsando {1}),,leverage no higher than {0} (by repayi Per il gradino {0} serve un punteggio di {1}: {2}.,,To reach {0} you need a score of {1}: {2}. In bancarotta non si possono chiedere prestiti,,Loans cannot be requested while bankrupt Fido disponibile {0} su {1}. Tasso di un nuovo prestito: {2} fisso (base {3} + rating {4} {5}) per {6} anni.,,Available credit {0} of {1}. Rate of a new loan: {2} fixed (base {3} + rating {4} {5}) for {6} years. +Avanti,,Next +Salta passo,,Skip step +Chiudi tutorial,,Close tutorial +Tutorial,,Tutorial +Riduci o espandi il riquadro del tutorial,,Collapse or expand the tutorial box +Passo {0} di {1},,Step {0} of {1} +Fine,,Finish +Fatto,,Done +Il tutorial si riapre con F1 o dalla schermata iniziale,,Reopen the tutorial with F1 or from the start screen +Mostra il tutorial,,Show the tutorial +Tutorial non disponibile: {0},,Tutorial not available: {0} +Avvio della partita di prova del tutorial…,,Starting the tutorial practice game… +Guida passo per passo alla prima linea: si chiude quando vuoi e si riapre con F1,,Step-by-step guide to your first line: close it whenever you like and reopen it with F1 +"Nuova partita locale di prova con il tutorial dal primo passo: la tua partita locale resta com'è",,"New practice local game with the tutorial from the first step: your own local game stays as it is" +Benvenuto in Rail Enterprise,,Welcome to Rail Enterprise +"Guidi una compagnia ferroviaria: costruisci binari e stazioni, trasporti merci e pendolari e fai crescere il patrimonio fino a dominare il mercato. Questo tutorial ti accompagna nella prima linea; puoi saltare un passo o chiuderlo quando vuoi.",,"You run a railway company: build track and stations, carry goods and commuters and grow your net worth until you dominate the market. This tutorial walks you through your first line; you can skip a step or close it whenever you like." +Muovi la mappa,,Move the map +Trascina con il tasto destro (o usa WASD e le frecce) per spostarti e gira la rotella per lo zoom. Cerca una città e un'industria vicine: saranno le due stazioni della prima linea.,,Drag with the right mouse button (or use WASD and the arrow keys) to move and turn the wheel to zoom. Look for a town and an industry close to each other: they will be the two stations of your first line. +Il tempo,,Time +"In alto scegli la velocità del gioco: II mette in pausa, 1× – 8× accelerano. Anche la barra spaziatrice mette in pausa e riprende. Cambia la velocità per proseguire.",,"At the top you choose the game speed: II pauses, 1× – 8× speed it up. The space bar also pauses and resumes. Change the speed to continue." +Costruisci due stazioni,,Build two stations +Apri lo strumento Stazione e fai clic sulla mappa vicino a un'industria e poi vicino a una città. Il cerchio è il bacino di utenza: le merci e i passeggeri arrivano solo da lì.,,Open the Station tool and click the map near an industry and then near a town. The circle is the catchment area: goods and passengers only come from inside it. +Costruisci un deposito,,Build a depot +"Con lo strumento Deposito posa un deposito vicino a una delle stazioni. Nel deposito si comprano i veicoli, si compongono i treni e si fanno le manutenzioni.",,"With the Depot tool place a depot near one of the stations. In the depot you buy vehicles, compose trains and carry out maintenance." +Lo strumento Binari,,The Track tool +Apri lo strumento Binari: scegli la classe del binario e se ammettere ponti e gallerie.,,Open the Track tool: choose the track class and whether to allow bridges and tunnels. +Guarda il profilo e le opere,,Look at the profile and the structures +"Fai clic sulla prima stazione e muovi il mouse verso la seconda: il profilo mostra il terreno e la quota del binario. Sotto compaiono rilevati, trincee, ponti e gallerie con lunghezza, pendenza, costo e giorni di cantiere. Se attraversi un fiume vedrai il ponte.",,"Click the first station and move the mouse towards the second: the profile shows the terrain and the height of the track. Below it you see embankments, cuttings, bridges and tunnels with length, gradient, cost and days of work. If you cross a river you will see the bridge." +Costruisci il binario,,Build the track +"Aggiungi punti con altri clic per evitare salite ripide, poi premi Costruisci (o Invio). Il costo viene addebitato subito e il cantiere parte.",,"Add points with more clicks to avoid steep climbs, then press Build (or Enter). The cost is charged at once and construction starts." +Collega il deposito,,Connect the depot +"Il deposito deve essere raccordato alla linea: traccia un breve binario dal deposito alla stazione più vicina. Se è già collegato, premi Salta passo.",,"The depot must be connected to the line: lay a short track from the depot to the nearest station. If it is already connected, press Skip step." +Attendi i cantieri,,Wait for construction +I cantieri richiedono giorni di gioco: accelera il tempo e osserva il tratteggio dei lavori che diventa binario.,,Construction takes game days: speed up time and watch the dashed works turn into track. +Compra una locomotiva,,Buy a locomotive +"Apri Treni, scegli il deposito e una locomotiva dal catalogo, poi premi Compra veicoli.",,"Open Trains, choose the depot and a locomotive from the catalogue, then press Buy vehicles." +Compra i carri,,Buy the wagons +Ora compra qualche carro per la merce dell'industria (o carrozze per i pendolari): ogni carro accetta solo alcune merci.,,Now buy a few wagons for the industry's goods (or coaches for commuters): each wagon only accepts certain goods. +Componi il treno,,Compose the train +"Seleziona nell'elenco del deposito la locomotiva e i carri, nell'ordine in cui li vuoi, dai un nome al treno e premi Componi.",,"In the depot list select the locomotive and the wagons in the order you want, name the train and press Compose." +Crea una linea,,Create a line +Apri Linee e fai clic sulle due stazioni in ordine: sono le fermate. Scegli nome e colore e premi Crea linea.,,Open Lines and click the two stations in order: they are the stops. Choose a name and a colour and press Create line. +Assegna il treno alla linea,,Assign the train to the line +"Torna in Treni, seleziona il treno, scegli la linea e premi Assegna: il treno esce dal deposito e comincia il servizio.",,"Go back to Trains, select the train, choose the line and press Assign: the train leaves the depot and starts service." +Il Mercato globale,,The Global market +"Apri il Mercato: prezzi, offerta e domanda di ogni bene, la previsione e dove conviene vendere. Ti dice quali linee rendono di più.",,"Open the Market: prices, supply and demand of every good, the forecast and where it pays to sell. It tells you which lines earn the most." +Le Finanze,,Finances +"Apri le Finanze: conto economico per voce, rating e prestiti. Un prestito ben speso costruisce linee; troppi debiti abbassano il rating e alzano il tasso.",,"Open Finances: income statement by item, rating and loans. A well-spent loan builds lines; too much debt lowers the rating and raises the rate." +"Apri la Scalata (o fai clic sul livello in alto): i livelli della compagnia, che cosa sbloccano e che cosa manca per salire.",,"Open the Climb (or click the tier at the top): the company tiers, what they unlock and what is missing to move up." +Qualche consiglio,,A few tips +Collega industrie che producono a chi consuma la loro merce e porta i lavoratori dalle città alle industrie. Tieni d'occhio le Officine: un treno trascurato si guasta. Controlla cassa e rating prima di indebitarti. Buon viaggio! Puoi riaprire il tutorial con F1.,,Connect producing industries to those that consume their goods and bring workers from towns to industries. Keep an eye on the Workshops: a neglected train breaks down. Check cash and rating before borrowing. Have a good journey! You can reopen the tutorial with F1. Verifica connessione,,Test connection Versione,,Version Versione del gioco,,Game version @@ -825,3 +876,240 @@ Interfaccia,,Interface Muto,,Mute Il tasto M attiva e toglie il muto durante la partita.,,The M key toggles mute during the game. Audio (M: muto),,Audio (M: mute) +Perché questo valore,,Why this value +in arrivo…,,on its way… +aggiornamento in arrivo…,,update on its way… +Il numero sul pannello è di inizio giornata; qui c'è quello di adesso.,,The number on the panel is from the start of the day; this is the current one. +motore,,engine +freni,,brakes +cassa,,body +Valore non disponibile.,,Value not available. +Avanzamento del livello,,Level progress +Prezzo globale,,Global price +Prezzo base,,Base price +Prezzo iniziale: il prezzo base del bene.,,Starting price: the good's base price. +Bene non ancora in commercio: il prezzo resta quello di partenza.,,Good not yet on the market: the price stays at its starting value. +Prezzo di ieri,,Yesterday's price +Domanda della regione (finestra),,Regional demand (window) +Offerta della regione (finestra),,Regional supply (window) +Prezzo mondiale,,World price +Scambi con il resto del mondo,,Trade with the rest of the world +Rapporto domanda / offerta (con il mondo, limitato),,"Demand / supply ratio (with the world, bounded)" +Elasticità degli scambi con il mondo,,Elasticity of trade with the world +Domanda con il resto del mondo,,Demand including the rest of the world +Offerta con il resto del mondo,,Supply including the rest of the world +Rapporto minimo,,Minimum ratio +Rapporto massimo,,Maximum ratio +Sensibilità al rapporto,,Sensitivity to the ratio +Prezzo minimo,,Minimum price +Prezzo massimo,,Maximum price +Prezzo obiettivo,,Target price +Peso del giorno,,Weight of the day +"D e S sono la domanda e l'offerta della regione; Dtot e Stot aggiungono gli scambi con il resto del mondo al prezzo mondiale, che segue il ciclo economico e gli shock.",,"D and S are the regional demand and supply; Dtot and Stot add trade with the rest of the world at the world price, which follows the business cycle and shocks." +Il prezzo è cambiato dopo l'ultimo passo del mercato.,,The price changed after the last market step. +Prezzo locale,,Local price +"Prezzo a cui l'industria compra la prossima unità: Dl è la scorta desiderata dell'ingresso, Sl la scorta.",,"Price at which the industry buys the next unit: Dl is the desired input stock, Sl the stock." +"Prezzo a cui l'industria vende la prossima unità: Dl è lo spazio libero del magazzino, Sl la giacenza.",,"Price at which the industry sells the next unit: Dl is the free warehouse space, Sl the stock on hand." +Domanda locale,,Local demand +Offerta locale,,Local supply +Peso dello squilibrio,,Weight of the imbalance +Correzione per scorte nulle,,Correction for empty stock +Scarto massimo dal prezzo globale,,Maximum deviation from the global price +Squilibrio locale,,Local imbalance +Fattore locale,,Local factor +Tariffa merci,,Freight fare +Tariffa di una unità consegnata nel tempo atteso; tf scende dopo la soglia di ritardo fino al minimo.,,Fare for one unit delivered in the expected time; tf falls after the lateness threshold down to the minimum. +Nessun treno della linea collega la tratta con questo bene: il tempo atteso non è noto e tf vale 1.,,No train on the line links the stretch with this good: the expected time is unknown and tf is 1. +tariffa = u × Tb × (a + b·Pg/Pb) × km^e × tf × d,,fare = u × Tb × (a + b·Pg/Pb) × km^e × tf × d +Unità,,Units +Tariffa base,,Base fare +Quota fissa,,Fixed part +Quota legata al prezzo,,Price-linked part +Fattore del prezzo,,Price factor +Distanza in linea d'aria,,Straight-line distance +Esponente della distanza,,Distance exponent +Fattore della distanza,,Distance factor +Puntualità,,Punctuality +Moltiplicatore della difficoltà,,Difficulty multiplier +Tempo atteso,,Expected time +soglia,,threshold +Soglia di ritardo (volte il tempo atteso),,Lateness threshold (times the expected time) +Puntualità minima,,Minimum punctuality +Puntualità a due volte il tempo atteso,,Punctuality at twice the expected time +tariffa 2×,,fare 2× +Tariffa a due volte il tempo atteso,,Fare at twice the expected time +Tariffa passeggeri,,Passenger fare +Tariffa di un posto consegnato nel tempo atteso; tf scende dopo la soglia di ritardo fino al minimo.,,Fare for one seat delivered in the expected time; tf falls after the lateness threshold down to the minimum. +Nessun treno sulla linea: il comfort delle carrozze vale 1.,,No train on the line: carriage comfort is 1. +Nessun treno della linea collega la tratta per questa classe: il tempo atteso non è noto e tf vale 1.,,No train on the line links the stretch for this class: the expected time is unknown and tf is 1. +Tariffa del personale,,Staff fare +Tariffa dei lavoratori,,Workers' fare +tariffa = p × Tp × km^e × classe × tf × d × comfort,,fare = p × Tp × km^e × class × tf × d × comfort +Posti,,Seats +Tariffa base per posto,,Base fare per seat +classe,,class +Moltiplicatore della classe,,Class multiplier +Comfort delle carrozze,,Carriage comfort +senza comfort,,no comfort +Tariffa prima del comfort,,Fare before comfort +Industria chiusa.,,Industry closed. +I termini arrivano con la prossima produzione giornaliera (dopo un caricamento non sono salvati).,,"The terms arrive with the next daily production (they are not saved, so they are missing after a load)." +Copertura dei lavoratori (media mobile),,Worker coverage (moving average) +Copertura del personale (media mobile),,Staff coverage (moving average) +Fattore di profitto,,Profit factor +lavoro,,work +Ritmo del lavoro,,Work pace +Copertura degli ingressi di oggi,,Today's input coverage +Giacimento,,Deposit +margine,,margin +Margine (media mobile),,Margin (moving average) +condizione,,condition +Condizione degli impianti alla produzione (0–100),,Plant condition at production (0–100) +"lavoro = min(cL, cP) × pf × mc (0 se ferma); e = lavoro × cI × g × ev",,"work = min(cL, cP) × pf × mc (0 if stopped); e = work × cI × g × ev" +"Industria ferma (guasto, incidente, revisione o ammodernamento): il ritmo del lavoro è zero.",,"Industry stopped (failure, accident, overhaul or upgrade): the work pace is zero." +Livello 0: l'industria è inattiva.,,Level 0: the industry is inactive. +Sopra la soglia di crescita per i trimestri richiesti il livello sale; sotto la soglia di calo scende.,,Above the growth threshold for the required quarters the level rises; below the decline threshold it falls. +Non servita da un vettore nel trimestre: il livello non cambia.,,Not served by a carrier this quarter: the level does not change. +punteggio = ws·quota + wc·copertura + wr·redditività,,score = ws·share + wc·coverage + wr·profitability +quota,,share +Quota trasportata,,Share carried +spedite,,shipped +Unità spedite nel trimestre,,Units shipped in the quarter +prodotte,,produced +Unità prodotte nel trimestre,,Units produced in the quarter +Copertura media,,Average coverage +Giorni del trimestre,,Days in the quarter +redditività,,profitability +Redditività (margine + 1)/2,,Profitability (margin + 1)/2 +Peso della quota,,Weight of the share +Peso della copertura,,Weight of the coverage +Peso della redditività,,Weight of the profitability +soglia su,,threshold up +Soglia di crescita,,Growth threshold +soglia giù,,threshold down +Soglia di calo,,Decline threshold +trimestri,,quarters +Trimestri sopra soglia,,Quarters above threshold +richiesti,,required +Trimestri richiesti,,Quarters required +Crescita della città,,Town growth +"g = g₀ + ws·(s − s₀) + wo·(o − o₀), limitata a ±gmax",,"g = g₀ + ws·(s − s₀) + wo·(o − o₀), capped at ±gmax" +Crescita di base,,Base growth +Soddisfazione neutra,,Neutral satisfaction +Peso della soddisfazione,,Weight of satisfaction +Occupati per abitante,,Employed per inhabitant +Occupazione neutra,,Neutral employment +Peso dell'occupazione,,Weight of employment +g grezza,,raw g +Crescita prima del limite,,Growth before the cap +Crescita massima al mese,,Maximum growth per month +dopo,,after +Abitanti dopo il mese,,Population after the month +ultimo mese,,last month +Crescita dell'ultimo mese,,Last month's growth +Stima con lo stato di oggi: la crescita si applica all'inizio del mese.,,Estimate from today's state: growth is applied at the start of the month. +Condizione del treno,,Train condition +Componente più debole,,Weakest component +veicolo,,vehicle +Veicolo,,Vehicle +Usura al giorno del componente (media mobile),,Component wear per day (moving average) +Componente che dà la stima,,Component driving the estimate +Veicolo del componente della stima,,Vehicle of the estimate component +veicolo cs,,vehicle cs +Il componente è già all'obiettivo o sotto: la stima vale −margine.,,The component is already at or below the target: the estimate is −margin. +c rischio,,c risk +Componente più a rischio,,Component most at risk +Rischio di base al giorno,,Base risk per day +Condizione di soglia,,Threshold condition +Pendenza del rischio,,Risk slope +Scala della condizione,,Condition scale +Riduzione sopra soglia,,Reduction above threshold +ispezione,,inspection +Fattore dopo un'ispezione,,Factor after an inspection +Rischio di guasto al giorno,,Failure risk per day +Giorni attesi al prossimo guasto,,Expected days to the next failure +Condizione obiettivo del pianificatore,,Planner's target condition +Margine del pianificatore,,Planner's margin +stima,,estimate +Giorni all'intervento sulla condizione,,Days to condition-based maintenance +Nessuna stima del pianificatore: i componenti non si sono ancora consumati.,,No planner estimate: the components have not worn yet. +Il guasto è estratto ogni giorno con il rischio h: 1/h è il numero medio di giorni prima del prossimo.,,A failure is drawn every day with risk h: 1/h is the average number of days before the next one. +"c = min(componenti); h = h₀·exp(k·(c₀ − c)/σ) sotto c₀, altrimenti h₀/div; stima = min sui componenti di (cs − obiettivo)/usura − margine",,"c = min(components); h = h₀·exp(k·(c₀ − c)/σ) below c₀, otherwise h₀/div; estimate = min over components of (cs − target)/wear − margin" +Valore del veicolo,,Vehicle value +prezzo,,price +Prezzo di listino,,List price +età,,age +Età,,Age +vita,,life +Vita utile,,Useful life +Superato dal,,Superseded since +anni superato,,years superseded +Anni da superato,,Years since superseded +perdita,,loss +Perdita immediata,,Immediate loss +velocità,,speed +Ammortamento più rapido,,Faster depreciation +successore,,successor +Successore consigliato,,Recommended successor +"r = max(rmin, (1 − perdita)·(1 − (età + (velocità − 1)·anni superato)/vita)); valore = prezzo·r; rivendita = prezzo·r·condizione",,"r = max(rmin, (1 − loss)·(1 − (age + (speed − 1)·years superseded)/life)); value = price·r; resale = price·r·condition" +Modello superato: perde subito una quota del valore e si ammortizza più in fretta.,,Superseded model: it loses part of its value at once and depreciates faster. +"r = max(rmin, 1 − età/vita); valore = prezzo·r; rivendita = prezzo·r·condizione",,"r = max(rmin, 1 − age/life); value = price·r; resale = price·r·condition" +Valore minimo,,Minimum value +Quota residua del valore,,Remaining share of value +Condizione media dei componenti,,Average component condition +rivendita,,resale +Rivendita,,Resale +"Margine (utile operativo / ricavi, 12 mesi)",,"Margin (operating profit / revenue, 12 months)" +Componente del margine,,Margin component +leva,,leverage +Debiti / patrimonio netto,,Debt / net worth +Componente della leva,,Leverage component +Peso del margine,,Weight of the margin +Peso della leva,,Weight of the leverage +"Rating iniziale: le misure sono quelle di oggi, il primo calcolo è a inizio mese.",,"Initial rating: the measures are today's, the first calculation is at the start of the month." +Margine neutro finché la finestra non ha abbastanza mesi con ricavi.,,Neutral margin until the window has enough months with revenue. +Compagnia in bancarotta: il rating è D.,,Company bankrupt: the rating is D. +gradino,,step +Gradino sopra,,Next step up +Punteggio del gradino sopra,,Score of the next step up +Il punteggio vale già il gradino sopra: il rating cambia al prossimo calcolo mensile.,,The score already earns the next step up: the rating changes at the next monthly calculation. +margine necessario,,margin needed +"Margine che basta, a leva invariata",,"Margin that is enough, with leverage unchanged" +leva massima,,max leverage +"Leva che basta, a margine invariato",,"Leverage that is enough, with margin unchanged" +rimborso,,repayment +Debito da rimborsare per la leva che basta,,Debt to repay to reach that leverage +Rating più alto.,,Highest rating. +"punteggio = pm·clamp(0,5 + margine, 0, 1) + pl·1/(1 + leva)",,"score = pm·clamp(0.5 + margin, 0, 1) + pl·1/(1 + leverage)" +Livello più alto.,,Highest level. +Finché un requisito manca l'avanzamento resta sotto il 100%.,,"While a requirement is missing, progress stays below 100%." +"avanzamento = (fP + fC + fR)/3; fP = min(1, patrimonio/soglia); fC = min(1, città/richieste); fR = 1 − gradini mancanti/n",,"progress = (fP + fC + fR)/3; fP = min(1, net worth/threshold); fC = min(1, cities/wanted); fR = 1 − missing steps/n" +Patrimonio richiesto,,Net worth required +Frazione del patrimonio,,Net worth fraction +città,,cities +Città collegate,,Towns connected +Città richieste,,Towns required +Abitanti minimi per città,,Minimum population per town +Frazione delle città,,Towns fraction +rating richiesto,,rating required +Rating richiesto,,Rating required +Gradini per lo zero,,Steps to zero +Frazione del rating,,Rating fraction +tetto,,cap +Tetto con un requisito mancante,,Cap with a requirement missing +Le voci del mese sono nel pannello «Finanze».,,The month's items are in the «Finances» panel. +inizio,,start +Cassa a inizio mese,,Cash at the start of the month +ricavi,,revenue +Ricavi del mese,,Revenue this month +costi,,costs +Costi del mese,,Costs this month +capitale,,capital +Investimenti e finanziamenti del mese,,Investment and financing this month +flusso,,flow +Flusso di cassa del mese,,Cash flow this month +Giorni di cassa negativa,,Days of negative cash +limite,,limit +Giorni che portano alla bancarotta,,Days that lead to bankruptcy +Con la cassa negativa per troppi giorni di fila la compagnia fallisce.,,With negative cash for too many days in a row the company goes bankrupt. +cassa = cassa a inizio mese + ricavi + costi + investimenti e finanziamenti,,cash = cash at start of month + revenue + costs + investment and financing diff --git a/client/RailEnterprise.Client/assets/tutorial/tutorial.json b/client/RailEnterprise.Client/assets/tutorial/tutorial.json new file mode 100644 index 0000000..7c93c95 --- /dev/null +++ b/client/RailEnterprise.Client/assets/tutorial/tutorial.json @@ -0,0 +1,142 @@ +{ + "version": 1, + "steps": [ + { + "id": "welcome", + "title": "Benvenuto in Rail Enterprise", + "text": "Guidi una compagnia ferroviaria: costruisci binari e stazioni, trasporti merci e pendolari e fai crescere il patrimonio fino a dominare il mercato. Questo tutorial ti accompagna nella prima linea; puoi saltare un passo o chiuderlo quando vuoi." + }, + { + "id": "map", + "title": "Muovi la mappa", + "text": "Trascina con il tasto destro (o usa WASD e le frecce) per spostarti e gira la rotella per lo zoom. Cerca una città e un'industria vicine: saranno le due stazioni della prima linea.", + "highlight": "map", + "done": { "all": [ { "counter": "mapPan", "increase": 0.5 }, { "counter": "mapZoom", "increase": 0.5 } ] } + }, + { + "id": "time", + "title": "Il tempo", + "text": "In alto scegli la velocità del gioco: II mette in pausa, 1× – 8× accelerano. Anche la barra spaziatrice mette in pausa e riprende. Cambia la velocità per proseguire.", + "highlight": "topbar:speed", + "done": { "counter": "speedChanges", "increase": 1 } + }, + { + "id": "stations", + "title": "Costruisci due stazioni", + "text": "Apri lo strumento Stazione e fai clic sulla mappa vicino a un'industria e poi vicino a una città. Il cerchio è il bacino di utenza: le merci e i passeggeri arrivano solo da lì.", + "highlight": "toolbar:station", + "done": { "counter": "stations", "atLeast": 2 } + }, + { + "id": "depot", + "title": "Costruisci un deposito", + "text": "Con lo strumento Deposito posa un deposito vicino a una delle stazioni. Nel deposito si comprano i veicoli, si compongono i treni e si fanno le manutenzioni.", + "highlight": "toolbar:depot", + "done": { "counter": "depots", "atLeast": 1 } + }, + { + "id": "track-tool", + "title": "Lo strumento Binari", + "text": "Apri lo strumento Binari: scegli la classe del binario e se ammettere ponti e gallerie.", + "highlight": "toolbar:track", + "done": { "panel": "track" } + }, + { + "id": "track-profile", + "title": "Guarda il profilo e le opere", + "text": "Fai clic sulla prima stazione e muovi il mouse verso la seconda: il profilo mostra il terreno e la quota del binario. Sotto compaiono rilevati, trincee, ponti e gallerie con lunghezza, pendenza, costo e giorni di cantiere. Se attraversi un fiume vedrai il ponte.", + "highlight": "track:profile", + "fallback": "toolbar:track", + "done": { "counter": "trackPreviews", "increase": 1 } + }, + { + "id": "track-build", + "title": "Costruisci il binario", + "text": "Aggiungi punti con altri clic per evitare salite ripide, poi premi Costruisci (o Invio). Il costo viene addebitato subito e il cantiere parte.", + "highlight": "track:build", + "fallback": "toolbar:track", + "done": { "counter": "cmd:BuildTrack", "increase": 1 } + }, + { + "id": "depot-link", + "title": "Collega il deposito", + "text": "Il deposito deve essere raccordato alla linea: traccia un breve binario dal deposito alla stazione più vicina. Se è già collegato, premi Salta passo.", + "highlight": "track:build", + "fallback": "toolbar:track", + "done": { "counter": "cmd:BuildTrack", "increase": 1 } + }, + { + "id": "construction", + "title": "Attendi i cantieri", + "text": "I cantieri richiedono giorni di gioco: accelera il tempo e osserva il tratteggio dei lavori che diventa binario.", + "highlight": "topbar:speed", + "done": { "all": [ { "counter": "edges", "atLeast": 1 }, { "counter": "edgesBuilding", "atMost": 0 } ] } + }, + { + "id": "locomotive", + "title": "Compra una locomotiva", + "text": "Apri Treni, scegli il deposito e una locomotiva dal catalogo, poi premi Compra veicoli.", + "highlight": "trains:buy", + "fallback": "toolbar:trains", + "done": { "counter": "locomotives", "atLeast": 1 } + }, + { + "id": "cars", + "title": "Compra i carri", + "text": "Ora compra qualche carro per la merce dell'industria (o carrozze per i pendolari): ogni carro accetta solo alcune merci.", + "highlight": "trains:buy", + "fallback": "toolbar:trains", + "done": { "counter": "cars", "atLeast": 1 } + }, + { + "id": "compose", + "title": "Componi il treno", + "text": "Seleziona nell'elenco del deposito la locomotiva e i carri, nell'ordine in cui li vuoi, dai un nome al treno e premi Componi.", + "highlight": "trains:compose", + "fallback": "toolbar:trains", + "done": { "counter": "trains", "atLeast": 1 } + }, + { + "id": "line", + "title": "Crea una linea", + "text": "Apri Linee e fai clic sulle due stazioni in ordine: sono le fermate. Scegli nome e colore e premi Crea linea.", + "highlight": "lines:create", + "fallback": "toolbar:lines", + "done": { "counter": "lines", "atLeast": 1 } + }, + { + "id": "assign", + "title": "Assegna il treno alla linea", + "text": "Torna in Treni, seleziona il treno, scegli la linea e premi Assegna: il treno esce dal deposito e comincia il servizio.", + "highlight": "trains:assign", + "fallback": "toolbar:trains", + "done": { "counter": "trainsOnLine", "atLeast": 1 } + }, + { + "id": "market", + "title": "Il Mercato globale", + "text": "Apri il Mercato: prezzi, offerta e domanda di ogni bene, la previsione e dove conviene vendere. Ti dice quali linee rendono di più.", + "highlight": "toolbar:market", + "done": { "panel": "market" } + }, + { + "id": "finance", + "title": "Le Finanze", + "text": "Apri le Finanze: conto economico per voce, rating e prestiti. Un prestito ben speso costruisce linee; troppi debiti abbassano il rating e alzano il tasso.", + "highlight": "toolbar:finance", + "done": { "panel": "finance" } + }, + { + "id": "climb", + "title": "La tua scalata", + "text": "Apri la Scalata (o fai clic sul livello in alto): i livelli della compagnia, che cosa sbloccano e che cosa manca per salire.", + "highlight": "toolbar:climb", + "done": { "panel": "climb" } + }, + { + "id": "tips", + "title": "Qualche consiglio", + "text": "Collega industrie che producono a chi consuma la loro merce e porta i lavoratori dalle città alle industrie. Tieni d'occhio le Officine: un treno trascurato si guasta. Controlla cassa e rating prima di indebitarti. Buon viaggio! Puoi riaprire il tutorial con F1." + } + ] +} diff --git a/client/RailEnterprise.Client/export_presets.cfg b/client/RailEnterprise.Client/export_presets.cfg index 7c4d18b..5fb12f2 100644 --- a/client/RailEnterprise.Client/export_presets.cfg +++ b/client/RailEnterprise.Client/export_presets.cfg @@ -6,7 +6,7 @@ runnable=true dedicated_server=false custom_features="" export_filter="all_resources" -include_filter="data/*.json, data/schema/*.json, assets/i18n/*.csv, assets/fonts/*.ttf, assets/fonts/OFL.txt" +include_filter="data/*.json, data/schema/*.json, assets/i18n/*.csv, assets/tutorial/*.json, assets/fonts/*.ttf, assets/fonts/OFL.txt" exclude_filter="" export_path="export/windows/RailEnterprise.exe" encryption_include_filters="" @@ -36,7 +36,7 @@ runnable=true dedicated_server=false custom_features="" export_filter="all_resources" -include_filter="data/*.json, data/schema/*.json, assets/i18n/*.csv, assets/fonts/*.ttf, assets/fonts/OFL.txt" +include_filter="data/*.json, data/schema/*.json, assets/i18n/*.csv, assets/tutorial/*.json, assets/fonts/*.ttf, assets/fonts/OFL.txt" exclude_filter="" export_path="export/linux/RailEnterprise.x86_64" encrypt_pck=false diff --git a/client/RailEnterprise.Client/scripts/Hud/Toolbar.cs b/client/RailEnterprise.Client/scripts/Hud/Toolbar.cs index b1c7548..7892aa1 100644 --- a/client/RailEnterprise.Client/scripts/Hud/Toolbar.cs +++ b/client/RailEnterprise.Client/scripts/Hud/Toolbar.cs @@ -48,6 +48,9 @@ public partial class Toolbar : PanelContainer } } + /// Pulsante di uno strumento (per l'evidenziazione del tutorial). + public Control? ButtonFor(Tool tool) => _buttons.GetValueOrDefault(tool); + public void Select(Tool tool) { Current = tool; diff --git a/client/RailEnterprise.Client/scripts/Hud/TopBar.cs b/client/RailEnterprise.Client/scripts/Hud/TopBar.cs index 89bae21..fab2b26 100644 --- a/client/RailEnterprise.Client/scripts/Hud/TopBar.cs +++ b/client/RailEnterprise.Client/scripts/Hud/TopBar.cs @@ -2,6 +2,8 @@ using Godot; using RailEnterprise.Client.App; using RailEnterprise.Client.Net; using RailEnterprise.Client.Panels; +using RailEnterprise.Core.Common; +using RailEnterprise.Core.Economy; using RailEnterprise.Protocol.Messages; using static RailEnterprise.Client.App.Localization; @@ -27,6 +29,13 @@ public partial class TopBar : PanelContainer private readonly ColorRect _serverDot = new() { CustomMinimumSize = new Vector2(10, 10) }; private readonly List