1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-21 01:36:03 +08:00

Merge pull request #69 from nostek/improvement/minibuttoninstanceportlist

Changed style in -/+ buttons in InstancePortList, looks a bit better.
This commit is contained in:
Thor Brigsted 2018-09-19 09:27:44 +02:00 committed by GitHub
commit 9d08d2d172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;