public DockWidgetScript() : base() { mParent = null; mBackgroundColor = new Color(1f, 1f, 1f, 1f); mImage = Assets.DockWidgets.Textures.icon; mTokenId = R.sections.DockWidgets.strings.Count; mContentTransform = null; mContentBackgroundImage = null; }
public DockWidgetScript() : base() { DebugEx.Verbose("Created DockWidgetScript object"); mParent = null; mBackgroundColor = Assets.Common.DockWidgets.Colors.background; mImage = Assets.Common.DockWidgets.Textures.icon.sprite; mTokenId = R.sections.DockWidgets.strings.Count; mContentTransform = null; mContentBackgroundImage = null; }
public DockWidgetScript() : base() { DebugEx.Verbose("Created DockWidgetScript object"); mParent = null; mBackgroundColor = Assets.Common.DockWidgets.Colors.background; mImage = Assets.Common.DockWidgets.Textures.icon.sprite; mTokenId = R.sections.DockWidgets.strings.Count; mContentTransform = null; mContentBackgroundImage = null; }
/// <summary> /// Return the string value associated with a particular resource ID. /// </summary> /// <returns>Localized string.</returns> /// <param name="id">String resource ID.</param> public static string GetString(R.sections.DockWidgets.strings id) { UnityTranslationInternal.Translator.LoadSection(R.sections.SectionID.DockWidgets, false); if ( UnityTranslationInternal.Translator.tokens[(int)R.sections.SectionID.DockWidgets + 1].selectedLanguage != null && UnityTranslationInternal.Translator.tokens[(int)R.sections.SectionID.DockWidgets + 1].selectedLanguage.stringValues[(int)id] != null ) { return(UnityTranslationInternal.Translator.tokens[(int)R.sections.SectionID.DockWidgets + 1].selectedLanguage.stringValues[(int)id]); } else { return(UnityTranslationInternal.Translator.tokens[(int)R.sections.SectionID.DockWidgets + 1].defaultLanguage.stringValues[(int)id]); } }
/// <summary> /// Return the string value associated with a particular resource ID, substituting the format arguments as defined in string.Format. /// </summary> /// <returns>Localized string.</returns> /// <param name="id">String resource ID.</param> /// <param name="formatArgs">Format arguments.</param> public static string GetString(R.sections.DockWidgets.strings id, params object[] formatArgs) { return(string.Format(GetString(id), formatArgs)); }