// Token: 0x06003315 RID: 13077 RVA: 0x0014BE1C File Offset: 0x0014A21C public static string drawField(Rect area, FontStyle fontStyle, TextAnchor fontAlignment, int fontSize, Color color_0, Color color_1, string text, int maxLength, string hint, char replace) { GUI.skin.textField.fontStyle = fontStyle; GUI.skin.textField.alignment = fontAlignment; GUI.skin.textField.fontSize = SleekRender.getScaledFontSize(fontSize); GUI.backgroundColor = color_0; GUI.contentColor = color_1; if (SleekRender.allowInput) { text = GUI.PasswordField(area, text, replace, maxLength); if (text == null) { text = string.Empty; } if (text.Length < 1) { SleekRender.drawLabel(area, fontStyle, fontAlignment, fontSize, false, color_1 * 0.5f, hint); } return(text); } SleekRender.drawBox(area, color_0); string text2 = string.Empty; for (int i = 0; i < text.Length; i++) { text2 += replace; } SleekRender.drawLabel(area, fontStyle, fontAlignment, fontSize, false, color_1, text2); return(text); }
// Token: 0x06003312 RID: 13074 RVA: 0x0014BBA4 File Offset: 0x00149FA4 public static void drawLabel(Rect area, FontStyle fontStyle, TextAnchor fontAlignment, int fontSize, bool isRich, Color color, string text) { GUI.skin.label.fontStyle = fontStyle; GUI.skin.label.alignment = fontAlignment; GUI.skin.label.fontSize = SleekRender.getScaledFontSize(fontSize); if (isRich) { bool richText = GUI.skin.label.richText; GUI.skin.label.richText = isRich; GUI.Label(area, text); GUI.skin.label.richText = richText; } else { Color outline = SleekRender.OUTLINE; outline.a *= color.a; GUI.contentColor = outline; area.x -= 1f; GUI.Label(area, text); area.x += 2f; GUI.Label(area, text); area.x -= 1f; area.y -= 1f; GUI.Label(area, text); area.y += 2f; GUI.Label(area, text); area.y -= 1f; GUI.contentColor = color; GUI.Label(area, text); } }
// Token: 0x06003314 RID: 13076 RVA: 0x0014BD18 File Offset: 0x0014A118 public static string drawField(Rect area, FontStyle fontStyle, TextAnchor fontAlignment, int fontSize, Color color_0, Color color_1, string text, int maxLength, string hint, bool multiline) { GUI.skin.textArea.fontStyle = fontStyle; GUI.skin.textArea.alignment = fontAlignment; GUI.skin.textArea.fontSize = SleekRender.getScaledFontSize(fontSize); GUI.skin.textField.fontStyle = fontStyle; GUI.skin.textField.alignment = fontAlignment; GUI.skin.textField.fontSize = SleekRender.getScaledFontSize(fontSize); GUI.backgroundColor = color_0; GUI.contentColor = color_1; if (SleekRender.allowInput) { if (multiline) { text = GUI.TextArea(area, text, maxLength); } else { text = GUI.TextField(area, text, maxLength); } if (text == null) { text = string.Empty; } if (text.Length < 1) { SleekRender.drawLabel(area, fontStyle, fontAlignment, fontSize, false, color_1 * 0.5f, hint); } return(text); } SleekRender.drawBox(area, color_0); SleekRender.drawLabel(area, fontStyle, fontAlignment, fontSize, false, color_1, text); return(text); }
// Token: 0x06003311 RID: 13073 RVA: 0x0014B990 File Offset: 0x00149D90 public static void drawLabel(Rect area, FontStyle fontStyle, TextAnchor fontAlignment, int fontSize, GUIContent content2, Color color, GUIContent content) { if (content.tooltip != null && content.tooltip.Length > 0 && area.Contains(Event.current.mousePosition)) { SleekRender.tooltip = color; } GUI.skin.label.fontStyle = fontStyle; GUI.skin.label.alignment = fontAlignment; GUI.skin.label.fontSize = SleekRender.getScaledFontSize(fontSize); bool richText = GUI.skin.label.richText; GUI.skin.label.richText = (content2 != null); Color outline = SleekRender.OUTLINE; outline.a *= color.a; GUI.contentColor = outline; if (content2 == null) { area.x -= 1f; GUI.Label(area, content); area.x += 2f; GUI.Label(area, content); area.x -= 1f; area.y -= 1f; GUI.Label(area, content); area.y += 2f; GUI.Label(area, content); area.y -= 1f; } else { area.x -= 1f; GUI.Label(area, content2); area.x += 2f; GUI.Label(area, content2); area.x -= 1f; area.y -= 1f; GUI.Label(area, content2); area.y += 2f; GUI.Label(area, content2); area.y -= 1f; } GUI.contentColor = color; GUI.Label(area, content); GUI.skin.label.richText = richText; }