diff --git a/VirtueSky/Advertising/Editor/AdsWindowEditor.cs b/VirtueSky/Advertising/Editor/AdsWindowEditor.cs index f8fea428..41158f40 100644 --- a/VirtueSky/Advertising/Editor/AdsWindowEditor.cs +++ b/VirtueSky/Advertising/Editor/AdsWindowEditor.cs @@ -55,7 +55,7 @@ private void OnGUI() GUILayout.Space(10); Handles.color = Color.black; - Handles.DrawLine(new Vector3(0, GUILayoutUtility.GetLastRect().y + 10), + Handles.DrawAAPolyLine(3, new Vector3(0, GUILayoutUtility.GetLastRect().y + 10), new Vector3(position.width, GUILayoutUtility.GetLastRect().y + 10)); GUILayout.Space(10); isSetupTheme = GUILayout.Toggle(isSetupTheme, "Setup Theme"); diff --git a/VirtueSky/ControlPanel/ControlPanelWindowEditor.cs b/VirtueSky/ControlPanel/ControlPanelWindowEditor.cs index bf787ecb..1e9a7c10 100644 --- a/VirtueSky/ControlPanel/ControlPanelWindowEditor.cs +++ b/VirtueSky/ControlPanel/ControlPanelWindowEditor.cs @@ -50,13 +50,14 @@ private void OnGUI() GUI.contentColor = ColorTextContent.ToColor(); GUILayout.Label("SUNFLOWER CONTROL PANEL", EditorStyles.boldLabel); GUI.backgroundColor = ColorContent.ToColor(); - GuiLine(2, Color.black); + Handles.color = Color.black; + Handles.DrawAAPolyLine(4, new Vector3(0, 30), new Vector3(position.width, 30)); + // GuiLine(2, Color.black); GUILayout.Space(10); GUILayout.BeginHorizontal(); GUILayout.BeginVertical(GUILayout.Width(200)); DrawButton(); - Handles.color = Color.black; - Handles.DrawLine(new Vector3(210, 0), new Vector3(210, position.height)); + Handles.DrawAAPolyLine(4, new Vector3(210, 0), new Vector3(210, position.height)); GUILayout.EndVertical(); DrawContent(); GUILayout.EndHorizontal(); @@ -181,6 +182,9 @@ void OnDrawAdvertising() AdsWindowEditor.OpenAdSettingsWindows(); } + GUILayout.Space(10); + Handles.DrawAAPolyLine(3, new Vector3(210, GUILayoutUtility.GetLastRect().y + 10), + new Vector3(position.width, GUILayoutUtility.GetLastRect().y + 10)); GUILayout.Space(10); isFieldMax = GUILayout.Toggle(isFieldMax, "Max"); if (isFieldMax) @@ -216,6 +220,9 @@ void OnDrawAdvertising() } } + GUILayout.Space(10); + Handles.DrawAAPolyLine(3, new Vector3(210, GUILayoutUtility.GetLastRect().y + 10), + new Vector3(position.width, GUILayoutUtility.GetLastRect().y + 10)); GUILayout.Space(10); isFielAdmob = GUILayout.Toggle(isFielAdmob, "Admob"); if (isFielAdmob) @@ -677,8 +684,8 @@ void OnDrawAbout() Application.OpenURL("https://github.com/VirtueSky/sunflower/wiki"); } - Handles.DrawLine(new Vector3(210, 195), new Vector3(position.width, 195)); - GUILayout.Space(10); + Handles.DrawAAPolyLine(3, new Vector3(210, 195), new Vector3(position.width, 195)); + GUILayout.Space(20); GUILayout.Label("SETUP THEME", EditorStyles.boldLabel); GUILayout.Space(10); ColorContent = (CustomColor)EditorGUILayout.EnumPopup("Color Content:", ColorContent); diff --git a/VirtueSky/Iap/Editor/IapWindowEditor.cs b/VirtueSky/Iap/Editor/IapWindowEditor.cs index 69e6cbcb..deb31195 100644 --- a/VirtueSky/Iap/Editor/IapWindowEditor.cs +++ b/VirtueSky/Iap/Editor/IapWindowEditor.cs @@ -59,7 +59,7 @@ private void OnGUI() _editor.OnInspectorGUI(); GUILayout.Space(10); Handles.color = Color.black; - Handles.DrawLine(new Vector3(0, GUILayoutUtility.GetLastRect().y + 10), + Handles.DrawAAPolyLine(3, new Vector3(0, GUILayoutUtility.GetLastRect().y + 10), new Vector3(position.width, GUILayoutUtility.GetLastRect().y + 10)); GUILayout.Space(10); isSetupTheme = GUILayout.Toggle(isSetupTheme, "Setup Theme");