1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-02-06 15:24:55 +08:00

Suggestion, better looking buttons for InstancePortList

This commit is contained in:
Simon Rodriguez 2018-09-19 09:04:58 +02:00
parent ff97cc4494
commit fc0f1983e0

View File

@ -220,7 +220,7 @@ namespace XNodeEditor {
for (int i = 0; i < instancePorts.Count(); i++) {
GUILayout.BeginHorizontal();
// 'Remove' button
if (GUILayout.Button("-", GUILayout.Width(20))) {
if (GUILayout.Button("-", EditorStyles.miniButton, GUILayout.ExpandWidth(false))) {
// Clear the removed ports connections
instancePorts[i].ClearConnections();
// Move following connections one step up to replace the missing connection
@ -270,7 +270,7 @@ namespace XNodeEditor {
GUILayout.BeginHorizontal();
GUILayout.FlexibleSpace();
// 'Add' button
if (GUILayout.Button("+", GUILayout.Width(20))) {
if (GUILayout.Button("+", EditorStyles.miniButton, GUILayout.ExpandWidth(false))) {
string newName = fieldName + " 0";
int i = 0;