Skip to content

Commit

Permalink
Roll back NEWT visualizer setting (#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler authored Dec 28, 2024
1 parent 00a8ab1 commit d6fc29f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ugs-core/src/resources/MessagesBundle_en_US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ platform.window.visualizer.tooltip = 3D view of the current operation.
platform.window.fileBrowser = File Browser
platform.window.fileBrowser.tooltip = Load a folder to view and work with files.
platform.visualizer.edit.options.title = Visualizer options
platform.visualizer.legacy = Use legacy rendering engine
platform.visualizer.legacy.desc = Use the old legacy rendering engine in case of compatibility issues
platform.visualizer.use.legacy = Use legacy rendering engine
platform.visualizer.use.legacy.desc = Use the old legacy rendering engine in case of compatibility issues
platform.visualizer.newt.samples = Antialiasing samples
platform.visualizer.newt.samples.desc = How many antialiasing samples to make (will not be used with legacy rendering engine)
platform.visualizer.color.background = Background Color
Expand Down
4 changes: 2 additions & 2 deletions ugs-core/src/resources/MessagesBundle_sv_SE.properties
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ platform.window.visualizer.tooltip = 3D-vy av aktuellt kommando
platform.window.fileBrowser = Filhanterare
platform.window.fileBrowser.tooltip = Ladda en mapp för att visa och arbeta med filer.
platform.visualizer.edit.options.title = Visualiseringsinställningar
platform.visualizer.legacy = Använd den äldre renderingsmotorn
platform.visualizer.legacy.desc = Använd den gamla äldre renderingsmotorn vid kompatibilitetsproblem
platform.visualizer.use.legacy = Använd den äldre renderingsmotorn
platform.visualizer.use.legacy.desc = Använd den gamla äldre renderingsmotorn vid kompatibilitetsproblem
platform.visualizer.color.background = Bakgrundsfärg
platform.visualizer.tool = Visa verktygets position
platform.visualizer.color.tool = Verktygsfärg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected void componentOpened() {
JPanel borderedPanel = new JPanel();
borderedPanel.setLayout(new BorderLayout());
borderedPanel.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY, 1));
if (VisualizerOptions.getBooleanOption(VisualizerOptions.VISUALIZER_OPTION_LEGACY, false)) {
if (VisualizerOptions.getBooleanOption(VisualizerOptions.VISUALIZER_OPTION_LEGACY, true)) {
borderedPanel.add(new VisualizationPanel(), BorderLayout.CENTER);
} else {
createAndAddNewtPanel(borderedPanel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ This file is part of Universal Gcode Sender (UGS).
*/
public class VisualizerOptions extends ArrayList<Option<?>> {

public static String VISUALIZER_OPTION_LEGACY = "platform.visualizer.legacy";
public static String VISUALIZER_OPTION_LEGACY_DESC = "platform.visualizer.legacy.desc";
public static String VISUALIZER_OPTION_LEGACY = "platform.visualizer.use.legacy";
public static String VISUALIZER_OPTION_LEGACY_DESC = "platform.visualizer.use.legacy.desc";
public static String VISUALIZER_OPTION_NEWT_SAMPLES = "platform.visualizer.newt.samples";
public static String VISUALIZER_OPTION_NEWT_SAMPLES_DESC = "platform.visualizer.newt.samples.desc";

Expand Down Expand Up @@ -115,7 +115,7 @@ public class VisualizerOptions extends ArrayList<Option<?>> {
public static String VISUALIZER_OPTION_BOUNDARY_INVERT_DESC = "platform.visualizer.boundary.invert.desc";

public VisualizerOptions() {
add(getOption(VISUALIZER_OPTION_LEGACY, Localization.getString(VISUALIZER_OPTION_LEGACY_DESC), false));
add(getOption(VISUALIZER_OPTION_LEGACY, Localization.getString(VISUALIZER_OPTION_LEGACY_DESC), true));
add(getOption(VISUALIZER_OPTION_NEWT_SAMPLES, Localization.getString(VISUALIZER_OPTION_NEWT_SAMPLES_DESC), 4));

// GcodeRenderer clear color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void main(String[] args) throws Exception {
private void start() throws Exception {
setPreferredSize(new Dimension(1024, 768));
setLayout(new BorderLayout());
VisualizerOptions.setBooleanOption(VisualizerOptions.VISUALIZER_OPTION_LEGACY, false);
VisualizerOptions.setBooleanOption(VisualizerOptions.VISUALIZER_OPTION_LEGACY, true);
Visualizer2TopComponent visualizer = new Visualizer2TopComponent();
add(visualizer, BorderLayout.CENTER);
visualizer.componentOpened();
Expand Down

0 comments on commit d6fc29f

Please sign in to comment.