-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d26308e
commit 426377c
Showing
10 changed files
with
69 additions
and
38 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
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
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 |
---|---|---|
@@ -1,19 +1,28 @@ | ||
package examples | ||
|
||
import org.sgine.Color | ||
import org.sgine.component.{Component, PointerSupport, Label} | ||
import org.sgine.component.{Component, Container, Label, PointerSupport} | ||
import reactify._ | ||
|
||
object LabelExample extends Example { | ||
override protected lazy val component: Component = new Label("Hello, [#00ff00ff]World![]\n\nTesting, this is some [#00ffffff]really long text[] that should wrap multiple lines!") with PointerSupport { | ||
font @= Fonts.Pacifico.normal | ||
center @= screen.center | ||
middle @= screen.middle | ||
wrap @= true | ||
width @= 1000.0 | ||
override protected lazy val component: Component = Container( | ||
new Label("Hello, [#00ff00ff]World![]\n\nTesting, this is some [#00ffffff]really long text[] that should wrap multiple lines!") with PointerSupport { | ||
font @= Fonts.Pacifico.normal | ||
center @= screen.center | ||
middle @= screen.middle | ||
wrap @= true | ||
width @= 1000.0 | ||
|
||
color := (if (pointer.isOver) Color.Red else Color.White) | ||
color := (if (pointer.isOver) Color.Red else Color.White) | ||
|
||
override def toString: String = "text" | ||
} | ||
override def toString: String = "text" | ||
}, | ||
new Label("Giant Text Here") { | ||
font @= Fonts.Pacifico.large | ||
center := screen.center | ||
top @= 10.0 | ||
|
||
color @= Color.White | ||
} | ||
) | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.9.4 | ||
sbt.version=1.9.6 |