Skip to content

Commit

Permalink
update window editor
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtueSky committed Jan 5, 2024
1 parent 632f7c6 commit 729a75c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VirtueSky/Advertising/Editor/AdsWindowEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
17 changes: 12 additions & 5 deletions VirtueSky/ControlPanel/ControlPanelWindowEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion VirtueSky/Iap/Editor/IapWindowEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 729a75c

Please sign in to comment.