-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Title bars blend into window, border tiles can be modified
- Loading branch information
1 parent
90fb7e6
commit fdf23b5
Showing
5 changed files
with
95 additions
and
53 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
31 changes: 31 additions & 0 deletions
31
...ike-starterkit/src/main/scala/roguelikestarterkit/ui/components/TerminalBorderTiles.scala
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,31 @@ | ||
package roguelikestarterkit.ui.components | ||
|
||
import roguelikestarterkit.tiles.Tile | ||
|
||
final case class TerminalBorderTiles( | ||
fill: Tile, | ||
topLeft: Tile, | ||
topRight: Tile, | ||
bottomLeft: Tile, | ||
bottomRight: Tile, | ||
horizontal: Tile, | ||
vertical: Tile | ||
): | ||
def withFill(value: Tile): TerminalBorderTiles = | ||
this.copy(fill = value) | ||
def withTopLeft(value: Tile): TerminalBorderTiles = | ||
this.copy(topLeft = value) | ||
def withTopRight(value: Tile): TerminalBorderTiles = | ||
this.copy(topRight = value) | ||
def withBottomLeft(value: Tile): TerminalBorderTiles = | ||
this.copy(bottomLeft = value) | ||
def withBottomRight(value: Tile): TerminalBorderTiles = | ||
this.copy(bottomRight = value) | ||
def withHorizontal(value: Tile): TerminalBorderTiles = | ||
this.copy(horizontal = value) | ||
def withVertical(value: Tile): TerminalBorderTiles = | ||
this.copy(vertical = value) | ||
|
||
object TerminalBorderTiles: | ||
val default: TerminalBorderTiles = | ||
TerminalBorderTiles(Tile.` `, Tile.`┌`, Tile.`┐`, Tile.`└`, Tile.`┘`, Tile.`─`, Tile.`│`) |
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