Documentation
¶
Index ¶
- Variables
- type Align
- func (x Align) Enum() *Align
- func (x Align) MarshalJSON() ([]byte, error)
- func (x Align) MarshalProtoJSON(s *json.MarshalState)
- func (x Align) MarshalProtoText() string
- func (x Align) MarshalText() ([]byte, error)
- func (x Align) String() string
- func (x *Align) UnmarshalJSON(b []byte) error
- func (x *Align) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Align) UnmarshalText(b []byte) error
- type Change
- func (m *Change) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Change) CloneVT() *Change
- func (this *Change) EqualMessageVT(thatMsg any) bool
- func (this *Change) EqualVT(that *Change) bool
- func (x *Change) GetRemoved() []string
- func (x *Change) GetReset_() bool
- func (x *Change) GetSet() []*Node
- func (x *Change) MarshalJSON() ([]byte, error)
- func (x *Change) MarshalProtoJSON(s *json.MarshalState)
- func (x *Change) MarshalProtoText() string
- func (m *Change) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Change) MarshalToVT(dAtA []byte) (int, error)
- func (m *Change) MarshalVT() (dAtA []byte, err error)
- func (*Change) ProtoMessage()
- func (x *Change) Reset()
- func (m *Change) SizeVT() (n int)
- func (x *Change) String() string
- func (x *Change) UnmarshalJSON(b []byte) error
- func (x *Change) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Change) UnmarshalVT(dAtA []byte) error
- type Edges
- func (m *Edges) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Edges) CloneVT() *Edges
- func (this *Edges) EqualMessageVT(thatMsg any) bool
- func (this *Edges) EqualVT(that *Edges) bool
- func (x *Edges) GetBottom() float32
- func (x *Edges) GetLeft() float32
- func (x *Edges) GetRight() float32
- func (x *Edges) GetTop() float32
- func (x *Edges) MarshalJSON() ([]byte, error)
- func (x *Edges) MarshalProtoJSON(s *json.MarshalState)
- func (x *Edges) MarshalProtoText() string
- func (m *Edges) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Edges) MarshalToVT(dAtA []byte) (int, error)
- func (m *Edges) MarshalVT() (dAtA []byte, err error)
- func (*Edges) ProtoMessage()
- func (x *Edges) Reset()
- func (m *Edges) SizeVT() (n int)
- func (x *Edges) String() string
- func (x *Edges) UnmarshalJSON(b []byte) error
- func (x *Edges) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Edges) UnmarshalVT(dAtA []byte) error
- type Flow
- func (x Flow) Enum() *Flow
- func (x Flow) MarshalJSON() ([]byte, error)
- func (x Flow) MarshalProtoJSON(s *json.MarshalState)
- func (x Flow) MarshalProtoText() string
- func (x Flow) MarshalText() ([]byte, error)
- func (x Flow) String() string
- func (x *Flow) UnmarshalJSON(b []byte) error
- func (x *Flow) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Flow) UnmarshalText(b []byte) error
- type Kind
- func (x Kind) Enum() *Kind
- func (x Kind) MarshalJSON() ([]byte, error)
- func (x Kind) MarshalProtoJSON(s *json.MarshalState)
- func (x Kind) MarshalProtoText() string
- func (x Kind) MarshalText() ([]byte, error)
- func (x Kind) String() string
- func (x *Kind) UnmarshalJSON(b []byte) error
- func (x *Kind) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Kind) UnmarshalText(b []byte) error
- type Length
- func (m *Length) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Length) CloneVT() *Length
- func (this *Length) EqualMessageVT(thatMsg any) bool
- func (this *Length) EqualVT(that *Length) bool
- func (x *Length) GetFill() float32
- func (x *Length) GetFitChildren() bool
- func (x *Length) GetPercent() float32
- func (x *Length) GetPixels() float32
- func (m *Length) GetValue() isLength_Value
- func (x *Length) MarshalJSON() ([]byte, error)
- func (x *Length) MarshalProtoJSON(s *json.MarshalState)
- func (x *Length) MarshalProtoText() string
- func (m *Length) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Length) MarshalToVT(dAtA []byte) (int, error)
- func (m *Length) MarshalVT() (dAtA []byte, err error)
- func (*Length) ProtoMessage()
- func (x *Length) Reset()
- func (m *Length) SizeVT() (n int)
- func (x *Length) String() string
- func (x *Length) UnmarshalJSON(b []byte) error
- func (x *Length) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Length) UnmarshalVT(dAtA []byte) error
- type Length_Fill
- func (m *Length_Fill) CloneOneofVT() isLength_Value
- func (m *Length_Fill) CloneVT() *Length_Fill
- func (this *Length_Fill) EqualVT(thatIface isLength_Value) bool
- func (m *Length_Fill) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Length_Fill) MarshalToVT(dAtA []byte) (int, error)
- func (m *Length_Fill) SizeVT() (n int)
- type Length_FitChildren
- func (m *Length_FitChildren) CloneOneofVT() isLength_Value
- func (m *Length_FitChildren) CloneVT() *Length_FitChildren
- func (this *Length_FitChildren) EqualVT(thatIface isLength_Value) bool
- func (m *Length_FitChildren) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Length_FitChildren) MarshalToVT(dAtA []byte) (int, error)
- func (m *Length_FitChildren) SizeVT() (n int)
- type Length_Percent
- func (m *Length_Percent) CloneOneofVT() isLength_Value
- func (m *Length_Percent) CloneVT() *Length_Percent
- func (this *Length_Percent) EqualVT(thatIface isLength_Value) bool
- func (m *Length_Percent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Length_Percent) MarshalToVT(dAtA []byte) (int, error)
- func (m *Length_Percent) SizeVT() (n int)
- type Length_Pixels
- func (m *Length_Pixels) CloneOneofVT() isLength_Value
- func (m *Length_Pixels) CloneVT() *Length_Pixels
- func (this *Length_Pixels) EqualVT(thatIface isLength_Value) bool
- func (m *Length_Pixels) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Length_Pixels) MarshalToVT(dAtA []byte) (int, error)
- func (m *Length_Pixels) SizeVT() (n int)
- type Node
- func (m *Node) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Node) CloneVT() *Node
- func (this *Node) EqualMessageVT(thatMsg any) bool
- func (this *Node) EqualVT(that *Node) bool
- func (x *Node) GetChildren() []string
- func (x *Node) GetId() string
- func (x *Node) GetImage() string
- func (x *Node) GetKind() Kind
- func (x *Node) GetStyle() *Style
- func (x *Node) GetText() string
- func (x *Node) MarshalJSON() ([]byte, error)
- func (x *Node) MarshalProtoJSON(s *json.MarshalState)
- func (x *Node) MarshalProtoText() string
- func (m *Node) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Node) MarshalToVT(dAtA []byte) (int, error)
- func (m *Node) MarshalVT() (dAtA []byte, err error)
- func (*Node) ProtoMessage()
- func (x *Node) Reset()
- func (m *Node) SizeVT() (n int)
- func (x *Node) String() string
- func (x *Node) UnmarshalJSON(b []byte) error
- func (x *Node) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Node) UnmarshalVT(dAtA []byte) error
- type Screen
- func (m *Screen) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Screen) CloneVT() *Screen
- func (this *Screen) EqualMessageVT(thatMsg any) bool
- func (this *Screen) EqualVT(that *Screen) bool
- func (x *Screen) GetTrees() []*Tree
- func (x *Screen) MarshalJSON() ([]byte, error)
- func (x *Screen) MarshalProtoJSON(s *json.MarshalState)
- func (x *Screen) MarshalProtoText() string
- func (m *Screen) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Screen) MarshalToVT(dAtA []byte) (int, error)
- func (m *Screen) MarshalVT() (dAtA []byte, err error)
- func (*Screen) ProtoMessage()
- func (x *Screen) Reset()
- func (m *Screen) SizeVT() (n int)
- func (x *Screen) String() string
- func (x *Screen) UnmarshalJSON(b []byte) error
- func (x *Screen) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Screen) UnmarshalVT(dAtA []byte) error
- type Style
- func (m *Style) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Style) CloneVT() *Style
- func (this *Style) EqualMessageVT(thatMsg any) bool
- func (this *Style) EqualVT(that *Style) bool
- func (x *Style) GetBackground() uint32
- func (x *Style) GetBold() bool
- func (x *Style) GetBorderRadius() float32
- func (x *Style) GetColor() uint32
- func (x *Style) GetFlow() Flow
- func (x *Style) GetFontSize() float32
- func (x *Style) GetHeight() *Length
- func (x *Style) GetHorizontalAlign() Align
- func (x *Style) GetMargin() *Edges
- func (x *Style) GetOpacity() float32
- func (x *Style) GetPadding() *Edges
- func (x *Style) GetTextAlign() Align
- func (x *Style) GetVerticalAlign() Align
- func (x *Style) GetWidth() *Length
- func (x *Style) MarshalJSON() ([]byte, error)
- func (x *Style) MarshalProtoJSON(s *json.MarshalState)
- func (x *Style) MarshalProtoText() string
- func (m *Style) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Style) MarshalToVT(dAtA []byte) (int, error)
- func (m *Style) MarshalVT() (dAtA []byte, err error)
- func (*Style) ProtoMessage()
- func (x *Style) Reset()
- func (m *Style) SizeVT() (n int)
- func (x *Style) String() string
- func (x *Style) UnmarshalJSON(b []byte) error
- func (x *Style) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Style) UnmarshalVT(dAtA []byte) error
- type Tree
- func (m *Tree) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Tree) CloneVT() *Tree
- func (this *Tree) EqualMessageVT(thatMsg any) bool
- func (this *Tree) EqualVT(that *Tree) bool
- func (x *Tree) GetMod() string
- func (x *Tree) GetNodes() []*Node
- func (x *Tree) MarshalJSON() ([]byte, error)
- func (x *Tree) MarshalProtoJSON(s *json.MarshalState)
- func (x *Tree) MarshalProtoText() string
- func (m *Tree) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Tree) MarshalToVT(dAtA []byte) (int, error)
- func (m *Tree) MarshalVT() (dAtA []byte, err error)
- func (*Tree) ProtoMessage()
- func (x *Tree) Reset()
- func (m *Tree) SizeVT() (n int)
- func (x *Tree) String() string
- func (x *Tree) UnmarshalJSON(b []byte) error
- func (x *Tree) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Tree) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( Kind_name = map[int32]string{ 0: "KIND_PANEL", 1: "KIND_LABEL", 2: "KIND_IMAGE", 3: "KIND_BUTTON", } Kind_value = map[string]int32{ "KIND_PANEL": 0, "KIND_LABEL": 1, "KIND_IMAGE": 2, "KIND_BUTTON": 3, } )
Enum value maps for Kind.
var ( Flow_name = map[int32]string{ 0: "FLOW_NONE", 1: "FLOW_DOWN", 2: "FLOW_RIGHT", } Flow_value = map[string]int32{ "FLOW_NONE": 0, "FLOW_DOWN": 1, "FLOW_RIGHT": 2, } )
Enum value maps for Flow.
var ( Align_name = map[int32]string{ 0: "ALIGN_START", 1: "ALIGN_CENTER", 2: "ALIGN_END", } Align_value = map[string]int32{ "ALIGN_START": 0, "ALIGN_CENTER": 1, "ALIGN_END": 2, } )
Enum value maps for Align.
Functions ¶
This section is empty.
Types ¶
type Align ¶
type Align int32
Align places a node or text along one axis.
func (Align) MarshalJSON ¶
MarshalJSON marshals the Align to JSON.
func (Align) MarshalProtoJSON ¶
func (x Align) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Align to JSON.
func (Align) MarshalProtoText ¶
func (Align) MarshalText ¶
MarshalText marshals the Align to text.
func (*Align) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Align from JSON.
func (*Align) UnmarshalProtoJSON ¶
func (x *Align) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Align from JSON.
func (*Align) UnmarshalText ¶
UnmarshalText unmarshals the Align from text.
type Change ¶
type Change struct {
// Reset clears the tree before the rest of the change applies.
Reset_ bool `protobuf:"varint,1,opt,name=reset,proto3" json:"reset,omitempty"`
// Set holds the new or changed nodes.
Set []*Node `protobuf:"bytes,2,rep,name=set,proto3" json:"set,omitempty"`
// Removed holds the ids of the nodes to drop.
Removed []string `protobuf:"bytes,3,rep,name=removed,proto3" json:"removed,omitempty"`
// contains filtered or unexported fields
}
Change updates one player's tree. Reset clears the tree first; then each node in set replaces the node with its id, and each id in removed drops that node.
func (*Change) CloneMessageVT ¶
func (m *Change) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Change) EqualMessageVT ¶
func (*Change) GetRemoved ¶
func (*Change) MarshalJSON ¶
MarshalJSON marshals the Change to JSON.
func (*Change) MarshalProtoJSON ¶
func (x *Change) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Change message to JSON.
func (*Change) MarshalProtoText ¶
func (*Change) MarshalToSizedBufferVT ¶
func (*Change) ProtoMessage ¶
func (*Change) ProtoMessage()
func (*Change) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Change from JSON.
func (*Change) UnmarshalProtoJSON ¶
func (x *Change) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Change message from JSON.
func (*Change) UnmarshalVT ¶
type Edges ¶
type Edges struct {
// Top is the distance on the top side.
Top float32 `protobuf:"fixed32,1,opt,name=top,proto3" json:"top,omitempty"`
// Right is the distance on the right side.
Right float32 `protobuf:"fixed32,2,opt,name=right,proto3" json:"right,omitempty"`
// Bottom is the distance on the bottom side.
Bottom float32 `protobuf:"fixed32,3,opt,name=bottom,proto3" json:"bottom,omitempty"`
// Left is the distance on the left side.
Left float32 `protobuf:"fixed32,4,opt,name=left,proto3" json:"left,omitempty"`
// contains filtered or unexported fields
}
Edges are pixel distances on each side.
func (*Edges) CloneMessageVT ¶
func (m *Edges) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Edges) EqualMessageVT ¶
func (*Edges) MarshalJSON ¶
MarshalJSON marshals the Edges to JSON.
func (*Edges) MarshalProtoJSON ¶
func (x *Edges) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Edges message to JSON.
func (*Edges) MarshalProtoText ¶
func (*Edges) MarshalToSizedBufferVT ¶
func (*Edges) ProtoMessage ¶
func (*Edges) ProtoMessage()
func (*Edges) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Edges from JSON.
func (*Edges) UnmarshalProtoJSON ¶
func (x *Edges) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Edges message from JSON.
func (*Edges) UnmarshalVT ¶
type Flow ¶
type Flow int32
Flow arranges a node's children.
func (Flow) MarshalJSON ¶
MarshalJSON marshals the Flow to JSON.
func (Flow) MarshalProtoJSON ¶
func (x Flow) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Flow to JSON.
func (Flow) MarshalProtoText ¶
func (Flow) MarshalText ¶
MarshalText marshals the Flow to text.
func (*Flow) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Flow from JSON.
func (*Flow) UnmarshalProtoJSON ¶
func (x *Flow) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Flow from JSON.
func (*Flow) UnmarshalText ¶
UnmarshalText unmarshals the Flow from text.
type Kind ¶
type Kind int32
Kind selects the panel a node draws.
const ( // KIND_PANEL groups and lays out its children. Kind_KIND_PANEL Kind = 0 // KIND_LABEL shows text. Kind_KIND_LABEL Kind = 1 // KIND_IMAGE shows an image. Kind_KIND_IMAGE Kind = 2 // KIND_BUTTON holds its children and reports each press to the mod. A // button takes clicks only while the player has a cursor. Kind_KIND_BUTTON Kind = 3 )
func (Kind) MarshalJSON ¶
MarshalJSON marshals the Kind to JSON.
func (Kind) MarshalProtoJSON ¶
func (x Kind) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Kind to JSON.
func (Kind) MarshalProtoText ¶
func (Kind) MarshalText ¶
MarshalText marshals the Kind to text.
func (*Kind) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Kind from JSON.
func (*Kind) UnmarshalProtoJSON ¶
func (x *Kind) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Kind from JSON.
func (*Kind) UnmarshalText ¶
UnmarshalText unmarshals the Kind from text.
type Length ¶
type Length struct {
// Value selects the unit.
//
// Types that are assignable to Value:
//
// *Length_Pixels
// *Length_Percent
// *Length_FitChildren
// *Length_Fill
Value isLength_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
Length is a size along one axis.
func (*Length) CloneMessageVT ¶
func (m *Length) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Length) EqualMessageVT ¶
func (*Length) GetFitChildren ¶
func (*Length) GetPercent ¶
func (*Length) MarshalJSON ¶
MarshalJSON marshals the Length to JSON.
func (*Length) MarshalProtoJSON ¶
func (x *Length) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Length message to JSON.
func (*Length) MarshalProtoText ¶
func (*Length) MarshalToSizedBufferVT ¶
func (*Length) ProtoMessage ¶
func (*Length) ProtoMessage()
func (*Length) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Length from JSON.
func (*Length) UnmarshalProtoJSON ¶
func (x *Length) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Length message from JSON.
func (*Length) UnmarshalVT ¶
type Length_Fill ¶
type Length_Fill struct {
// Fill shares the space left in the parent's flow by this weight.
Fill float32 `protobuf:"fixed32,4,opt,name=fill,proto3,oneof"`
}
func (*Length_Fill) CloneOneofVT ¶
func (m *Length_Fill) CloneOneofVT() isLength_Value
func (*Length_Fill) CloneVT ¶
func (m *Length_Fill) CloneVT() *Length_Fill
func (*Length_Fill) EqualVT ¶
func (this *Length_Fill) EqualVT(thatIface isLength_Value) bool
func (*Length_Fill) MarshalToSizedBufferVT ¶
func (m *Length_Fill) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Length_Fill) MarshalToVT ¶
func (m *Length_Fill) MarshalToVT(dAtA []byte) (int, error)
func (*Length_Fill) SizeVT ¶
func (m *Length_Fill) SizeVT() (n int)
type Length_FitChildren ¶
type Length_FitChildren struct {
// FitChildren sizes the node to its children.
FitChildren bool `protobuf:"varint,3,opt,name=fit_children,json=fitChildren,proto3,oneof"`
}
func (*Length_FitChildren) CloneOneofVT ¶
func (m *Length_FitChildren) CloneOneofVT() isLength_Value
func (*Length_FitChildren) CloneVT ¶
func (m *Length_FitChildren) CloneVT() *Length_FitChildren
func (*Length_FitChildren) EqualVT ¶
func (this *Length_FitChildren) EqualVT(thatIface isLength_Value) bool
func (*Length_FitChildren) MarshalToSizedBufferVT ¶
func (m *Length_FitChildren) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Length_FitChildren) MarshalToVT ¶
func (m *Length_FitChildren) MarshalToVT(dAtA []byte) (int, error)
func (*Length_FitChildren) SizeVT ¶
func (m *Length_FitChildren) SizeVT() (n int)
type Length_Percent ¶
type Length_Percent struct {
// Percent is a share of the parent's size, from 0 to 100.
Percent float32 `protobuf:"fixed32,2,opt,name=percent,proto3,oneof"`
}
func (*Length_Percent) CloneOneofVT ¶
func (m *Length_Percent) CloneOneofVT() isLength_Value
func (*Length_Percent) CloneVT ¶
func (m *Length_Percent) CloneVT() *Length_Percent
func (*Length_Percent) EqualVT ¶
func (this *Length_Percent) EqualVT(thatIface isLength_Value) bool
func (*Length_Percent) MarshalToSizedBufferVT ¶
func (m *Length_Percent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Length_Percent) MarshalToVT ¶
func (m *Length_Percent) MarshalToVT(dAtA []byte) (int, error)
func (*Length_Percent) SizeVT ¶
func (m *Length_Percent) SizeVT() (n int)
type Length_Pixels ¶
type Length_Pixels struct {
// Pixels is a fixed size.
Pixels float32 `protobuf:"fixed32,1,opt,name=pixels,proto3,oneof"`
}
func (*Length_Pixels) CloneOneofVT ¶
func (m *Length_Pixels) CloneOneofVT() isLength_Value
func (*Length_Pixels) CloneVT ¶
func (m *Length_Pixels) CloneVT() *Length_Pixels
func (*Length_Pixels) EqualVT ¶
func (this *Length_Pixels) EqualVT(thatIface isLength_Value) bool
func (*Length_Pixels) MarshalToSizedBufferVT ¶
func (m *Length_Pixels) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Length_Pixels) MarshalToVT ¶
func (m *Length_Pixels) MarshalToVT(dAtA []byte) (int, error)
func (*Length_Pixels) SizeVT ¶
func (m *Length_Pixels) SizeVT() (n int)
type Node ¶
type Node struct {
// Id names the node within its tree.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Kind selects the panel the node draws.
Kind Kind `protobuf:"varint,2,opt,name=kind,proto3" json:"kind,omitempty"`
// Children lists the ids of the node's children in drawing order. A node
// that no parent lists is not drawn.
Children []string `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
// Text is a label's words.
Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
// Image is an image's path in the game's content, such as
// "file://{images}/heroes/wraith_card.psd".
Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"`
// Style lays out and paints the node.
Style *Style `protobuf:"bytes,6,opt,name=style,proto3" json:"style,omitempty"`
// contains filtered or unexported fields
}
Node is one panel in a tree. The root's id is empty; it is a full-screen panel that lets clicks through to the game.
func (*Node) CloneMessageVT ¶
func (m *Node) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Node) EqualMessageVT ¶
func (*Node) GetChildren ¶
func (*Node) MarshalJSON ¶
MarshalJSON marshals the Node to JSON.
func (*Node) MarshalProtoJSON ¶
func (x *Node) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Node message to JSON.
func (*Node) MarshalProtoText ¶
func (*Node) MarshalToSizedBufferVT ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Node from JSON.
func (*Node) UnmarshalProtoJSON ¶
func (x *Node) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Node message from JSON.
func (*Node) UnmarshalVT ¶
type Screen ¶
type Screen struct {
// Trees holds one tree per mod that shows this player anything.
Trees []*Tree `protobuf:"bytes,1,rep,name=trees,proto3" json:"trees,omitempty"`
// contains filtered or unexported fields
}
Screen is everything one player's renderer draws: each mod's tree.
func (*Screen) CloneMessageVT ¶
func (m *Screen) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Screen) EqualMessageVT ¶
func (*Screen) MarshalJSON ¶
MarshalJSON marshals the Screen to JSON.
func (*Screen) MarshalProtoJSON ¶
func (x *Screen) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Screen message to JSON.
func (*Screen) MarshalProtoText ¶
func (*Screen) MarshalToSizedBufferVT ¶
func (*Screen) ProtoMessage ¶
func (*Screen) ProtoMessage()
func (*Screen) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Screen from JSON.
func (*Screen) UnmarshalProtoJSON ¶
func (x *Screen) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Screen message from JSON.
func (*Screen) UnmarshalVT ¶
type Style ¶
type Style struct {
// Width is the node's width.
Width *Length `protobuf:"bytes,1,opt,name=width,proto3" json:"width,omitempty"`
// Height is the node's height.
Height *Length `protobuf:"bytes,2,opt,name=height,proto3" json:"height,omitempty"`
// Flow arranges the node's children.
Flow Flow `protobuf:"varint,3,opt,name=flow,proto3" json:"flow,omitempty"`
// HorizontalAlign places the node within its parent's width.
HorizontalAlign Align `protobuf:"varint,4,opt,name=horizontal_align,json=horizontalAlign,proto3" json:"horizontalAlign,omitempty"`
// VerticalAlign places the node within its parent's height.
VerticalAlign Align `protobuf:"varint,5,opt,name=vertical_align,json=verticalAlign,proto3" json:"verticalAlign,omitempty"`
// Margin is the space outside the node, in pixels.
Margin *Edges `protobuf:"bytes,6,opt,name=margin,proto3" json:"margin,omitempty"`
// Padding is the space between the node's edge and its children, in pixels.
Padding *Edges `protobuf:"bytes,7,opt,name=padding,proto3" json:"padding,omitempty"`
// Background is the fill color as 0xRRGGBBAA; zero is transparent.
Background uint32 `protobuf:"fixed32,8,opt,name=background,proto3" json:"background,omitempty"`
// Color is the text color as 0xRRGGBBAA; zero keeps the default.
Color uint32 `protobuf:"fixed32,9,opt,name=color,proto3" json:"color,omitempty"`
// FontSize is the text size in pixels; zero keeps the default.
FontSize float32 `protobuf:"fixed32,10,opt,name=font_size,json=fontSize,proto3" json:"fontSize,omitempty"`
// Bold sets bold text.
Bold bool `protobuf:"varint,11,opt,name=bold,proto3" json:"bold,omitempty"`
// TextAlign places text within a label.
TextAlign Align `protobuf:"varint,12,opt,name=text_align,json=textAlign,proto3" json:"textAlign,omitempty"`
// BorderRadius rounds the corners, in pixels.
BorderRadius float32 `protobuf:"fixed32,13,opt,name=border_radius,json=borderRadius,proto3" json:"borderRadius,omitempty"`
// Opacity fades the node and its children, from 0 to 1; unset is opaque.
Opacity *float32 `protobuf:"fixed32,14,opt,name=opacity,proto3,oneof" json:"opacity,omitempty"`
// contains filtered or unexported fields
}
Style is the closed set of layout and paint properties a node may set. A zero value leaves the panel's default.
func (*Style) CloneMessageVT ¶
func (m *Style) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Style) EqualMessageVT ¶
func (*Style) GetBackground ¶
func (*Style) GetBorderRadius ¶
func (*Style) GetFontSize ¶
func (*Style) GetHorizontalAlign ¶
func (*Style) GetOpacity ¶
func (*Style) GetPadding ¶
func (*Style) GetTextAlign ¶
func (*Style) GetVerticalAlign ¶
func (*Style) MarshalJSON ¶
MarshalJSON marshals the Style to JSON.
func (*Style) MarshalProtoJSON ¶
func (x *Style) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Style message to JSON.
func (*Style) MarshalProtoText ¶
func (*Style) MarshalToSizedBufferVT ¶
func (*Style) ProtoMessage ¶
func (*Style) ProtoMessage()
func (*Style) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Style from JSON.
func (*Style) UnmarshalProtoJSON ¶
func (x *Style) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Style message from JSON.
func (*Style) UnmarshalVT ¶
type Tree ¶
type Tree struct {
// Mod is the mod's name.
Mod string `protobuf:"bytes,1,opt,name=mod,proto3" json:"mod,omitempty"`
// Nodes holds every node, the root included.
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
// contains filtered or unexported fields
}
Tree is one mod's whole tree for one player.
func (*Tree) CloneMessageVT ¶
func (m *Tree) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Tree) EqualMessageVT ¶
func (*Tree) MarshalJSON ¶
MarshalJSON marshals the Tree to JSON.
func (*Tree) MarshalProtoJSON ¶
func (x *Tree) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Tree message to JSON.
func (*Tree) MarshalProtoText ¶
func (*Tree) MarshalToSizedBufferVT ¶
func (*Tree) ProtoMessage ¶
func (*Tree) ProtoMessage()
func (*Tree) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Tree from JSON.
func (*Tree) UnmarshalProtoJSON ¶
func (x *Tree) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Tree message from JSON.