Documentation ¶
Index ¶
- Constants
- func ToEpoch(mins, hours, day, month, year int) int
- type Calendar
- type CalendarUpdate
- type Message
- type NamedPanel
- type OverlayImage
- type PanelControl
- type PositionMessage
- type Progress
- type Runner
- func (runner *Runner) AddImage(x, y int, imageName string, w, h int) int
- func (runner *Runner) AddMessage(x, y int, message string, fontIndex int, r, g, b uint8) int
- func (runner *Runner) AddProgress(x, y, w, lineWidth int, value, maxValue float64, r, g, b uint8) int
- func (runner *Runner) CanZoom() bool
- func (runner *Runner) CenterPanel(name string)
- func (runner *Runner) CloseTopPanel() bool
- func (runner *Runner) DelAllImages()
- func (runner *Runner) DelAllMessages()
- func (runner *Runner) DelAllProgresses()
- func (runner *Runner) DelImage(index int)
- func (runner *Runner) DelMessage(messageIndex int)
- func (runner *Runner) DelProgress(index int)
- func (runner *Runner) DragFromUi(pixelX, pixelY int) (string, int)
- func (runner *Runner) Eval(command string) (interface{}, error)
- func (runner *Runner) Events(delta float64, fadeDir int, ...)
- func (runner *Runner) Exit()
- func (runner *Runner) GetOverPanel() (string, int, int, bool)
- func (runner *Runner) GetZ() int
- func (runner *Runner) Init(app *gfx.App, config map[string]interface{})
- func (runner *Runner) IsOverPanel(name string) (int, int, bool)
- func (runner *Runner) Loading(working bool)
- func (runner *Runner) LockPanel(name string)
- func (runner *Runner) MinsChange(mins, hours, day, month, year int)
- func (runner *Runner) Name() string
- func (runner *Runner) OverrideLight(enabled bool, r, g, b float32)
- func (runner *Runner) RaisePanel(name, imageName string)
- func (runner *Runner) RunFx(name string)
- func (runner *Runner) SectionLoad(x, y int, data map[string]interface{})
- func (runner *Runner) SectionSave(x, y int) map[string]interface{}
- func (runner *Runner) SetOverlayBackground(r, g, b, a uint8)
- func (runner *Runner) ShowMessageAt(worldX, worldY, worldZ int, message string, fontIndex int, r, g, b uint8, ...)
- func (runner *Runner) UpdatePanel(name string, contents *[]interface{})
- func (runner *Runner) UpdateProgress(index int, value, maxValue float64)
- func (runner *Runner) ViewSize() int
- func (runner *Runner) Walk(sx, sy int)
- type UiImageControl
- type UiOutlineControl
- type UiTextControl
Constants ¶
View Source
const MESSAGE_TTL = 2
todo: PositionMessage-s should be vbo-s instead of using the cpu to recalc their positions
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Calendar ¶
type Calendar struct { Paused bool MinsSinceEpoch int EventListener CalendarUpdate // contains filtered or unexported fields }
func NewCalendar ¶
func (*Calendar) AsTimeString ¶
type CalendarUpdate ¶
type CalendarUpdate interface {
MinsChange(mins, hours, day, month, year int)
}
type NamedPanel ¶
type NamedPanel struct {
// contains filtered or unexported fields
}
type OverlayImage ¶
type OverlayImage struct {
// contains filtered or unexported fields
}
type PanelControl ¶
type PanelControl interface {
// contains filtered or unexported methods
}
type PositionMessage ¶
type PositionMessage struct {
// contains filtered or unexported fields
}
type Runner ¶
type Runner struct { Calendar *Calendar Overlay *gfx.Panel // contains filtered or unexported fields }
func (*Runner) AddMessage ¶
func (*Runner) AddProgress ¶
func (*Runner) CenterPanel ¶
func (*Runner) CloseTopPanel ¶
func (*Runner) DelAllImages ¶
func (runner *Runner) DelAllImages()
func (*Runner) DelAllMessages ¶
func (runner *Runner) DelAllMessages()
func (*Runner) DelAllProgresses ¶
func (runner *Runner) DelAllProgresses()
func (*Runner) DelMessage ¶
func (*Runner) DelProgress ¶
func (*Runner) MinsChange ¶
func (*Runner) OverrideLight ¶
func (*Runner) RaisePanel ¶
func (*Runner) SectionLoad ¶
func (*Runner) SectionSave ¶
func (*Runner) SetOverlayBackground ¶
func (*Runner) ShowMessageAt ¶
func (*Runner) UpdatePanel ¶
func (*Runner) UpdateProgress ¶
type UiImageControl ¶
type UiImageControl struct {
// contains filtered or unexported fields
}
type UiOutlineControl ¶
type UiOutlineControl struct {
// contains filtered or unexported fields
}
func (*UiOutlineControl) HLine ¶
func (c *UiOutlineControl) HLine(x1, y, x2 int)
HLine draws a horizontal line
func (*UiOutlineControl) VLine ¶
func (c *UiOutlineControl) VLine(x, y1, y2 int)
VLine draws a veritcal line
type UiTextControl ¶
type UiTextControl struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.