(1dd58d3ff) CustomInterface editor shows each label/signal as a separate textbox (w/ text picker option)

This commit is contained in:
Joonas Rikkonen
2019-04-15 12:10:05 +03:00
parent f20e82832f
commit 8290c577d8
6 changed files with 107 additions and 38 deletions
@@ -577,8 +577,13 @@ namespace Barotrauma
}
var componentEditor = new SerializableEntityEditor(listBox.Content.RectTransform, ic, inGame, showName: !inGame);
if (inGame) continue;
if (inGame)
{
ic.CreateEditingHUD(componentEditor);
componentEditor.Recalculate();
continue;
}
foreach (var kvp in ic.requiredItems)
{
@@ -611,6 +616,9 @@ namespace Barotrauma
};
}
}
ic.CreateEditingHUD(componentEditor);
componentEditor.Recalculate();
}
PositionEditingHUD();