Browse Source

Loading screen flavour texts

bolt_update
Laurids Jeppe 3 years ago
parent
commit
7c5481f533
4 changed files with 145 additions and 0 deletions
  1. +14
    -0
      Assets/GWConquest/Resources/Database/LoadingScreenTexts.csv
  2. +7
    -0
      Assets/GWConquest/Resources/Database/LoadingScreenTexts.csv.meta
  3. +96
    -0
      Assets/GWConquest/Resources/LoadingScreen.prefab
  4. +28
    -0
      Assets/GWConquest/Scripts/UI/LoadingScreen.cs

+ 14
- 0
Assets/GWConquest/Resources/Database/LoadingScreenTexts.csv View File

@ -0,0 +1,14 @@
English,Deutsch
"The center of the Republic was formed after the unification by the 3 core worlds, Methaphor, Krigena and Fethaphor. With the invasion of the Dominion, however, this was to change abruptly.","Das Zentrum der Republik bildeten nach der Einigung die 3 Kernwelten, Methaphor, Krigena und Fethaphor. Mit der Invasion des Dominions sollte sich das jedoch schlagartig ändern."
What exactly happened on Rokurant before the great arcologies were built is not known. What force could devastate a planet surface like this?,Was genau auf Rokurant geschah bevor die großen Arkologien erbaut wurden ist nicht bekannt. Welche Kraft könnte eine Planetenoberfläche so verheeren?
The surface of Zami is shrouded in a dense fog of gases that covers the planet's continents like a cloak. What lies beneath is a well-kept secret.,"Die Oberfläche von Zami ist in einen dichten Nebel aus Gasen gehüllt, der sich wie ein Mantel über die Kontinente des Planeten legt. Was sich darunter befindet ist ein gut gehütetes Geheimnis."
"The 9th Reserve Army and its attached 21st Reserve Fleet did not take part in the fighting around the core worlds. On a remote planet, however, they were to meet a far weightier fate.",Die 9th Reserve Army und die ihr angeschlossene 21st Reserve Fleet nahmen nicht an den Kampfhandlungen um die Kernwelten teil. Auf einem abgelegenen Planeten sollte ihnen jedoch ein weitaus gewichtigeres Schicksal zu teil werden.
"On the advice of the permanent representative of Rimspace Station, the Republic Council dispatched the frigate Contradorr, led by Jorus Solaar, to the silent rim shortly before hostilities began. From this trip, Captain Solaar was to return changed. ",Auf Anraten des ständigen Vertreters der Rimspace Station entsandte der Republikanische Rat kurz vor Beginn der Kampfhandlungen die (Fregatte?) Contradorr unter Führung von Jorus Solaar an den stillen Rand. Von dieser Reise sollte Captain Solaar verändert zurückkehren.
"After more than a decade of seclusion, the exile returned to active duty. His cold heart was finally turned to stone during his time on the ice world Gargamont 7.",Nach über einer Dekade der Abgeschiedenheit kehrte der Exilant in den Aktiven Dienst zurück. Sein kaltes Herz wurde in seiner Zeit auf der Eiswelt Gargamont 7 nun endgültig zu Stein.
"The lone wolves known as black hunters from the dark forests of Caer Bannoq were slow to adapt to their new hunting grounds, although monsters and murderers remained their targets.","Die als schwarze Jäger bekannten Einzelkämpfer aus den dunklen Wäldern von Caer Bannoq gewöhnten sich nur langsam an ihre neuen Jagdgebiete, wohlgleich auch Monster und Mörder ihre Abschussziele blieben."
"The peaceful world of Voteine stayed out of the fighting for the first few months, taking no sides. All that was to change abruptly when burning debris and shuttles with fiery tails lit up the sky of their homeworld.",Die friedlebende Welt von Voteine hielt sich in den ersten Monaten aus sämtlichen Kampfhandlungen und heraus und schlug sich auf keine Seite. All das sollte sich schlagartig ändern als brenennde Trümmer und Landefähren mit feurigen Schweifen den Himmel ihrer Heimatwelt erhellten.
Mimey Catai left her homeworld of Spice when she was still a child to seek her fortune on the core worlds of the Republic. She never imagined the terrible conditions under which she would return.,"Mimey Catai verließ ihre Heimatwelt Spice, als sie noch ein Kind war, um ihr Glück auf den Kernwelten der Republik zu suchen. Niemals hätte sie sich träumen lassen, unter welch schrecklichen Bedingungen sie einst zurückkehren würde."
"As the identity of the Republic Remnants' first front-line fighter became known outside the battlefield, inspired farmers on his homeworld of Vesparus banded together in so-called Free Corps.","Als die Identität des ersten Frontkämpfers der Republic Remnants auch außerhalb des Kampfgebietes bekannt wurde, schlossen sich inspirierte Farmer seiner Heimatwelt Vesparus in sogenannten Freikorps zusammen."
"For generations, explorers and cult members of the Veil have lived on Rimspace Station. With the beginning of the Great War, the Veil also seems to be undergoing change. Was the wait perhaps not in vain after all?",Schon seit Generationen leben Forscher und Kultmitglieder des Veils auf der Rimspace Station. Mit Beginn des großen Krieges scheint auch der Veil in der Veränderung begriffen zu sein. War das Warten vielleicht doch nicht vergebens?
"The Wythler army was once considered an elite and brilliant force. After he came to power, everything was to change.",Die Armee der Wythler galt einst als eine elitäre und glänzvolle Macht. Nach seiner Machtübernahme sollte sich alles ändern.
"Alone in the open, the soldiers of the invisible front are acting away from the battlefields of the great war. However, their importance was to become dramatically apparent even before its end.",Allein auf weiter Flur sind die Soldaten der unsichtbaren Front abseits der Schlachtfelder des großen Krieges aktiv. Ihre Wichtigkeit sollte sich jedoch noch vor seinem Ende auf dramatische Weise zeigen.

+ 7
- 0
Assets/GWConquest/Resources/Database/LoadingScreenTexts.csv.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2d661543a4d7a984a8d0f9f70e9db108
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 96
- 0
Assets/GWConquest/Resources/LoadingScreen.prefab View File

@ -74,6 +74,100 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!1 &1362715112100091396
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6382341677815695634}
- component: {fileID: 387446613614813818}
- component: {fileID: 2351111094737925770}
- component: {fileID: 1703948550}
m_Layer: 5
m_Name: FlavourText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6382341677815695634
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1362715112100091396}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 8311443696121223797}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 50, y: 100}
m_SizeDelta: {x: -1100, y: 200}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &387446613614813818
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1362715112100091396}
m_CullTransparentMesh: 0
--- !u!114 &2351111094737925770
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1362715112100091396}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: c47f9c9ae53006b46bef8b5c48a002a5, type: 3}
m_FontSize: 31
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 4
m_MaxSize: 50
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text:
--- !u!114 &1703948550
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1362715112100091396}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.6862745}
m_EffectDistance: {x: 4, y: 4}
m_UseGraphicAlpha: 1
--- !u!1 &4660554819730309182 --- !u!1 &4660554819730309182
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -258,6 +352,7 @@ RectTransform:
- {fileID: 6859186835390797339} - {fileID: 6859186835390797339}
- {fileID: 9126601339738619102} - {fileID: 9126601339738619102}
- {fileID: 2569178274197209841} - {fileID: 2569178274197209841}
- {fileID: 6382341677815695634}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -357,6 +452,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 3b40f05b92aa3f34bad61e628ecb9401, type: 3} m_Script: {fileID: 11500000, guid: 3b40f05b92aa3f34bad61e628ecb9401, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
FlavourText: {fileID: 2351111094737925770}
--- !u!1 &8327271455031360902 --- !u!1 &8327271455031360902
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0


+ 28
- 0
Assets/GWConquest/Scripts/UI/LoadingScreen.cs View File

@ -1,15 +1,43 @@
using UnityEngine; using UnityEngine;
using UnityEngine.UI;
namespace GWConquest namespace GWConquest
{ {
public class LoadingScreen : MonoBehaviour public class LoadingScreen : MonoBehaviour
{ {
public Text FlavourText;
public static string[] flavourTexts;
public static void LoadFlavourTexts()
{
TextAsset database = Resources.Load<TextAsset>("Database/LoadingScreenTexts");
CSVFile csv = CSVFile.ParseCSV(database.text);
flavourTexts = new string[csv.Length];
for(int i = 0; i < csv.Length; i++)
{
var entry = csv.GetEntry(i);
flavourTexts[i] = entry.GetString("English");
}
}
public static void Show() public static void Show()
{ {
if(flavourTexts == null)
{
LoadFlavourTexts();
}
var prefab = Resources.Load<GameObject>("LoadingScreen"); var prefab = Resources.Load<GameObject>("LoadingScreen");
var go = Instantiate(prefab); var go = Instantiate(prefab);
DontDestroyOnLoad(go); DontDestroyOnLoad(go);
var comp = go.GetComponent<LoadingScreen>();
string randomText = flavourTexts[Random.Range(0, flavourTexts.Length)];
comp.FlavourText.text = randomText;
} }
public static void Dismiss() public static void Dismiss()


Loading…
Cancel
Save