Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simulator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
letsgoING
ArduBlock Source
Simulator
Commits
32ad8b40
Commit
32ad8b40
authored
4 years ago
by
Leon Dieter
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
33525b66
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tec/letsgoing/ardublock/simulator/Simulator.java
+2
-0
2 additions, 0 deletions
src/tec/letsgoing/ardublock/simulator/Simulator.java
src/tec/letsgoing/ardublock/simulator/view/GUI.java
+1
-0
1 addition, 0 deletions
src/tec/letsgoing/ardublock/simulator/view/GUI.java
with
3 additions
and
0 deletions
src/tec/letsgoing/ardublock/simulator/Simulator.java
+
2
−
0
View file @
32ad8b40
...
@@ -177,6 +177,8 @@ public class Simulator implements Runnable, ActionListener{
...
@@ -177,6 +177,8 @@ public class Simulator implements Runnable, ActionListener{
}
}
//Beim Neustart des Simulators wird die bisherige Position und Gre des Fenster gespeichert
//Beim Neustart des Simulators wird die bisherige Position und Gre des Fenster gespeichert
Point
locationWindow
=
gui
.
getLocation
();
Point
locationWindow
=
gui
.
getLocation
();
int
WidthWindow
=
((
int
)((
gui
.
getWidth
()
*
1.0975
)
-
13.307
));
int
WidthWindow
=
((
int
)((
gui
.
getWidth
()
*
1.0975
)
-
13.307
));
int
HeightWindow
=
((
int
)((
gui
.
getHeight
()
*
1.2709
)
-
174.77
));
int
HeightWindow
=
((
int
)((
gui
.
getHeight
()
*
1.2709
)
-
174.77
));
...
...
This diff is collapsed.
Click to expand it.
src/tec/letsgoing/ardublock/simulator/view/GUI.java
+
1
−
0
View file @
32ad8b40
...
@@ -78,6 +78,7 @@ public class GUI extends JFrame implements Runnable, ActionListener {
...
@@ -78,6 +78,7 @@ public class GUI extends JFrame implements Runnable, ActionListener {
public
GUI
(
Simulator
simu
,
int
_xscale
,
int
_yscale
)
{
public
GUI
(
Simulator
simu
,
int
_xscale
,
int
_yscale
)
{
super
(
"ArduBlock Simulator"
);
super
(
"ArduBlock Simulator"
);
// TODO: Grenverhtlnisse mit +80 eventuell
xscale
=
_xscale
;
xscale
=
_xscale
;
yscale
=
_yscale
;
yscale
=
_yscale
;
WindowWidth
=
_xscale
;
WindowWidth
=
_xscale
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment