-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #532 by adding a Tab to open channels
- Loading branch information
Showing
9 changed files
with
133 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/com/faforever/client/chat/NewChannelController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.faforever.client.chat; | ||
|
||
|
||
import com.faforever.client.fx.Controller; | ||
import javafx.fxml.FXML; | ||
import javafx.scene.control.TextField; | ||
import javafx.scene.layout.VBox; | ||
import org.springframework.beans.factory.config.ConfigurableBeanFactory; | ||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) | ||
public class NewChannelController implements Controller { | ||
@FXML | ||
public VBox root; | ||
@FXML | ||
public TextField channelNameTextField; | ||
|
||
@Override | ||
public Object getRoot() { | ||
return root; | ||
} | ||
|
||
public TextField getChannelNameTextField() { | ||
return channelNameTextField; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?import javafx.geometry.Insets?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.control.TextField?> | ||
<?import javafx.scene.layout.VBox?> | ||
<VBox xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.faforever.client.chat.NewChannelController" fx:id="root" | ||
alignment="CENTER" fillWidth="false"> | ||
<children> | ||
<VBox> | ||
<children> | ||
<Label text="%chat.joinAChannel"> | ||
<padding> | ||
<Insets top="10.0"/> | ||
</padding> | ||
</Label> | ||
<TextField fx:id="channelNameTextField" promptText="%chat.channelNamePrompt"/> | ||
</children> | ||
</VBox> | ||
</children> | ||
</VBox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters