Skip to content

Commit

Permalink
make title filter match other instances
Browse files Browse the repository at this point in the history
fix ore dict filter popup
  • Loading branch information
ghzdude committed Jan 14, 2024
1 parent 2f93eb7 commit 9c72fdf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/gregtech/common/covers/CoverItemFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public ModularPanel buildUI(SidedPosGuiData guiData, GuiSyncManager guiSyncManag

return getItemFilter().createPanel(guiSyncManager)
.size(176, 188).padding(7)
.child(CoverWithUI.createTitleRow(getPickItem()).left(7))
.child(CoverWithUI.createTitleRow(getPickItem()).left(4))
.child(new Column().widthRel(1f).align(Alignment.TopLeft).top(22).coverChildrenHeight()
.child(new Row().coverChildren().marginBottom(4).left(0)
.child(createFilterModeButton(filteringMode, ItemFilterMode.FILTER_INSERT))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
package gregtech.common.covers.filter;

import com.cleanroommc.modularui.api.drawable.IKey;

import com.cleanroommc.modularui.drawable.UITexture;

import com.cleanroommc.modularui.screen.Tooltip;
import com.cleanroommc.modularui.widget.Widget;

import com.cleanroommc.modularui.widgets.CycleButtonWidget;

import gregtech.api.cover.CoverWithUI;
import gregtech.api.mui.GTGuiTextures;
import gregtech.api.mui.GTGuis;
import gregtech.api.unification.OreDictUnifier;
Expand All @@ -27,11 +19,15 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.text.TextFormatting;

import com.cleanroommc.modularui.api.drawable.IKey;
import com.cleanroommc.modularui.drawable.UITexture;
import com.cleanroommc.modularui.screen.ModularPanel;
import com.cleanroommc.modularui.screen.Tooltip;
import com.cleanroommc.modularui.value.sync.BooleanSyncValue;
import com.cleanroommc.modularui.value.sync.GuiSyncManager;
import com.cleanroommc.modularui.value.sync.StringSyncValue;
import com.cleanroommc.modularui.widget.ParentWidget;
import com.cleanroommc.modularui.widget.Widget;
import com.cleanroommc.modularui.widgets.SlotGroupWidget;
import com.cleanroommc.modularui.widgets.ToggleButton;
import com.cleanroommc.modularui.widgets.layout.Column;
Expand Down Expand Up @@ -174,7 +170,10 @@ public void initUI(Consumer<gregtech.api.gui.Widget> widgetGroup) {

@Override
public @NotNull ModularPanel createPopupPanel(GuiSyncManager syncManager) {
return GTGuis.createPopupPanel("ore_dict_filter", 100, 100);
return GTGuis.createPopupPanel("ore_dict_filter", 188, 76)
.padding(7)
.child(CoverWithUI.createTitleRow(getContainerStack()))
.child(createWidgets(syncManager).top(22));
}

@Override
Expand Down

0 comments on commit 9c72fdf

Please sign in to comment.