Documentation ¶
Index ¶
Constants ¶
View Source
const ( LeftRight = 1 << iota UpDown = 1 << iota YX = 1 << iota RightLeft = 0 DownUp = 0 XY = 0 )
Variables ¶
This section is empty.
Functions ¶
func CreateMenus ¶
func CreateMenus(window *sdl.Window, surface *sdl.Surface, renderer *sdl.Renderer, controlManager *inputManager.ControlManager) inputManager.Update
Types ¶
type AnimationDirection ¶
type AnimationDirection int
type MenuAction ¶
type MenuGeneratorInfo ¶
type MenuGeneratorInfo struct {
// contains filtered or unexported fields
}
func LoadMenuGeneratorInfo ¶
func LoadMenuGeneratorInfo(menuItemAnimation *MenuItemAnimation, backgroundPath string, buttonTexts []string, fontPath string) MenuGeneratorInfo
func (*MenuGeneratorInfo) GenerateMenuShellOneColumn ¶
func (menuGeneratorInfo *MenuGeneratorInfo) GenerateMenuShellOneColumn(renderer *sdl.Renderer, x, y, dx, dy int32) Menu
TODO Make sdl_tff work!
type MenuItemAnimation ¶
type MenuItemAnimation struct { FrameLength uint64 AnimationDirection AnimationDirection // contains filtered or unexported fields }
func LoadMenuAnimation ¶
func LoadMenuAnimation(highlightedPath, notHighlightedPath string, dx, dy int32) MenuItemAnimation
Click to show internal directories.
Click to hide internal directories.