This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
current_time = time.localtime() | |
newline = "\n" | |
title = "log_" + time.strftime("%d-%m-%Y %H-%M-%S", current_time) + ".txt" | |
file = open(title, "w+") | |
current_time = time.localtime() | |
file.writelines(time.strftime('%d-%m-%Y %H:%M:%S', current_time)) | |
file.writelines(" - Initialised.") | |
file.writelines(newline) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
´╗┐using UnityEngine; | |
using TMPro; | |
using System.Collections.Generic; | |
namespace Vortex.TextLoader | |
{ | |
[RequireComponent(typeof(TextMeshProUGUI))] | |
public class TranslatableText : MonoBehaviour | |
{ | |
TextMeshProUGUI text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
´╗┐using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Text.RegularExpressions; | |
namespace Vortex.TextLoader | |
{ | |
[Serializable] | |
public enum Language | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
´╗┐using UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
namespace Vortex | |
{ | |
public class CreateLanguageFiles : MonoBehaviour | |
{ | |
[MenuItem("VortexDev/Text Loader/Create Language Files")] |