add GetDefaultFontLayout and ArcadeClassic.ttf
This commit is contained in:
@@ -2,20 +2,13 @@ package domain
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"game/konstructor/entity"
|
"game/konstructor/entity"
|
||||||
"image/color"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Domain) InitDialog() {
|
func (d *Domain) InitDialog() {
|
||||||
d.DialogMap = entity.DialogMap{
|
d.DialogMap = entity.DialogMap{
|
||||||
"TestDialog": {
|
"TestDialog": {
|
||||||
Layout: entity.DialogLayout{
|
Layout: entity.DialogLayout{
|
||||||
ChoiceFont: entity.FontLayout{
|
ChoiceFont: GetDefaultFontLayout(),
|
||||||
Path: "fonts/Arial.ttf",
|
|
||||||
DPI: 72,
|
|
||||||
Size: 24,
|
|
||||||
Color: color.White,
|
|
||||||
SelectedColor: color.RGBA{R: 0, G: 255, B: 0, A: 100},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
Choices: []entity.DialogChoice{
|
Choices: []entity.DialogChoice{
|
||||||
{
|
{
|
||||||
|
|||||||
16
domain/font.go
Normal file
16
domain/font.go
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
import (
|
||||||
|
"game/konstructor/entity"
|
||||||
|
"image/color"
|
||||||
|
)
|
||||||
|
|
||||||
|
func GetDefaultFontLayout() entity.FontLayout {
|
||||||
|
return entity.FontLayout{
|
||||||
|
Path: "fonts/ArcadeClassic.ttf",
|
||||||
|
DPI: 72,
|
||||||
|
Size: 24,
|
||||||
|
Color: color.White,
|
||||||
|
SelectedColor: color.RGBA{R: 255, G: 0, B: 0, A: 100},
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,7 +3,6 @@ package domain
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"game/konstructor/entity"
|
"game/konstructor/entity"
|
||||||
"image/color"
|
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -12,13 +11,7 @@ func (d *Domain) InitMenu() {
|
|||||||
"MainMenu": {
|
"MainMenu": {
|
||||||
CurrentSelected: 0,
|
CurrentSelected: 0,
|
||||||
Layout: entity.MenuLayout{
|
Layout: entity.MenuLayout{
|
||||||
MenuItemFont: entity.FontLayout{
|
MenuItemFont: GetDefaultFontLayout(),
|
||||||
Path: "fonts/Arial.ttf",
|
|
||||||
DPI: 72,
|
|
||||||
Size: 24,
|
|
||||||
Color: color.White,
|
|
||||||
SelectedColor: color.RGBA{R: 0, G: 255, B: 0, A: 100},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
MenuItems: []entity.MenuItem{
|
MenuItems: []entity.MenuItem{
|
||||||
{
|
{
|
||||||
@@ -41,13 +34,7 @@ func (d *Domain) InitMenu() {
|
|||||||
"GameMenu": {
|
"GameMenu": {
|
||||||
CurrentSelected: 0,
|
CurrentSelected: 0,
|
||||||
Layout: entity.MenuLayout{
|
Layout: entity.MenuLayout{
|
||||||
MenuItemFont: entity.FontLayout{
|
MenuItemFont: GetDefaultFontLayout(),
|
||||||
Path: "fonts/Arial.ttf",
|
|
||||||
DPI: 72,
|
|
||||||
Size: 24,
|
|
||||||
Color: color.White,
|
|
||||||
SelectedColor: color.RGBA{R: 0, G: 255, B: 0, A: 100},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
MenuItems: []entity.MenuItem{
|
MenuItems: []entity.MenuItem{
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
fonts/ArcadeClassic.ttf
Normal file
BIN
fonts/ArcadeClassic.ttf
Normal file
Binary file not shown.
Reference in New Issue
Block a user