mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-18 06:13:55 -07:00
Add config option to display the loading screen stage description. Add tip functions for future use, refs D1730. Harmonize coordinates. Differential Revision: https://code.wildfiregames.com/D2418 This was SVN commit r23150.
14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
/**
|
|
* This class is concerned with chosing and displaying quotes from historical figures.
|
|
*/
|
|
class QuoteDisplay
|
|
{
|
|
constructor()
|
|
{
|
|
Engine.GetGUIObjectByName("quoteText").caption =
|
|
translate(pickRandom(
|
|
Engine.ReadFileLines(this.File).filter(line => line)));
|
|
}
|
|
}
|
|
|
|
QuoteDisplay.prototype.File = "gui/text/quotes.txt";
|