Upload changes
This commit is contained in:
parent
6d230a8bb7
commit
5df6a9ad57
@ -6,10 +6,8 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="39e7c520-e505-4e53-a269-c949d7c9f5d1" name="Changes" comment="">
|
<list default="true" id="39e7c520-e505-4e53-a269-c949d7c9f5d1" name="Changes" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Scripts/Drawing/DrawingModernMonorail.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Scripts/Drawing/DrawingModernMonorail.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Scripts/Entities/EntityModernMonorail.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Scripts/Entities/EntityModernMonorail.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Scripts/Drawing/DrawingMonorail.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Scripts/Drawing/DrawingMonorail.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/Scripts/Forms/FormMonorailConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Scripts/Forms/FormMonorailConfig.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Scripts/Forms/FormMonorailConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Scripts/Forms/FormMonorailConfig.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Scripts/Wheels/DrawingWheels.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Scripts/Wheels/DrawingWheels.java" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@ -36,16 +34,16 @@
|
|||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent"><![CDATA[{
|
<component name="PropertiesComponent">{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"Application.Program.executor": "Run",
|
"Application.Program.executor": "Run",
|
||||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"git-widget-placeholder": "LabWorking__5",
|
"git-widget-placeholder": "LabWorking__5",
|
||||||
"kotlin-language-version-configured": "true",
|
"kotlin-language-version-configured": "true",
|
||||||
"last_opened_file_path": "C:/Учеба/AgarioGame"
|
"last_opened_file_path": "C:/Учеба/AgarioGame"
|
||||||
}
|
}
|
||||||
}]]></component>
|
}</component>
|
||||||
<component name="RunManager">
|
<component name="RunManager">
|
||||||
<configuration name="Program" type="Application" factoryName="Application">
|
<configuration name="Program" type="Application" factoryName="Application">
|
||||||
<option name="MAIN_CLASS_NAME" value="Scripts.Program" />
|
<option name="MAIN_CLASS_NAME" value="Scripts.Program" />
|
||||||
|
@ -12,7 +12,7 @@ public class EntityModernMonorail extends EntityMonorail {
|
|||||||
public boolean getMonorailTrack() {return _monorailTrack;}
|
public boolean getMonorailTrack() {return _monorailTrack;}
|
||||||
public boolean getCabin() {return _cabin;}
|
public boolean getCabin() {return _cabin;}
|
||||||
|
|
||||||
public void setAdditionalColor(Color value) {_additionalColor = _additionalColor;}
|
public void setAdditionalColor(Color value) {_additionalColor = value;}
|
||||||
public void setMonorailTrack(Boolean value) { _monorailTrack = value;}
|
public void setMonorailTrack(Boolean value) { _monorailTrack = value;}
|
||||||
public void setCabin(Boolean value) { _cabin = value;}
|
public void setCabin(Boolean value) { _cabin = value;}
|
||||||
|
|
||||||
|
@ -35,9 +35,9 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
private JLabel labelBodyColor = new JLabel("Основной цвет", SwingConstants.CENTER);
|
private JLabel labelBodyColor = new JLabel("Основной цвет", SwingConstants.CENTER);
|
||||||
private JLabel labelAdditionalColor = new JLabel("Дополнительный цвет", SwingConstants.CENTER);
|
private JLabel labelAdditionalColor = new JLabel("Дополнительный цвет", SwingConstants.CENTER);
|
||||||
private JLabel labelWheels = new JLabel("Тип двигателей",SwingConstants.CENTER);
|
private JLabel labelWheels = new JLabel("Тип двигателей",SwingConstants.CENTER);
|
||||||
private JLabel labelDefaultEngines = new JLabel("Классические",SwingConstants.CENTER);
|
private JLabel labelDefaultWheels = new JLabel("Классические",SwingConstants.CENTER);
|
||||||
private JLabel labelOvalEngines = new JLabel("Овальные", SwingConstants.CENTER);
|
private JLabel labelOvalOrnament = new JLabel("Овальные", SwingConstants.CENTER);
|
||||||
private JLabel labelTriangleEngines = new JLabel("Треугольные", SwingConstants.CENTER);
|
private JLabel labelTriangleOrnament = new JLabel("Треугольные", SwingConstants.CENTER);
|
||||||
|
|
||||||
private JSpinner spinnerSpeed = new JSpinner();
|
private JSpinner spinnerSpeed = new JSpinner();
|
||||||
private JSpinner spinnerWeight = new JSpinner();
|
private JSpinner spinnerWeight = new JSpinner();
|
||||||
@ -121,9 +121,9 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
labelModernMonorail.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
labelModernMonorail.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
||||||
labelBodyColor.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
labelBodyColor.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
||||||
labelAdditionalColor.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
labelAdditionalColor.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
||||||
labelDefaultEngines.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
labelDefaultWheels.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
||||||
labelOvalEngines.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
labelOvalOrnament.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
||||||
labelTriangleEngines.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
labelTriangleOrnament.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
|
||||||
MouseAdapter labelObjectsMouseDown = new MouseAdapter() {
|
MouseAdapter labelObjectsMouseDown = new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mousePressed(MouseEvent e) {
|
public void mousePressed(MouseEvent e) {
|
||||||
@ -146,17 +146,17 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
labelModernMonorail.addMouseListener(labelObjectsMouseDown);
|
labelModernMonorail.addMouseListener(labelObjectsMouseDown);
|
||||||
labelModernMonorail.setTransferHandler(labelObjectsTransferHandler);
|
labelModernMonorail.setTransferHandler(labelObjectsTransferHandler);
|
||||||
|
|
||||||
MouseAdapter labelEnginesMouseDown = new MouseAdapter() {
|
MouseAdapter labelWheelsMouseDown = new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mousePressed(MouseEvent e) {
|
public void mousePressed(MouseEvent e) {
|
||||||
((JLabel) e.getComponent()).getTransferHandler().exportAsDrag(((JLabel) e.getComponent()), e, TransferHandler.COPY);
|
((JLabel) e.getComponent()).getTransferHandler().exportAsDrag(((JLabel) e.getComponent()), e, TransferHandler.COPY);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
labelDefaultEngines.addMouseListener(labelEnginesMouseDown);
|
labelDefaultWheels.addMouseListener(labelWheelsMouseDown);
|
||||||
labelOvalEngines.addMouseListener(labelEnginesMouseDown);
|
labelOvalOrnament.addMouseListener(labelWheelsMouseDown);
|
||||||
labelTriangleEngines.addMouseListener(labelEnginesMouseDown);
|
labelTriangleOrnament.addMouseListener(labelWheelsMouseDown);
|
||||||
labelDefaultEngines.setTransferHandler(new TransferHandler() {
|
labelDefaultWheels.setTransferHandler(new TransferHandler() {
|
||||||
@Override
|
@Override
|
||||||
public int getSourceActions(JComponent c) {return TransferHandler.COPY;}
|
public int getSourceActions(JComponent c) {return TransferHandler.COPY;}
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
return new WheelsTransferable(new DrawingWheels());
|
return new WheelsTransferable(new DrawingWheels());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
labelOvalEngines.setTransferHandler(new TransferHandler() {
|
labelOvalOrnament.setTransferHandler(new TransferHandler() {
|
||||||
@Override
|
@Override
|
||||||
public int getSourceActions(JComponent c) {return TransferHandler.COPY;}
|
public int getSourceActions(JComponent c) {return TransferHandler.COPY;}
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
return new WheelsTransferable(new DrawOrnamentOval());
|
return new WheelsTransferable(new DrawOrnamentOval());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
labelTriangleEngines.setTransferHandler(new TransferHandler() {
|
labelTriangleOrnament.setTransferHandler(new TransferHandler() {
|
||||||
@Override
|
@Override
|
||||||
public int getSourceActions(JComponent c) {return TransferHandler.COPY;}
|
public int getSourceActions(JComponent c) {return TransferHandler.COPY;}
|
||||||
|
|
||||||
@ -300,12 +300,8 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
if (_drawingMonorail == null) return;
|
if (_drawingMonorail == null) return;
|
||||||
DrawingMonorail copyDrawingMonorail;
|
|
||||||
if (_drawingMonorail instanceof DrawingModernMonorail)
|
company._collection.Insert(_drawingMonorail);
|
||||||
copyDrawingMonorail = new DrawingModernMonorail((EntityModernMonorail) _drawingMonorail.getMonorail(), _drawingMonorail.getWheels());
|
|
||||||
else
|
|
||||||
copyDrawingMonorail = new DrawingMonorail(_drawingMonorail.getMonorail(), _drawingMonorail.getWheels());
|
|
||||||
company._collection.Insert(copyDrawingMonorail);
|
|
||||||
FormMonorailCollection.canvasShow();
|
FormMonorailCollection.canvasShow();
|
||||||
dispose();
|
dispose();
|
||||||
}
|
}
|
||||||
@ -330,9 +326,9 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
labelBodyColor.setBounds(500,5,100, 40);
|
labelBodyColor.setBounds(500,5,100, 40);
|
||||||
labelAdditionalColor.setBounds(605,5,170,40);
|
labelAdditionalColor.setBounds(605,5,170,40);
|
||||||
labelWheels.setBounds(225,190,150,15);
|
labelWheels.setBounds(225,190,150,15);
|
||||||
labelDefaultEngines.setBounds(140, 210, 100, 40);
|
labelDefaultWheels.setBounds(140, 210, 100, 40);
|
||||||
labelOvalEngines.setBounds(250, 210, 100,40);
|
labelOvalOrnament.setBounds(250, 210, 100,40);
|
||||||
labelTriangleEngines.setBounds(360,210,100,40);
|
labelTriangleOrnament.setBounds(360,210,100,40);
|
||||||
labelColor.setBounds(200,10,50,15);
|
labelColor.setBounds(200,10,50,15);
|
||||||
panelColorRed.setBounds(200, 30, 40, 40);
|
panelColorRed.setBounds(200, 30, 40, 40);
|
||||||
panelColorGreen.setBounds(250, 30, 40,40);
|
panelColorGreen.setBounds(250, 30, 40,40);
|
||||||
@ -354,10 +350,10 @@ public class FormMonorailConfig extends JFrame {
|
|||||||
add(labelColor);
|
add(labelColor);
|
||||||
add(labelBodyColor);
|
add(labelBodyColor);
|
||||||
add(labelAdditionalColor);
|
add(labelAdditionalColor);
|
||||||
add(labelDefaultEngines);
|
add(labelDefaultWheels);
|
||||||
add(labelDefaultEngines);
|
add(labelDefaultWheels);
|
||||||
add(labelOvalEngines);
|
add(labelOvalOrnament);
|
||||||
add(labelTriangleEngines);
|
add(labelTriangleOrnament);
|
||||||
add(spinnerSpeed);
|
add(spinnerSpeed);
|
||||||
add(spinnerWeight);
|
add(spinnerWeight);
|
||||||
add(spinnerNumberOfWheels);
|
add(spinnerNumberOfWheels);
|
||||||
|
Loading…
Reference in New Issue
Block a user