Skip to content

Commit

Permalink
add overrides for ge inventory glow
Browse files Browse the repository at this point in the history
  • Loading branch information
raiyni committed Jun 3, 2024
1 parent ec3f7f3 commit bd1dc26
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
6 changes: 6 additions & 0 deletions src/main/java/melky/resourcepacks/overrides/Overrides.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ protected WidgetOverride walkChildren(WidgetOverride parent, Map<String, Object>
var node = parent;
var path = parent.getName();

if (map.containsKey(INTERFACE))
{
node = node.withInterfaceId(((Long)map.get(INTERFACE)).intValue());
map.remove(INTERFACE);
}

if (map.containsKey(COLOR))
{
int c = ((Long) map.get(COLOR)).intValue();
Expand Down
35 changes: 23 additions & 12 deletions src/main/resources/overrides/overrides.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,22 +166,19 @@ dynamicChildren=[1]

########################################

# Add offer pulsing 811 [0-4]

[ge]
interface=465

[ge.slot]
scripts=[803]
children=[7, 8, 9, 10, 11, 12, 13, 14]

[ge.slot.border.inner]
color=0x5a5245
opacity=0
dynamicChildren=[0, 1]
[ge.inventory]
interface=467

[ge.slot.border.outer]
color=0x383023
opacity=0
dynamicChildren=[3, 4]
[ge.inventory.glow]
scripts=[811]
children=[1]
color=0xffff00
dynamicChildren=[0, 1, 2, 3]

[ge.offer]
scripts=[773]
Expand Down Expand Up @@ -210,6 +207,20 @@ dynamicChildren=[0, 2, 9, 12, 19]
children=[15]
dynamicChildren=[1, 3, 10, 13, 20]

[ge.slot]
scripts=[803]
children=[7, 8, 9, 10, 11, 12, 13, 14]

[ge.slot.border.inner]
color=0x5a5245
opacity=0
dynamicChildren=[0, 1]

[ge.slot.border.outer]
color=0x383023
opacity=0
dynamicChildren=[3, 4]

########################################

[grouping_tab]
Expand Down

0 comments on commit bd1dc26

Please sign in to comment.