Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sinister Zeta Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Sinister Zeta
Sinister Zeta Project
Commits
27cb8e4f
Commit
27cb8e4f
authored
4 years ago
by
Jason Dittmer (jcd763)
Browse files
Options
Downloads
Patches
Plain Diff
Linked UI to OSInterface, program giving errors.
parent
9f5e5d8a
No related branches found
Branches containing commit
No related tags found
2 merge requests
!45
Prototype to Master for Milestone 5
,
!44
Demo
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/MainScreen.java
+6
-2
6 additions, 2 deletions
src/ui/MainScreen.java
with
6 additions
and
2 deletions
src/ui/MainScreen.java
+
6
−
2
View file @
27cb8e4f
...
...
@@ -5,6 +5,8 @@ import javafx.scene.control.Button;
import
javafx.scene.control.ComboBox
;
import
javafx.scene.layout.Pane
;
import
javafx.stage.Stage
;
import
model.Hotkey
;
import
model.OSInterface
;
/**
* mainScreen is the main UI page for the program. All user functions start here.
...
...
@@ -13,6 +15,7 @@ import javafx.stage.Stage;
public
class
MainScreen
extends
Pane
{
Stage
primaryStage
=
new
Stage
();
Scene
mainScreenScene
=
new
Scene
(
this
,
800
,
800
);
int
id
=
0
;
public
MainScreen
()
{
...
...
@@ -141,9 +144,10 @@ public class MainScreen extends Pane {
save
.
setStyle
(
"-fx-background-color: #2c2f33; -fx-text-fill: white; -fx-font-size: 16; -fx-vertical-align: middle; "
+
"-fx-pref-width: 100px; -fx-pref-height: 50px; -fx-text-align: center;"
);
save
.
setOnAction
(
e
->
{
Hotkey
newHotkey
=
new
Hotkey
(
KBV
.
getKeyToBind
(),
id
,
KBV
.
getKeyAction
());
id
++;
boolean
register
=
OSInterface
.
getInstance
().
registerHotkey
(
newHotkey
);
primaryStage
.
setScene
(
mainScreenScene
);
System
.
out
.
println
(
KBV
.
getKeyToBind
());
System
.
out
.
println
(
KBV
.
getKeyAction
());
});
primaryStage
.
setTitle
(
"Set a Keybind"
);
Scene
testScene
=
new
Scene
(
KBV
,
800
,
800
);
...
...
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