mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-26 23:57:25 +01:00
Better management of scrolling in TMX Maps editor's Replacement
simulator.
This commit is contained in:
1
packaging/ATCS_latest
Normal file
1
packaging/ATCS_latest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
v0.6.4
|
||||||
@@ -206,11 +206,12 @@ public class TMXMapEditor extends Editor implements TMXMap.MapChangedOnDiskListe
|
|||||||
|
|
||||||
JScrollPane tmxScroller = new JScrollPane(getTmxEditorPane(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
|
JScrollPane tmxScroller = new JScrollPane(getTmxEditorPane(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
|
||||||
JScrollPane xmlScroller = new JScrollPane(getXmlEditorPane(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
|
JScrollPane xmlScroller = new JScrollPane(getXmlEditorPane(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
|
||||||
JScrollPane replScroller = new JScrollPane(getReplacementSimulatorPane(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
|
//JScrollPane replScroller = new JScrollPane(getReplacementSimulatorPane(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
|
||||||
xmlScroller.getVerticalScrollBar().setUnitIncrement(16);
|
xmlScroller.getVerticalScrollBar().setUnitIncrement(16);
|
||||||
editorTabsHolder.add("TMX", tmxScroller);
|
editorTabsHolder.add("TMX", tmxScroller);
|
||||||
editorTabsHolder.add("XML", xmlScroller);
|
editorTabsHolder.add("XML", xmlScroller);
|
||||||
editorTabsHolder.add("Replacements", replScroller);
|
//editorTabsHolder.add("Replacements", replScroller);
|
||||||
|
editorTabsHolder.add("Replacements", getReplacementSimulatorPane());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -785,7 +786,7 @@ public class TMXMapEditor extends Editor implements TMXMap.MapChangedOnDiskListe
|
|||||||
activateAndViewPane.setLayout(new JideBoxLayout(activateAndViewPane, JideBoxLayout.LINE_AXIS));
|
activateAndViewPane.setLayout(new JideBoxLayout(activateAndViewPane, JideBoxLayout.LINE_AXIS));
|
||||||
|
|
||||||
activateAndViewPane.add(areasActivationPane, JideBoxLayout.FIX);
|
activateAndViewPane.add(areasActivationPane, JideBoxLayout.FIX);
|
||||||
activateAndViewPane.add(viewer, JideBoxLayout.VARY);
|
activateAndViewPane.add(new JScrollPane(viewer), JideBoxLayout.VARY);
|
||||||
|
|
||||||
replacementSimulator.add(walkableVisibleBox, JideBoxLayout.FIX);
|
replacementSimulator.add(walkableVisibleBox, JideBoxLayout.FIX);
|
||||||
replacementSimulator.add(activateAndViewPane, JideBoxLayout.VARY);
|
replacementSimulator.add(activateAndViewPane, JideBoxLayout.VARY);
|
||||||
|
|||||||
Reference in New Issue
Block a user