Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public enum EMenuFontId
- {
- None,
- txtLanguage,
- butNewGame,
- butMultiplayer,
- butLoad,
- butRatings,
- butSettings,
- butWiki,
- butCredits,
- butQuit,
- txtLoading,
- txtCompleted,
- txtVersion,
- titleNewUpdate,
- txtUpdateInfo,
- txtDoNotShow,
- butUpdate,
- butClose
- }
- [CreateAssetMenu(fileName = "New Menu", menuName = "Localization/Menu")]
- public class LanguageProfileMenu : ScriptableObject
- {
- [Header("Global settings")]
- public string languageName = "English";
- public SystemLanguage sysLanguage = SystemLanguage.English;
- public Font font;
- public int textFontSize = 30;
- [Header("Main menu")]
- public string butNewGame = "New Game";
- public string butMultiplayer = "Multiplayer";
- public string butLoad = "Load";
- public string butRatings = "Ratings";
- public string butSettings = "Settings";
- public string butWiki = "Wiki";
- public string butCredits = "Credits";
- public string butQuit = "Quit";
- public string txtLoading = "Loading";
- public string txtCompleted = "Completed";
- public string txtVersion = "version";
- public string txtCensored = "censored";
- [Header("New Update Window")]
- public string titleNewUpdate = "New Update";
- [TextArea(3, 10)]
- public string txtUpdateInfo;
- public string txtDoNotShow = "Do not show this again";
- public string butUpdate = "Update";
- public string butClose = "Close";
- public string GetText(EMenuFontId menuId)
- {
- switch(menuId)
- {
- case EMenuFontId.txtLanguage: return languageName;
- case EMenuFontId.butNewGame: return butNewGame;
- case EMenuFontId.butMultiplayer: return butMultiplayer;
- case EMenuFontId.butLoad: return butLoad;
- case EMenuFontId.butRatings: return butRatings;
- case EMenuFontId.butSettings: return butSettings;
- case EMenuFontId.butWiki: return butWiki;
- case EMenuFontId.butQuit: return butQuit;
- case EMenuFontId.txtLoading: return txtLoading;
- case EMenuFontId.txtCompleted: return txtCompleted;
- case EMenuFontId.txtVersion: return txtVersion;
- case EMenuFontId.titleNewUpdate: return titleNewUpdate;
- case EMenuFontId.txtUpdateInfo: return txtUpdateInfo;
- case EMenuFontId.txtDoNotShow: return txtDoNotShow;
- case EMenuFontId.butUpdate: return butUpdate;
- case EMenuFontId.butClose: return butClose;
- default: return "";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement