mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-16 10:35:08 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1071a6e611 | ||
|
|
acf75bf118 | ||
|
|
8594e628f4 |
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
implementation('com.github.GTNewHorizons:NotEnoughItems:2.8.14-GTNH:dev')
|
||||
implementation('com.github.GTNewHorizons:NotEnoughItems:2.7.91-GTNH:dev')
|
||||
|
||||
shadowImplementation('au.com.bytecode:opencsv:2.4')
|
||||
}
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.43'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.44'
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
package mcp.mobius.waila.api;
|
||||
|
||||
public interface IWailaVariableWidthTooltipRenderer extends IWailaTooltipRenderer {
|
||||
|
||||
void setMaxStringW(int width);
|
||||
|
||||
int getMaxStringW();
|
||||
|
||||
}
|
||||
@@ -21,7 +21,6 @@ import org.lwjgl.opengl.GL11;
|
||||
|
||||
import mcp.mobius.waila.api.IWailaCommonAccessor;
|
||||
import mcp.mobius.waila.api.IWailaTooltipRenderer;
|
||||
import mcp.mobius.waila.api.IWailaVariableWidthTooltipRenderer;
|
||||
import mcp.mobius.waila.api.impl.ConfigHandler;
|
||||
import mcp.mobius.waila.api.impl.DataAccessorCommon;
|
||||
import mcp.mobius.waila.api.impl.ModuleRegistrar;
|
||||
@@ -41,7 +40,6 @@ public class Tooltip {
|
||||
|
||||
ArrayList<Renderable> elements = new ArrayList<>();
|
||||
ArrayList<Renderable> elements2nd = new ArrayList<>();
|
||||
ArrayList<Renderable> elements3rd = new ArrayList<>();
|
||||
|
||||
int w, h, x, y, ty;
|
||||
int offsetX;
|
||||
@@ -183,10 +181,7 @@ public class Tooltip {
|
||||
renderer,
|
||||
new Point(offsetX, offsetY),
|
||||
renderMatcher.group("args").split(","));
|
||||
if (renderer instanceof IWailaVariableWidthTooltipRenderer) {
|
||||
((IWailaVariableWidthTooltipRenderer) renderable.renderer).setMaxStringW(maxStringW);
|
||||
this.elements3rd.add(renderable);
|
||||
} else this.elements2nd.add(renderable);
|
||||
this.elements2nd.add(renderable);
|
||||
}
|
||||
} else if (iconMatcher.find()) {
|
||||
renderable = new Renderable(
|
||||
@@ -249,6 +244,5 @@ public class Tooltip {
|
||||
|
||||
public void draw2nd() {
|
||||
for (Renderable r : this.elements2nd) r.draw(accessor, x + offsetX, y + ty);
|
||||
for (Renderable r : this.elements3rd) r.draw(accessor, x + offsetX, y + ty);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user