Skip to content

Conversation

@FrostyFire1
Copy link
Member

@FrostyFire1 FrostyFire1 commented Nov 2, 2025

This port comes with the first implementation of new parameters. Instead of the old 40 button array you get a separate panel with titled buttons that open small panels that let you edit the chosen parameter.

2025-11-02.19-48-12.mp4

Besides porting the multiblock to mui2 i added a few features:

  1. A ProgressBarWidget that represents the tower's real-time load. It's somewhat jittery on low max amperage but the assumption here is that you normally use the allowed 224A so i don't think the jitter is that bad
  2. A load over time chart. Measurement frequency and history is adjustable.
2025-10-26.01-04-09.mp4
  1. A minimap panel. It's a 17x17 grid; Each square is a chunk on a north-locked "map", with the tesla chunk in the middle. Chunks are colored based on how much amperage is being used in respect to the tower's max amperage.
2025-10-27.23-50-59.mp4

The transfer radius parameter has an upper bound of Integer.MAX_VALUE; This is intentional because that's how the current tesla behaves. The radius will be capped in the tesla rework, which is not the subject of this PR.

@FrostyFire1 FrostyFire1 added New Feature Add something new. Please explain in detail how it works. Chore Buildscript update, dep update, adaptation to trivial breaking changes, etc. labels Nov 2, 2025
@FrostyFire1 FrostyFire1 marked this pull request as ready for review November 3, 2025 17:46
@FrostyFire1 FrostyFire1 added ✔️ Tested on Server This Pull Request has been tested in a Server/Client setup. 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta labels Nov 3, 2025
@Dream-Master Dream-Master requested a review from a team November 3, 2025 18:09
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2025

#5293

Copy link
Member

@chrombread chrombread left a comment

Choose a reason for hiding this comment

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

some feedback. code makes sense more or less (and the chart widgets might be able to be put into the library itself)

}

@Override
protected Flow createPanelGap(ModularPanel parent, PanelSyncManager syncManager) {
Copy link
Member

Choose a reason for hiding this comment

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

this might need to get changed after the pcb factory pr gets merged, since that changes how the gap is structured (although this might still work

null))
.size(225, 150)
.widgetTheme(GTWidgetThemes.TESLA_TOWER_CHART)
.renderTextureWithAlpha(0.05f)
Copy link
Member

Choose a reason for hiding this comment

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

this can probably be changed / removed with new modularui2 pr;s.


private boolean renderMinMaxText = true;

private boolean renderTextureWithAlpha = false;
Copy link
Member

Choose a reason for hiding this comment

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

this stuff can probably go, as i said above.

loadLegacyParameters(nbt);
return;
}
((DoubleParameter) parameterMap.get("hysteresisLow")).setValue(nbt.getDouble("hysteresisLow"));
Copy link
Member

Choose a reason for hiding this comment

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

maybe the string values for these keys can be made into private static final constants. but this is a nitpick

}

@Override
protected Flow createPanelGap(ModularPanel parent, PanelSyncManager syncManager) {
Copy link
Member

Choose a reason for hiding this comment

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

Batch mode, input sep, voiding, and recipe lock are not usable and do not make sense for this machine. should they be toggled off to not be enabled in the UI?

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

Labels

Chore Buildscript update, dep update, adaptation to trivial breaking changes, etc. 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta ✔️ Tested on Server This Pull Request has been tested in a Server/Client setup. New Feature Add something new. Please explain in detail how it works.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants