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:
commit
9d08d2d172
@ -220,7 +220,7 @@ namespace XNodeEditor {
|
|||||||
for (int i = 0; i < instancePorts.Count(); i++) {
|
for (int i = 0; i < instancePorts.Count(); i++) {
|
||||||
GUILayout.BeginHorizontal();
|
GUILayout.BeginHorizontal();
|
||||||
// 'Remove' button
|
// 'Remove' button
|
||||||
if (GUILayout.Button("-", GUILayout.Width(20))) {
|
if (GUILayout.Button("-", EditorStyles.miniButton, GUILayout.ExpandWidth(false))) {
|
||||||
// Clear the removed ports connections
|
// Clear the removed ports connections
|
||||||
instancePorts[i].ClearConnections();
|
instancePorts[i].ClearConnections();
|
||||||
// Move following connections one step up to replace the missing connection
|
// Move following connections one step up to replace the missing connection
|
||||||
@ -270,7 +270,7 @@ namespace XNodeEditor {
|
|||||||
GUILayout.BeginHorizontal();
|
GUILayout.BeginHorizontal();
|
||||||
GUILayout.FlexibleSpace();
|
GUILayout.FlexibleSpace();
|
||||||
// 'Add' button
|
// 'Add' button
|
||||||
if (GUILayout.Button("+", GUILayout.Width(20))) {
|
if (GUILayout.Button("+", EditorStyles.miniButton, GUILayout.ExpandWidth(false))) {
|
||||||
|
|
||||||
string newName = fieldName + " 0";
|
string newName = fieldName + " 0";
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user