Skip to content

Conversation

@LordIdra
Copy link
Contributor

@LordIdra LordIdra commented Jan 4, 2026

This PR prepares for the 'item menu' system I am planning to introduce. The central change is that buttons and pages are now more clearly separated. Previously, a page would have to supply an icon which could then be used by buttons linking to that page. This makes no sense for pages that do not have a button linking to them, which we are about to have a lot of, so I have changed pages to no longer have to supply an item for buttons linking to them.

Other changes:

  • Slightly reorganises guide pages to conform better to the new format (and also remove the whole thing in PylonCore with settings pages being added in the onEnable method)
  • Add shorthands to all pages to PylonGuide for ease of use

Copy link
Contributor

@OhmV-IR OhmV-IR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm cw & ig w one optional polishing thing

Comment on lines +19 to +26
addSetting(
TogglePlayerSettingButton(
pylonKey("toggle-vanilla-waila"),
toggle = { player ->
player.wailaConfig.vanillaWailaEnabled = !player.wailaConfig.vanillaWailaEnabled
},
isEnabled = { player -> player.wailaConfig.vanillaWailaEnabled }
))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice if you could get the dependency of the vanilla waila setting on waila overall being on working. (ie if I turn waila off, vanilla waila setting should respond & I can't turn on vanilla waila if waila is off overall)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought about this a bit, but tbh I don't know if there's necessarily a point, since it's already obvious that vanilla WAILA won't work if WAILA is disabled. and the correct/expected behaviour IMO is to preserve the 'vanilla WAILA' setting when you disable WAILA, rather than changing it

Copy link
Member

@Seggan Seggan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've got a lost of assuming where keys are, ex assuming page names are under pylon.<youraddon>.guide.page.<key>. I would want a way to allow me to use a different component, for example dynamically generated pages

@LordIdra
Copy link
Contributor Author

LordIdra commented Jan 5, 2026

You've got a lost of assuming where keys are, ex assuming page names are under pylon.<youraddon>.guide.page.<key>. I would want a way to allow me to use a different component, for example dynamically generated pages

Could you elaborate on what changes you want here? I'm confused on what exactly you're referring to. I know PageButton does this, the idea was you'd override that or use your own page button if you were doing something fancy enough to want to supply your own components

Copy link
Member

@Seggan Seggan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oop just read the code, nvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants