Skip to content

Commit 84795de

Browse files
committed
Make settings a texture button
1 parent adfa858 commit 84795de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/io/github/techstreet/dfscript/screen/script/ScriptEditScreen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public ScriptEditScreen(Script script) {
5050
int index = 0;
5151
int indent = 0;
5252

53-
CButton settings = new CButton(37, y, 46, 8, "Settings", () -> {
53+
CButton settings = new CTexturedButton(120-8, y, 8, 8, DFScript.MOD_ID + ":settings.png", () -> {
5454
DFScript.MC.setScreen(new ScriptSettingsScreen(this.script, true));
55-
});
55+
}, 0, 0, 1, 0.5f, 0, 0.5f);
5656

5757
panel.add(settings);
5858

0 commit comments

Comments
 (0)