gameui

package
Version: v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultInvTextColor      = color.RGBA{R: 30, G: 30, B: 30, A: 255}
	DefaultTextColor         = color.RGBA{R: 230, G: 230, B: 230, A: 255}
	DefaultHintColor         = color.RGBA{R: 200, G: 200, B: 200, A: 255}
	DefaultBackgroundColor   = color.RGBA{A: 255}
	SolarWindBackgroundColor = color.RGBA{R: 45, G: 0, B: 45, A: 255}
	AsteriodsBackgroundColor = color.RGBA{R: 75, G: 0, B: 0, A: 255}
)

Functions

This section is empty.

Types

type Theme

type Theme struct {
	*material.Theme
	SpecialCardTextColor       color.RGBA
	BattlefieldCardTextColor   color.RGBA
	WarshipCardTextColor       color.RGBA
	DefaultCardBackgroundColor color.RGBA
	ActiveCardBackgroundColor  color.RGBA
	CardWidth, CardHeight      unit.Value
	CardCornerRounding         unit.Value
	Background                 color.RGBA
	SolarWindBackground        color.RGBA
	AsteriodsBackground        color.RGBA
}

func NewGameTheme

func NewGameTheme() *Theme

func (*Theme) LayoutCard

func (t *Theme) LayoutCard(c gamestate.Card, cardState *widgets.Card, gtx *layout.Context)

func (*Theme) LayoutCardHeader

func (t *Theme) LayoutCardHeader(card gamestate.Card, gtx *layout.Context)

func (*Theme) LayoutCardHelp

func (t *Theme) LayoutCardHelp(card gamestate.Card, gtx *layout.Context)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL