Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,25 @@ object GlintConfig : Config(
}

@Accordion(
title = "Held Item",
category = "Held Item"
)
var heldItem = GlintEffectOptions()

@Accordion(
title = "GUI Item",
category = "GUI Item"
)
var guiItem = GlintEffectOptions()

@Accordion(
title = "Dropped Item",
category = "Dropped Item"
)
var droppedItem = GlintEffectOptions()

@Accordion(
title = "Framed Item",
category = "Framed Item"
)
var framedItem = GlintEffectOptions()
Expand Down Expand Up @@ -148,6 +152,7 @@ object GlintConfig : Config(
var potionGlintBackground = false

@Accordion(
title = "Shiny Pots",
category = "Shiny Pots"
)
var shinyPots = GlintEffectOptions()
Expand Down Expand Up @@ -176,8 +181,9 @@ object GlintConfig : Config(
val subTree = getTree()?.get(id) as? Tree ?: return
for (field in GlintEffectOptions::class.java.declaredFields) {
if (field.isSynthetic) continue
if (subTree.get(field.name) !is Property<*>) continue
subTree.put(Properties.field<Any>(field = field, owner = target))
val subTreeChild = subTree.get(field.name)
if (subTreeChild !is Property<*>) continue
subTree.put(Properties.field<Any>(name = subTreeChild.title as String?, description = subTreeChild.description as String?, field = field, owner = target))
}
}

Expand Down
Loading