Minor editor/world processor fixes and tweaks (#10505)
* Rules search and info button tweaks * Tweak spawnunit and some searching (again) * Just revert a condition removal
This commit is contained in:
@@ -56,7 +56,7 @@ public class BannedContentDialog<T extends UnlockableContent> extends BaseDialog
|
||||
t.table(s -> {
|
||||
s.label(() -> "@search").padRight(10);
|
||||
var field = s.field(contentSearch, value -> {
|
||||
contentSearch = value;
|
||||
contentSearch = value.trim().replaceAll(" +", " ").toLowerCase();
|
||||
rebuildTables();
|
||||
}).get();
|
||||
s.button(Icon.cancel, Styles.emptyi, () -> {
|
||||
|
||||
@@ -757,7 +757,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
||||
|
||||
if(!Core.atlas.isFound(region) || !block.inEditor
|
||||
|| block.buildVisibility == BuildVisibility.debugOnly
|
||||
|| (!searchText.isEmpty() && !block.localizedName.toLowerCase().contains(searchText.toLowerCase()))
|
||||
|| (!searchText.isEmpty() && !block.localizedName.toLowerCase().contains(searchText.trim().replaceAll(" +", " ").toLowerCase()))
|
||||
) continue;
|
||||
|
||||
ImageButton button = new ImageButton(Tex.whiteui, Styles.clearNoneTogglei);
|
||||
|
||||
Reference in New Issue
Block a user