Facebook
From Przemysław Sokołowski, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 237
  1. package game.startStory;
  2.  
  3. import game.Main;
  4. import game.YourChar;
  5. import game.newgame.NewGameController;
  6. import javafx.fxml.FXML;
  7. import javafx.scene.control.ChoiceBox;
  8. import javafx.scene.control.Label;
  9. import javafx.scene.control.ProgressBar;
  10. import javafx.scene.control.RadioButton;
  11. import javafx.scene.control.TextField;
  12.  
  13. public class startStoryController {
  14.         private Main main;
  15.         private YourChar newChar;
  16.         private NewGameController newGameController;
  17.  
  18.         @FXML
  19.         private Label nameField;
  20.         @FXML
  21.         private Label level;
  22.         @FXML
  23.         private ProgressBar exp;
  24.         @FXML
  25.         private ProgressBar health;
  26.         @FXML
  27.         private Label strength;
  28.         @FXML
  29.         private Label armor;
  30.  
  31.         public void setName(){
  32.                 this.nameField.setText(newChar.getName()); //tutaj text w labelu chciabym ustawi jako zmienna z obiektu
  33.         }