Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/loading/TipDisplay.js
Show All 11 Lines | constructor() | ||||
this.tipFiles = listFiles(this.TextPath, ".txt", false); | this.tipFiles = listFiles(this.TextPath, ".txt", false); | ||||
this.displayRandomTip(); | this.displayRandomTip(); | ||||
} | } | ||||
displayRandomTip() | displayRandomTip() | ||||
{ | { | ||||
let tipFile = pickRandom(this.tipFiles); | let tipFile = pickRandom(this.tipFiles); | ||||
tipFile = "snapping"; | |||||
bb: k | |||||
vladislavbelovUnsubmitted Not Done Inline ActionsI suppose for testing. vladislavbelov: I suppose for testing. | |||||
if (tipFile) | if (tipFile) | ||||
this.displayTip(tipFile); | this.displayTip(tipFile); | ||||
else | else | ||||
error("Failed to find any matching tips for the loading screen."); | error("Failed to find any matching tips for the loading screen."); | ||||
} | } | ||||
displayTip(tipFile) | displayTip(tipFile) | ||||
{ | { | ||||
Show All 25 Lines |
Wildfire Games · Phabricator
k