ui

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scaling_name = map[int32]string{
		0: "SCALING_DEFAULT",
		1: "SCALING_FIT",
		2: "SCALING_COVER",
		3: "SCALING_STRETCH",
		4: "SCALING_FIT_WIDTH",
		5: "SCALING_FIT_HEIGHT",
		6: "SCALING_NONE",
	}
	Scaling_value = map[string]int32{
		"SCALING_DEFAULT":    0,
		"SCALING_FIT":        1,
		"SCALING_COVER":      2,
		"SCALING_STRETCH":    3,
		"SCALING_FIT_WIDTH":  4,
		"SCALING_FIT_HEIGHT": 5,
		"SCALING_NONE":       6,
	}
)

Enum value maps for Scaling.

View Source
var (
	HeroLook_name = map[int32]string{
		0: "HERO_LOOK_SMALL",
		1: "HERO_LOOK_CARD",
		2: "HERO_LOOK_ICON",
		3: "HERO_LOOK_VERTICAL",
		4: "HERO_LOOK_TOP_BAR",
		5: "HERO_LOOK_MINIMAP",
	}
	HeroLook_value = map[string]int32{
		"HERO_LOOK_SMALL":    0,
		"HERO_LOOK_CARD":     1,
		"HERO_LOOK_ICON":     2,
		"HERO_LOOK_VERTICAL": 3,
		"HERO_LOOK_TOP_BAR":  4,
		"HERO_LOOK_MINIMAP":  5,
	}
)

Enum value maps for HeroLook.

View Source
var (
	HudPart_name = map[int32]string{
		0: "HUD_PART_UNKNOWN",
		1: "HUD_PART_LEVEL_UP",
		2: "HUD_PART_OWN_HEALTH",
		3: "HUD_PART_TOP_BAR",
		4: "HUD_PART_AMMO",
		5: "HUD_PART_SOULS",
		6: "HUD_PART_MINIMAP",
		7: "HUD_PART_ABILITIES",
		8: "HUD_PART_STATUS",
		9: "HUD_PART_STATS",
	}
	HudPart_value = map[string]int32{
		"HUD_PART_UNKNOWN":    0,
		"HUD_PART_LEVEL_UP":   1,
		"HUD_PART_OWN_HEALTH": 2,
		"HUD_PART_TOP_BAR":    3,
		"HUD_PART_AMMO":       4,
		"HUD_PART_SOULS":      5,
		"HUD_PART_MINIMAP":    6,
		"HUD_PART_ABILITIES":  7,
		"HUD_PART_STATUS":     8,
		"HUD_PART_STATS":      9,
	}
)

Enum value maps for HudPart.

View Source
var (
	Kind_name = map[int32]string{
		0: "KIND_PANEL",
		1: "KIND_LABEL",
		2: "KIND_IMAGE",
		3: "KIND_BUTTON",
		4: "KIND_LAYOUT",
		5: "KIND_ROUTE",
		6: "KIND_HERO_IMAGE",
		7: "KIND_INPUT",
		8: "KIND_AVATAR",
	}
	Kind_value = map[string]int32{
		"KIND_PANEL":      0,
		"KIND_LABEL":      1,
		"KIND_IMAGE":      2,
		"KIND_BUTTON":     3,
		"KIND_LAYOUT":     4,
		"KIND_ROUTE":      5,
		"KIND_HERO_IMAGE": 6,
		"KIND_INPUT":      7,
		"KIND_AVATAR":     8,
	}
)

Enum value maps for Kind.

View Source
var (
	Overflow_name = map[int32]string{
		0: "OVERFLOW_DEFAULT",
		1: "OVERFLOW_SQUISH",
		2: "OVERFLOW_CLIP",
		3: "OVERFLOW_SCROLL",
		4: "OVERFLOW_SHOW",
	}
	Overflow_value = map[string]int32{
		"OVERFLOW_DEFAULT": 0,
		"OVERFLOW_SQUISH":  1,
		"OVERFLOW_CLIP":    2,
		"OVERFLOW_SCROLL":  3,
		"OVERFLOW_SHOW":    4,
	}
)

Enum value maps for Overflow.

View Source
var (
	GradientShape_name = map[int32]string{
		0: "GRADIENT_SHAPE_DOWN",
		1: "GRADIENT_SHAPE_RIGHT",
		2: "GRADIENT_SHAPE_UP",
		3: "GRADIENT_SHAPE_LEFT",
		4: "GRADIENT_SHAPE_RADIAL",
	}
	GradientShape_value = map[string]int32{
		"GRADIENT_SHAPE_DOWN":   0,
		"GRADIENT_SHAPE_RIGHT":  1,
		"GRADIENT_SHAPE_UP":     2,
		"GRADIENT_SHAPE_LEFT":   3,
		"GRADIENT_SHAPE_RADIAL": 4,
	}
)

Enum value maps for GradientShape.

View Source
var (
	Weight_name = map[int32]string{
		0: "WEIGHT_DEFAULT",
		1: "WEIGHT_THIN",
		2: "WEIGHT_LIGHT",
		3: "WEIGHT_NORMAL",
		4: "WEIGHT_MEDIUM",
		5: "WEIGHT_SEMI_BOLD",
		6: "WEIGHT_BOLD",
		7: "WEIGHT_BLACK",
	}
	Weight_value = map[string]int32{
		"WEIGHT_DEFAULT":   0,
		"WEIGHT_THIN":      1,
		"WEIGHT_LIGHT":     2,
		"WEIGHT_NORMAL":    3,
		"WEIGHT_MEDIUM":    4,
		"WEIGHT_SEMI_BOLD": 5,
		"WEIGHT_BOLD":      6,
		"WEIGHT_BLACK":     7,
	}
)

Enum value maps for Weight.

View Source
var (
	TextOverflow_name = map[int32]string{
		0: "TEXT_OVERFLOW_DEFAULT",
		1: "TEXT_OVERFLOW_ELLIPSIS",
		2: "TEXT_OVERFLOW_SHRINK",
		3: "TEXT_OVERFLOW_CLIP",
	}
	TextOverflow_value = map[string]int32{
		"TEXT_OVERFLOW_DEFAULT":  0,
		"TEXT_OVERFLOW_ELLIPSIS": 1,
		"TEXT_OVERFLOW_SHRINK":   2,
		"TEXT_OVERFLOW_CLIP":     3,
	}
)

Enum value maps for TextOverflow.

View Source
var (
	Decoration_name = map[int32]string{
		0: "DECORATION_NONE",
		1: "DECORATION_UNDERLINE",
		2: "DECORATION_STRIKE",
	}
	Decoration_value = map[string]int32{
		"DECORATION_NONE":      0,
		"DECORATION_UNDERLINE": 1,
		"DECORATION_STRIKE":    2,
	}
)

Enum value maps for Decoration.

View Source
var (
	Easing_name = map[int32]string{
		0: "EASING_EASE_OUT",
		1: "EASING_EASE_IN",
		2: "EASING_EASE_IN_OUT",
		3: "EASING_LINEAR",
	}
	Easing_value = map[string]int32{
		"EASING_EASE_OUT":    0,
		"EASING_EASE_IN":     1,
		"EASING_EASE_IN_OUT": 2,
		"EASING_LINEAR":      3,
	}
)

Enum value maps for Easing.

View Source
var (
	Face_name = map[int32]string{
		0: "FACE_DEFAULT",
		1: "FACE_BODY",
		2: "FACE_BLOCK",
		3: "FACE_SERIF",
	}
	Face_value = map[string]int32{
		"FACE_DEFAULT": 0,
		"FACE_BODY":    1,
		"FACE_BLOCK":   2,
		"FACE_SERIF":   3,
	}
)

Enum value maps for Face.

View Source
var (
	Flow_name = map[int32]string{
		0: "FLOW_NONE",
		1: "FLOW_DOWN",
		2: "FLOW_RIGHT",
		3: "FLOW_DOWN_WRAP",
		4: "FLOW_RIGHT_WRAP",
	}
	Flow_value = map[string]int32{
		"FLOW_NONE":       0,
		"FLOW_DOWN":       1,
		"FLOW_RIGHT":      2,
		"FLOW_DOWN_WRAP":  3,
		"FLOW_RIGHT_WRAP": 4,
	}
)

Enum value maps for Flow.

View Source
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.

const (
	// ALIGN_START places it at the left or top.
	Align_ALIGN_START Align = 0
	// ALIGN_CENTER centers it.
	Align_ALIGN_CENTER Align = 1
	// ALIGN_END places it at the right or bottom.
	Align_ALIGN_END Align = 2
)

func (Align) Enum

func (x Align) Enum() *Align

func (Align) MarshalJSON

func (x Align) MarshalJSON() ([]byte, error)

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 (x Align) MarshalProtoText() string

func (Align) MarshalText

func (x Align) MarshalText() ([]byte, error)

MarshalText marshals the Align to text.

func (Align) String

func (x Align) String() string

func (*Align) UnmarshalJSON

func (x *Align) UnmarshalJSON(b []byte) error

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

func (x *Align) UnmarshalText(b []byte) error

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"`
	// Generation identifies the lifetime of the UI tree. Screen relays set it
	// so a reset survives coalescing with the next redraw. Zero keeps the
	// current generation, except an empty reset starts the next lifetime.
	// Raw native events have this field cleared before the screen owner
	// handles them; a mod cannot select its lifetime. Peer snapshots and
	// deltas carry the screen owner's nonzero generation unchanged.
	Generation uint64 `protobuf:"varint,4,opt,name=generation,proto3" json:"generation,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) CloneVT

func (m *Change) CloneVT() *Change

func (*Change) EqualMessageVT

func (this *Change) EqualMessageVT(thatMsg any) bool

func (*Change) EqualVT

func (this *Change) EqualVT(that *Change) bool

func (*Change) GetGeneration added in v0.1.72

func (x *Change) GetGeneration() uint64

func (*Change) GetRemoved

func (x *Change) GetRemoved() []string

func (*Change) GetReset_

func (x *Change) GetReset_() bool

func (*Change) GetSet

func (x *Change) GetSet() []*Node

func (*Change) MarshalJSON

func (x *Change) MarshalJSON() ([]byte, error)

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 (x *Change) MarshalProtoText() string

func (*Change) MarshalToSizedBufferVT

func (m *Change) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Change) MarshalToVT

func (m *Change) MarshalToVT(dAtA []byte) (int, error)

func (*Change) MarshalVT

func (m *Change) MarshalVT() (dAtA []byte, err error)

func (*Change) ProtoMessage

func (*Change) ProtoMessage()

func (*Change) Reset

func (x *Change) Reset()

func (*Change) SizeVT

func (m *Change) SizeVT() (n int)

func (*Change) String

func (x *Change) String() string

func (*Change) UnmarshalJSON

func (x *Change) UnmarshalJSON(b []byte) error

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

func (m *Change) UnmarshalVT(dAtA []byte) error

type Cycle added in v0.1.42

type Cycle struct {

	// Style is the style laid over the node's own at the far end of the cycle.
	Style *Style `protobuf:"bytes,1,opt,name=style,proto3" json:"style,omitempty"`
	// Seconds is how long each way takes.
	Seconds float32 `protobuf:"fixed32,2,opt,name=seconds,proto3" json:"seconds,omitempty"`
	// Count is how many times the node goes there and back; zero repeats while
	// it shows.
	Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

Cycle alternates a node between its style and another, easing each way.

func (*Cycle) CloneMessageVT added in v0.1.42

func (m *Cycle) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Cycle) CloneVT added in v0.1.42

func (m *Cycle) CloneVT() *Cycle

func (*Cycle) EqualMessageVT added in v0.1.42

func (this *Cycle) EqualMessageVT(thatMsg any) bool

func (*Cycle) EqualVT added in v0.1.42

func (this *Cycle) EqualVT(that *Cycle) bool

func (*Cycle) GetCount added in v0.1.42

func (x *Cycle) GetCount() uint32

func (*Cycle) GetSeconds added in v0.1.42

func (x *Cycle) GetSeconds() float32

func (*Cycle) GetStyle added in v0.1.42

func (x *Cycle) GetStyle() *Style

func (*Cycle) MarshalJSON added in v0.1.42

func (x *Cycle) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Cycle to JSON.

func (*Cycle) MarshalProtoJSON added in v0.1.42

func (x *Cycle) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Cycle message to JSON.

func (*Cycle) MarshalProtoText added in v0.1.42

func (x *Cycle) MarshalProtoText() string

func (*Cycle) MarshalToSizedBufferVT added in v0.1.42

func (m *Cycle) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Cycle) MarshalToVT added in v0.1.42

func (m *Cycle) MarshalToVT(dAtA []byte) (int, error)

func (*Cycle) MarshalVT added in v0.1.42

func (m *Cycle) MarshalVT() (dAtA []byte, err error)

func (*Cycle) ProtoMessage added in v0.1.42

func (*Cycle) ProtoMessage()

func (*Cycle) Reset added in v0.1.42

func (x *Cycle) Reset()

func (*Cycle) SizeVT added in v0.1.42

func (m *Cycle) SizeVT() (n int)

func (*Cycle) String added in v0.1.42

func (x *Cycle) String() string

func (*Cycle) UnmarshalJSON added in v0.1.42

func (x *Cycle) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Cycle from JSON.

func (*Cycle) UnmarshalProtoJSON added in v0.1.42

func (x *Cycle) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Cycle message from JSON.

func (*Cycle) UnmarshalVT added in v0.1.42

func (m *Cycle) UnmarshalVT(dAtA []byte) error

type Decoration added in v0.1.42

type Decoration int32

Decoration draws a line under or through text.

const (
	// DECORATION_NONE draws no line.
	Decoration_DECORATION_NONE Decoration = 0
	// DECORATION_UNDERLINE draws a line under the text.
	Decoration_DECORATION_UNDERLINE Decoration = 1
	// DECORATION_STRIKE draws a line through the text.
	Decoration_DECORATION_STRIKE Decoration = 2
)

func (Decoration) Enum added in v0.1.42

func (x Decoration) Enum() *Decoration

func (Decoration) MarshalJSON added in v0.1.42

func (x Decoration) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Decoration to JSON.

func (Decoration) MarshalProtoJSON added in v0.1.42

func (x Decoration) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Decoration to JSON.

func (Decoration) MarshalProtoText added in v0.1.42

func (x Decoration) MarshalProtoText() string

func (Decoration) MarshalText added in v0.1.42

func (x Decoration) MarshalText() ([]byte, error)

MarshalText marshals the Decoration to text.

func (Decoration) String added in v0.1.42

func (x Decoration) String() string

func (*Decoration) UnmarshalJSON added in v0.1.42

func (x *Decoration) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Decoration from JSON.

func (*Decoration) UnmarshalProtoJSON added in v0.1.42

func (x *Decoration) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Decoration from JSON.

func (*Decoration) UnmarshalText added in v0.1.42

func (x *Decoration) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Decoration from text.

type Dropdown struct {

	// Options are the choices, as the player reads them.
	Options []string `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
	// Selected is the index of the chosen option.
	Selected uint32 `protobuf:"varint,2,opt,name=selected,proto3" json:"selected,omitempty"`
	// contains filtered or unexported fields
}

Dropdown lets the player pick one of a list of options.

func (m *Dropdown) CloneMessageVT() protobuf_go_lite.CloneMessage
func (m *Dropdown) CloneVT() *Dropdown
func (this *Dropdown) EqualMessageVT(thatMsg any) bool
func (this *Dropdown) EqualVT(that *Dropdown) bool
func (x *Dropdown) GetOptions() []string
func (x *Dropdown) GetSelected() uint32
func (x *Dropdown) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Dropdown to JSON.

func (x *Dropdown) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Dropdown message to JSON.

func (x *Dropdown) MarshalProtoText() string
func (m *Dropdown) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (m *Dropdown) MarshalToVT(dAtA []byte) (int, error)
func (m *Dropdown) MarshalVT() (dAtA []byte, err error)
func (*Dropdown) ProtoMessage()
func (x *Dropdown) Reset()
func (m *Dropdown) SizeVT() (n int)
func (x *Dropdown) String() string
func (x *Dropdown) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Dropdown from JSON.

func (x *Dropdown) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Dropdown message from JSON.

func (m *Dropdown) UnmarshalVT(dAtA []byte) error

type Easing added in v0.1.42

type Easing int32

Easing shapes an animation's speed over its time.

const (
	// EASING_EASE_OUT starts fast and settles.
	Easing_EASING_EASE_OUT Easing = 0
	// EASING_EASE_IN starts slow and speeds up.
	Easing_EASING_EASE_IN Easing = 1
	// EASING_EASE_IN_OUT starts and ends slow.
	Easing_EASING_EASE_IN_OUT Easing = 2
	// EASING_LINEAR keeps one speed.
	Easing_EASING_LINEAR Easing = 3
)

func (Easing) Enum added in v0.1.42

func (x Easing) Enum() *Easing

func (Easing) MarshalJSON added in v0.1.42

func (x Easing) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Easing to JSON.

func (Easing) MarshalProtoJSON added in v0.1.42

func (x Easing) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Easing to JSON.

func (Easing) MarshalProtoText added in v0.1.42

func (x Easing) MarshalProtoText() string

func (Easing) MarshalText added in v0.1.42

func (x Easing) MarshalText() ([]byte, error)

MarshalText marshals the Easing to text.

func (Easing) String added in v0.1.42

func (x Easing) String() string

func (*Easing) UnmarshalJSON added in v0.1.42

func (x *Easing) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Easing from JSON.

func (*Easing) UnmarshalProtoJSON added in v0.1.42

func (x *Easing) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Easing from JSON.

func (*Easing) UnmarshalText added in v0.1.42

func (x *Easing) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Easing from text.

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) CloneVT

func (m *Edges) CloneVT() *Edges

func (*Edges) EqualMessageVT

func (this *Edges) EqualMessageVT(thatMsg any) bool

func (*Edges) EqualVT

func (this *Edges) EqualVT(that *Edges) bool

func (*Edges) GetBottom

func (x *Edges) GetBottom() float32

func (*Edges) GetLeft

func (x *Edges) GetLeft() float32

func (*Edges) GetRight

func (x *Edges) GetRight() float32

func (*Edges) GetTop

func (x *Edges) GetTop() float32

func (*Edges) MarshalJSON

func (x *Edges) MarshalJSON() ([]byte, error)

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 (x *Edges) MarshalProtoText() string

func (*Edges) MarshalToSizedBufferVT

func (m *Edges) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Edges) MarshalToVT

func (m *Edges) MarshalToVT(dAtA []byte) (int, error)

func (*Edges) MarshalVT

func (m *Edges) MarshalVT() (dAtA []byte, err error)

func (*Edges) ProtoMessage

func (*Edges) ProtoMessage()

func (*Edges) Reset

func (x *Edges) Reset()

func (*Edges) SizeVT

func (m *Edges) SizeVT() (n int)

func (*Edges) String

func (x *Edges) String() string

func (*Edges) UnmarshalJSON

func (x *Edges) UnmarshalJSON(b []byte) error

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

func (m *Edges) UnmarshalVT(dAtA []byte) error

type Face

type Face int32

Face is one of the game's typefaces.

const (
	// FACE_DEFAULT keeps the panel's typeface.
	Face_FACE_DEFAULT Face = 0
	// FACE_BODY is the game's text face, Retail Demo.
	Face_FACE_BODY Face = 1
	// FACE_BLOCK is the game's heading face, VALVEPulp, which draws the match
	// clock and round titles.
	Face_FACE_BLOCK Face = 2
	// FACE_SERIF is the game's menu face, Reaver.
	Face_FACE_SERIF Face = 3
)

func (Face) Enum

func (x Face) Enum() *Face

func (Face) MarshalJSON

func (x Face) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Face to JSON.

func (Face) MarshalProtoJSON

func (x Face) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Face to JSON.

func (Face) MarshalProtoText

func (x Face) MarshalProtoText() string

func (Face) MarshalText

func (x Face) MarshalText() ([]byte, error)

MarshalText marshals the Face to text.

func (Face) String

func (x Face) String() string

func (*Face) UnmarshalJSON

func (x *Face) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Face from JSON.

func (*Face) UnmarshalProtoJSON

func (x *Face) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Face from JSON.

func (*Face) UnmarshalText

func (x *Face) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Face from text.

type Flow

type Flow int32

Flow arranges a node's children.

const (
	// FLOW_NONE stacks children on top of each other.
	Flow_FLOW_NONE Flow = 0
	// FLOW_DOWN places children in a column.
	Flow_FLOW_DOWN Flow = 1
	// FLOW_RIGHT places children in a row.
	Flow_FLOW_RIGHT Flow = 2
	// FLOW_DOWN_WRAP places children in columns, starting a new column where
	// one is full.
	Flow_FLOW_DOWN_WRAP Flow = 3
	// FLOW_RIGHT_WRAP places children in rows, starting a new row where one is
	// full.
	Flow_FLOW_RIGHT_WRAP Flow = 4
)

func (Flow) Enum

func (x Flow) Enum() *Flow

func (Flow) MarshalJSON

func (x Flow) MarshalJSON() ([]byte, error)

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 (x Flow) MarshalProtoText() string

func (Flow) MarshalText

func (x Flow) MarshalText() ([]byte, error)

MarshalText marshals the Flow to text.

func (Flow) String

func (x Flow) String() string

func (*Flow) UnmarshalJSON

func (x *Flow) UnmarshalJSON(b []byte) error

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

func (x *Flow) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Flow from text.

type Gradient added in v0.1.42

type Gradient struct {

	// Shape is the direction or shape the colors run in.
	Shape GradientShape `protobuf:"varint,1,opt,name=shape,proto3" json:"shape,omitempty"`
	// Stops are the colors and where each sits, in order.
	Stops []*GradientStop `protobuf:"bytes,2,rep,name=stops,proto3" json:"stops,omitempty"`
	// contains filtered or unexported fields
}

Gradient blends colors across a node.

func (*Gradient) CloneMessageVT added in v0.1.42

func (m *Gradient) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Gradient) CloneVT added in v0.1.42

func (m *Gradient) CloneVT() *Gradient

func (*Gradient) EqualMessageVT added in v0.1.42

func (this *Gradient) EqualMessageVT(thatMsg any) bool

func (*Gradient) EqualVT added in v0.1.42

func (this *Gradient) EqualVT(that *Gradient) bool

func (*Gradient) GetShape added in v0.1.42

func (x *Gradient) GetShape() GradientShape

func (*Gradient) GetStops added in v0.1.42

func (x *Gradient) GetStops() []*GradientStop

func (*Gradient) MarshalJSON added in v0.1.42

func (x *Gradient) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Gradient to JSON.

func (*Gradient) MarshalProtoJSON added in v0.1.42

func (x *Gradient) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Gradient message to JSON.

func (*Gradient) MarshalProtoText added in v0.1.42

func (x *Gradient) MarshalProtoText() string

func (*Gradient) MarshalToSizedBufferVT added in v0.1.42

func (m *Gradient) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Gradient) MarshalToVT added in v0.1.42

func (m *Gradient) MarshalToVT(dAtA []byte) (int, error)

func (*Gradient) MarshalVT added in v0.1.42

func (m *Gradient) MarshalVT() (dAtA []byte, err error)

func (*Gradient) ProtoMessage added in v0.1.42

func (*Gradient) ProtoMessage()

func (*Gradient) Reset added in v0.1.42

func (x *Gradient) Reset()

func (*Gradient) SizeVT added in v0.1.42

func (m *Gradient) SizeVT() (n int)

func (*Gradient) String added in v0.1.42

func (x *Gradient) String() string

func (*Gradient) UnmarshalJSON added in v0.1.42

func (x *Gradient) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Gradient from JSON.

func (*Gradient) UnmarshalProtoJSON added in v0.1.42

func (x *Gradient) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Gradient message from JSON.

func (*Gradient) UnmarshalVT added in v0.1.42

func (m *Gradient) UnmarshalVT(dAtA []byte) error

type GradientShape added in v0.1.42

type GradientShape int32

GradientShape is the direction or shape a gradient's colors run in.

const (
	// GRADIENT_SHAPE_DOWN runs from the top to the bottom.
	GradientShape_GRADIENT_SHAPE_DOWN GradientShape = 0
	// GRADIENT_SHAPE_RIGHT runs from the left to the right.
	GradientShape_GRADIENT_SHAPE_RIGHT GradientShape = 1
	// GRADIENT_SHAPE_UP runs from the bottom to the top.
	GradientShape_GRADIENT_SHAPE_UP GradientShape = 2
	// GRADIENT_SHAPE_LEFT runs from the right to the left.
	GradientShape_GRADIENT_SHAPE_LEFT GradientShape = 3
	// GRADIENT_SHAPE_RADIAL runs from the center out to the edges.
	GradientShape_GRADIENT_SHAPE_RADIAL GradientShape = 4
)

func (GradientShape) Enum added in v0.1.42

func (x GradientShape) Enum() *GradientShape

func (GradientShape) MarshalJSON added in v0.1.42

func (x GradientShape) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GradientShape to JSON.

func (GradientShape) MarshalProtoJSON added in v0.1.42

func (x GradientShape) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GradientShape to JSON.

func (GradientShape) MarshalProtoText added in v0.1.42

func (x GradientShape) MarshalProtoText() string

func (GradientShape) MarshalText added in v0.1.42

func (x GradientShape) MarshalText() ([]byte, error)

MarshalText marshals the GradientShape to text.

func (GradientShape) String added in v0.1.42

func (x GradientShape) String() string

func (*GradientShape) UnmarshalJSON added in v0.1.42

func (x *GradientShape) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GradientShape from JSON.

func (*GradientShape) UnmarshalProtoJSON added in v0.1.42

func (x *GradientShape) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GradientShape from JSON.

func (*GradientShape) UnmarshalText added in v0.1.42

func (x *GradientShape) UnmarshalText(b []byte) error

UnmarshalText unmarshals the GradientShape from text.

type GradientStop added in v0.1.42

type GradientStop struct {

	// At is where the color sits along the gradient, from 0 to 1.
	At float32 `protobuf:"fixed32,1,opt,name=at,proto3" json:"at,omitempty"`
	// Color is the color as 0xRRGGBBAA.
	Color uint32 `protobuf:"fixed32,2,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

GradientStop is one color of a gradient.

func (*GradientStop) CloneMessageVT added in v0.1.42

func (m *GradientStop) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*GradientStop) CloneVT added in v0.1.42

func (m *GradientStop) CloneVT() *GradientStop

func (*GradientStop) EqualMessageVT added in v0.1.42

func (this *GradientStop) EqualMessageVT(thatMsg any) bool

func (*GradientStop) EqualVT added in v0.1.42

func (this *GradientStop) EqualVT(that *GradientStop) bool

func (*GradientStop) GetAt added in v0.1.42

func (x *GradientStop) GetAt() float32

func (*GradientStop) GetColor added in v0.1.42

func (x *GradientStop) GetColor() uint32

func (*GradientStop) MarshalJSON added in v0.1.42

func (x *GradientStop) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GradientStop to JSON.

func (*GradientStop) MarshalProtoJSON added in v0.1.42

func (x *GradientStop) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GradientStop message to JSON.

func (*GradientStop) MarshalProtoText added in v0.1.42

func (x *GradientStop) MarshalProtoText() string

func (*GradientStop) MarshalToSizedBufferVT added in v0.1.42

func (m *GradientStop) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GradientStop) MarshalToVT added in v0.1.42

func (m *GradientStop) MarshalToVT(dAtA []byte) (int, error)

func (*GradientStop) MarshalVT added in v0.1.42

func (m *GradientStop) MarshalVT() (dAtA []byte, err error)

func (*GradientStop) ProtoMessage added in v0.1.42

func (*GradientStop) ProtoMessage()

func (*GradientStop) Reset added in v0.1.42

func (x *GradientStop) Reset()

func (*GradientStop) SizeVT added in v0.1.42

func (m *GradientStop) SizeVT() (n int)

func (*GradientStop) String added in v0.1.42

func (x *GradientStop) String() string

func (*GradientStop) UnmarshalJSON added in v0.1.42

func (x *GradientStop) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GradientStop from JSON.

func (*GradientStop) UnmarshalProtoJSON added in v0.1.42

func (x *GradientStop) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GradientStop message from JSON.

func (*GradientStop) UnmarshalVT added in v0.1.42

func (m *GradientStop) UnmarshalVT(dAtA []byte) error

type HeroLook added in v0.1.42

type HeroLook int32

HeroLook is one of the game's pictures of a hero.

const (
	// HERO_LOOK_SMALL is the square portrait of the kill feed and scoreboard.
	HeroLook_HERO_LOOK_SMALL HeroLook = 0
	// HERO_LOOK_CARD is the tall card the hero picker shows.
	HeroLook_HERO_LOOK_CARD HeroLook = 1
	// HERO_LOOK_ICON is the hero's round icon.
	HeroLook_HERO_LOOK_ICON HeroLook = 2
	// HERO_LOOK_VERTICAL is the narrow portrait of the hero grid.
	HeroLook_HERO_LOOK_VERTICAL HeroLook = 3
	// HERO_LOOK_TOP_BAR is the portrait in the bar across the top of the HUD.
	HeroLook_HERO_LOOK_TOP_BAR HeroLook = 4
	// HERO_LOOK_MINIMAP is the hero's minimap icon.
	HeroLook_HERO_LOOK_MINIMAP HeroLook = 5
)

func (HeroLook) Enum added in v0.1.42

func (x HeroLook) Enum() *HeroLook

func (HeroLook) MarshalJSON added in v0.1.42

func (x HeroLook) MarshalJSON() ([]byte, error)

MarshalJSON marshals the HeroLook to JSON.

func (HeroLook) MarshalProtoJSON added in v0.1.42

func (x HeroLook) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HeroLook to JSON.

func (HeroLook) MarshalProtoText added in v0.1.42

func (x HeroLook) MarshalProtoText() string

func (HeroLook) MarshalText added in v0.1.42

func (x HeroLook) MarshalText() ([]byte, error)

MarshalText marshals the HeroLook to text.

func (HeroLook) String added in v0.1.42

func (x HeroLook) String() string

func (*HeroLook) UnmarshalJSON added in v0.1.42

func (x *HeroLook) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the HeroLook from JSON.

func (*HeroLook) UnmarshalProtoJSON added in v0.1.42

func (x *HeroLook) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HeroLook from JSON.

func (*HeroLook) UnmarshalText added in v0.1.42

func (x *HeroLook) UnmarshalText(b []byte) error

UnmarshalText unmarshals the HeroLook from text.

type HudPart added in v0.1.13

type HudPart int32

HudPart is a part of the game's own HUD a mod may hide from a player.

const (
	// HUD_PART_UNKNOWN names no part.
	HudPart_HUD_PART_UNKNOWN HudPart = 0
	// HUD_PART_LEVEL_UP is the notice the game shows for each boon, ability
	// point and power increase.
	HudPart_HUD_PART_LEVEL_UP HudPart = 1
	// HUD_PART_OWN_HEALTH is the player's own health bar, with its shields and
	// regeneration, beside their abilities. The abilities, held items, status
	// icons and crosshair stay.
	HudPart_HUD_PART_OWN_HEALTH HudPart = 2
	// HUD_PART_TOP_BAR is the bar across the top of the screen: the team
	// scores, the hero portraits and the match clock. Chat stays.
	HudPart_HUD_PART_TOP_BAR HudPart = 3
	// HUD_PART_AMMO is the player's ammo: the clip ring and count around the
	// crosshair and the low and out of ammo warnings. The crosshair stays.
	HudPart_HUD_PART_AMMO HudPart = 4
	// HUD_PART_SOULS is the player's souls and level readout beside their
	// health. The abilities, items and health bar stay.
	HudPart_HUD_PART_SOULS HudPart = 5
	// HUD_PART_MINIMAP is the minimap with its hints and district name.
	HudPart_HUD_PART_MINIMAP HudPart = 6
	// HUD_PART_ABILITIES is the bar of the player's abilities and active items.
	// The health bar, souls, held items and crosshair stay.
	HudPart_HUD_PART_ABILITIES HudPart = 7
	// HUD_PART_STATUS is the game's own mark in the top-left corner, for a
	// frame that names the session there instead.
	HudPart_HUD_PART_STATUS HudPart = 8
	// HUD_PART_STATS is the block of the player's weapon, spirit and vitality
	// stats at the lower left. The souls, items and status icons beside it
	// stay.
	HudPart_HUD_PART_STATS HudPart = 9
)

func (HudPart) Enum added in v0.1.13

func (x HudPart) Enum() *HudPart

func (HudPart) MarshalJSON added in v0.1.13

func (x HudPart) MarshalJSON() ([]byte, error)

MarshalJSON marshals the HudPart to JSON.

func (HudPart) MarshalProtoJSON added in v0.1.13

func (x HudPart) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HudPart to JSON.

func (HudPart) MarshalProtoText added in v0.1.13

func (x HudPart) MarshalProtoText() string

func (HudPart) MarshalText added in v0.1.13

func (x HudPart) MarshalText() ([]byte, error)

MarshalText marshals the HudPart to text.

func (HudPart) String added in v0.1.13

func (x HudPart) String() string

func (*HudPart) UnmarshalJSON added in v0.1.13

func (x *HudPart) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the HudPart from JSON.

func (*HudPart) UnmarshalProtoJSON added in v0.1.13

func (x *HudPart) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HudPart from JSON.

func (*HudPart) UnmarshalText added in v0.1.13

func (x *HudPart) UnmarshalText(b []byte) error

UnmarshalText unmarshals the HudPart 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
	// KIND_LAYOUT loads the node's layout from the mod's content addon, whose
	// script runs in the player's game and talks to the mod through its own
	// console commands. Only a host that has reviewed the mod's content loads
	// it; Modlock's renderer draws an empty panel.
	Kind_KIND_LAYOUT Kind = 4
	// KIND_ROUTE draws nothing: it hands its data to every layout of the mod
	// under its route's name. No parent lists it.
	Kind_KIND_ROUTE Kind = 5
	// KIND_HERO_IMAGE shows one of the game's pictures of the node's hero.
	Kind_KIND_HERO_IMAGE Kind = 6
	// KIND_INPUT takes a value from the player in the control its input names.
	// An input takes clicks only while the player has a cursor.
	Kind_KIND_INPUT Kind = 7
	// KIND_AVATAR shows the Steam picture of the player its steam_id names.
	Kind_KIND_AVATAR Kind = 8
)

func (Kind) Enum

func (x Kind) Enum() *Kind

func (Kind) MarshalJSON

func (x Kind) MarshalJSON() ([]byte, error)

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 (x Kind) MarshalProtoText() string

func (Kind) MarshalText

func (x Kind) MarshalText() ([]byte, error)

MarshalText marshals the Kind to text.

func (Kind) String

func (x Kind) String() string

func (*Kind) UnmarshalJSON

func (x *Kind) UnmarshalJSON(b []byte) error

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

func (x *Kind) UnmarshalText(b []byte) error

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) CloneVT

func (m *Length) CloneVT() *Length

func (*Length) EqualMessageVT

func (this *Length) EqualMessageVT(thatMsg any) bool

func (*Length) EqualVT

func (this *Length) EqualVT(that *Length) bool

func (*Length) GetFill

func (x *Length) GetFill() float32

func (*Length) GetFitChildren

func (x *Length) GetFitChildren() bool

func (*Length) GetPercent

func (x *Length) GetPercent() float32

func (*Length) GetPixels

func (x *Length) GetPixels() float32

func (*Length) GetValue

func (m *Length) GetValue() isLength_Value

func (*Length) MarshalJSON

func (x *Length) MarshalJSON() ([]byte, error)

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 (x *Length) MarshalProtoText() string

func (*Length) MarshalToSizedBufferVT

func (m *Length) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Length) MarshalToVT

func (m *Length) MarshalToVT(dAtA []byte) (int, error)

func (*Length) MarshalVT

func (m *Length) MarshalVT() (dAtA []byte, err error)

func (*Length) ProtoMessage

func (*Length) ProtoMessage()

func (*Length) Reset

func (x *Length) Reset()

func (*Length) SizeVT

func (m *Length) SizeVT() (n int)

func (*Length) String

func (x *Length) String() string

func (*Length) UnmarshalJSON

func (x *Length) UnmarshalJSON(b []byte) error

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

func (m *Length) UnmarshalVT(dAtA []byte) error

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"`
	// Layout is a layout's path within the mod's content addon, such as
	// "inventory.xml": one or more segments of letters, digits, '_', '-' and
	// '.', none of them "..", ending in ".xml".
	Layout string `protobuf:"bytes,7,opt,name=layout,proto3" json:"layout,omitempty"`
	// Data is the JSON value a layout's script reads, or a route's value. The
	// renderer sets a layout's data as the modlock_data attribute of its panel
	// before loading the layout, and each route as the attribute
	// modlock_route_<route> of every layout of the mod. After a draw that
	// changes any of them it plays the sound event "modlock_data_changed",
	// which no sound has, so a script that registers for the unhandled
	// PlaySoundEffect event hears it and reads its attributes again. The
	// Panorama library scripts/modlock/layout.js does both for a layout.
	Data string `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
	// HideHud lists the parts of the game's own HUD the renderer hides while
	// the root holds them; only the root's list counts. A part shows again once
	// no mod's root lists it, so a mod that stops, a reset and a player who
	// leaves all bring it back.
	HideHud []HudPart `protobuf:"varint,9,rep,packed,name=hide_hud,json=hideHud,proto3" json:"hideHud,omitempty"`
	// Route names a route node's data route: one or more letters, digits, '_',
	// '-' and '.'.
	Route string `protobuf:"bytes,10,opt,name=route,proto3" json:"route,omitempty"`
	// Hover is the style drawn over the node's style while the pointer is over
	// it. Each property it sets returns to the node's own value, or to the
	// property's resting value, when the pointer leaves. A node with a hover
	// style takes the pointer, so the game behind it does not.
	Hover *Style `protobuf:"bytes,11,opt,name=hover,proto3" json:"hover,omitempty"`
	// Tooltip is the text the game's tooltip shows while the pointer is over the
	// node. A node with a tooltip takes the pointer.
	Tooltip string `protobuf:"bytes,12,opt,name=tooltip,proto3" json:"tooltip,omitempty"`
	// Item is an item's id, the game's string token of its class name, whose
	// shop card the game shows while the pointer is over the node, in place of
	// the tooltip. A node with an item takes the pointer.
	Item uint32 `protobuf:"varint,32,opt,name=item,proto3" json:"item,omitempty"`
	// Sound is the game's sound event a button plays when pressed, such as
	// "UI.MainMenu.Activate": one or more letters, digits, '_', '-' and '.'.
	Sound string `protobuf:"bytes,13,opt,name=sound,proto3" json:"sound,omitempty"`
	// HoverSound is the game's sound event played as the pointer enters the
	// node, named as sound is.
	HoverSound string `protobuf:"bytes,14,opt,name=hover_sound,json=hoverSound,proto3" json:"hoverSound,omitempty"`
	// Disabled keeps a button from taking presses; its style shows why.
	Disabled bool `protobuf:"varint,15,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Scaling fits an image or a hero's portrait into the node's box.
	Scaling Scaling `protobuf:"varint,16,opt,name=scaling,proto3" json:"scaling,omitempty"`
	// Hero is a hero image's hero, by the game's hero id.
	Hero int32 `protobuf:"varint,17,opt,name=hero,proto3" json:"hero,omitempty"`
	// HeroLook picks which of the game's pictures of the hero a hero image
	// draws.
	HeroLook HeroLook `protobuf:"varint,18,opt,name=hero_look,json=heroLook,proto3" json:"heroLook,omitempty"`
	// Input is the control an input node draws and the value it holds. Each
	// change the player makes reaches the mod as a UiInputEvent, which the host
	// checks against the control: a slider's range and step, a dropdown's
	// options, an entry's length. The renderer keeps the player's own edit
	// until a draw changes the value the node holds, so the mod's value is the
	// truth and a redraw for another reason does not undo a change in flight.
	//
	// Types that are assignable to Input:
	//	*Node_TextEntry
	//	*Node_Slider
	//	*Node_Toggle
	//	*Node_Dropdown
	Input isNode_Input `protobuf_oneof:"input"`
	// Token draws a label in the player's language: a token of the game's
	// localization, such as "#Citadel_HeroName_Haze", shown in place of text.
	// It is '#' then one or more letters, digits, '_', '-' and '.'.
	Token string `protobuf:"bytes,23,opt,name=token,proto3" json:"token,omitempty"`
	// Variables fill the {s:name} places in a localized label's token.
	Variables map[string]string `` /* 160-byte string literal not displayed */
	// SteamId is an avatar's player, by Steam id.
	SteamId uint64 `protobuf:"fixed64,25,opt,name=steam_id,json=steamId,proto3" json:"steamId,omitempty"`
	// Enter is the style a node's new panel starts from. The node's transition
	// eases it from there to the node's style, so it fades, slides or grows
	// in.
	Enter *Style `protobuf:"bytes,26,opt,name=enter,proto3" json:"enter,omitempty"`
	// Exit is the style a node's panel eases to, over its transition, when the
	// node leaves the tree; the panel goes once the transition ends.
	Exit *Style `protobuf:"bytes,27,opt,name=exit,proto3" json:"exit,omitempty"`
	// Cycle repeats a change to the node's style while it shows, such as a
	// pulse or a blink.
	Cycle *Cycle `protobuf:"bytes,28,opt,name=cycle,proto3" json:"cycle,omitempty"`
	// Classes names the node's classes, which the mod's style sheets select.
	// The renderer adds and removes only the classes that changed, so a change
	// starts the sheets' transitions. The node's style still wins over a class.
	Classes []string `protobuf:"bytes,29,rep,name=classes,proto3" json:"classes,omitempty"`
	// Sheets lists the mod's style sheets by their paths in its content addon's
	// styles directory, such as "hud.css"; only the root's list counts. Each
	// sheet styles the mod's panels and no other mod's, and a later sheet wins
	// over an earlier one. The renderer loads a sheet as the layout that the
	// build writes beside it, named for the sheet with ".xml" added, such as
	// "hud.css.xml", so a sheet loads only where the mod's layouts do. A path is
	// one or more segments of letters, digits, '_', '-' and '.', none of them
	// "..", ending in ".css".
	Sheets []string `protobuf:"bytes,30,rep,name=sheets,proto3" json:"sheets,omitempty"`
	// FreeCursor shows the player's mouse cursor without Tab held, so they can
	// click the mod's panels, while the root holds it; only the root's value
	// counts. Aiming returns once no mod's root frees the cursor, so a mod that
	// stops, a reset and a player who leaves all give the mouse back.
	FreeCursor bool `protobuf:"varint,31,opt,name=free_cursor,json=freeCursor,proto3" json:"freeCursor,omitempty"`
	// FreeCursorAsks counts the mod's explicit asks for the cursor. The player
	// can put the cursor away with the game's own keys, and that choice holds
	// until the count rises: a rise shows the cursor again while the root frees
	// it, and a screen that changes anything else leaves the player's choice be.
	FreeCursorAsks uint32 `protobuf:"varint,33,opt,name=free_cursor_asks,json=freeCursorAsks,proto3" json:"freeCursorAsks,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) CloneVT

func (m *Node) CloneVT() *Node

func (*Node) EqualMessageVT

func (this *Node) EqualMessageVT(thatMsg any) bool

func (*Node) EqualVT

func (this *Node) EqualVT(that *Node) bool

func (*Node) GetChildren

func (x *Node) GetChildren() []string

func (*Node) GetClasses added in v0.1.63

func (x *Node) GetClasses() []string

func (*Node) GetCycle added in v0.1.42

func (x *Node) GetCycle() *Cycle

func (*Node) GetData

func (x *Node) GetData() string

func (*Node) GetDisabled added in v0.1.42

func (x *Node) GetDisabled() bool

func (*Node) GetDropdown added in v0.1.42

func (x *Node) GetDropdown() *Dropdown

func (*Node) GetEnter added in v0.1.42

func (x *Node) GetEnter() *Style

func (*Node) GetExit added in v0.1.42

func (x *Node) GetExit() *Style

func (*Node) GetFreeCursor added in v0.1.66

func (x *Node) GetFreeCursor() bool

func (*Node) GetFreeCursorAsks added in v0.1.70

func (x *Node) GetFreeCursorAsks() uint32

func (*Node) GetHero added in v0.1.42

func (x *Node) GetHero() int32

func (*Node) GetHeroLook added in v0.1.42

func (x *Node) GetHeroLook() HeroLook

func (*Node) GetHideHud added in v0.1.13

func (x *Node) GetHideHud() []HudPart

func (*Node) GetHover added in v0.1.42

func (x *Node) GetHover() *Style

func (*Node) GetHoverSound added in v0.1.42

func (x *Node) GetHoverSound() string

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetImage

func (x *Node) GetImage() string

func (*Node) GetInput added in v0.1.42

func (m *Node) GetInput() isNode_Input

func (*Node) GetItem added in v0.1.67

func (x *Node) GetItem() uint32

func (*Node) GetKind

func (x *Node) GetKind() Kind

func (*Node) GetLayout

func (x *Node) GetLayout() string

func (*Node) GetRoute added in v0.1.14

func (x *Node) GetRoute() string

func (*Node) GetScaling added in v0.1.42

func (x *Node) GetScaling() Scaling

func (*Node) GetSheets added in v0.1.63

func (x *Node) GetSheets() []string

func (*Node) GetSlider added in v0.1.42

func (x *Node) GetSlider() *Slider

func (*Node) GetSound added in v0.1.42

func (x *Node) GetSound() string

func (*Node) GetSteamId added in v0.1.42

func (x *Node) GetSteamId() uint64

func (*Node) GetStyle

func (x *Node) GetStyle() *Style

func (*Node) GetText

func (x *Node) GetText() string

func (*Node) GetTextEntry added in v0.1.42

func (x *Node) GetTextEntry() *TextEntry

func (*Node) GetToggle added in v0.1.42

func (x *Node) GetToggle() *Toggle

func (*Node) GetToken added in v0.1.42

func (x *Node) GetToken() string

func (*Node) GetTooltip added in v0.1.42

func (x *Node) GetTooltip() string

func (*Node) GetVariables added in v0.1.42

func (x *Node) GetVariables() map[string]string

func (*Node) MarshalJSON

func (x *Node) MarshalJSON() ([]byte, error)

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 (x *Node) MarshalProtoText() string

func (*Node) MarshalToSizedBufferVT

func (m *Node) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Node) MarshalToVT

func (m *Node) MarshalToVT(dAtA []byte) (int, error)

func (*Node) MarshalVT

func (m *Node) MarshalVT() (dAtA []byte, err error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (x *Node) Reset()

func (*Node) SizeVT

func (m *Node) SizeVT() (n int)

func (*Node) String

func (x *Node) String() string

func (*Node) UnmarshalJSON

func (x *Node) UnmarshalJSON(b []byte) error

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

func (m *Node) UnmarshalVT(dAtA []byte) error

type Node_Dropdown added in v0.1.42

type Node_Dropdown struct {
	Dropdown *Dropdown `protobuf:"bytes,22,opt,name=dropdown,proto3,oneof"`
}

func (*Node_Dropdown) CloneOneofVT added in v0.1.42

func (m *Node_Dropdown) CloneOneofVT() isNode_Input

func (*Node_Dropdown) CloneVT added in v0.1.42

func (m *Node_Dropdown) CloneVT() *Node_Dropdown

func (*Node_Dropdown) EqualVT added in v0.1.42

func (this *Node_Dropdown) EqualVT(thatIface isNode_Input) bool

func (*Node_Dropdown) MarshalToSizedBufferVT added in v0.1.42

func (m *Node_Dropdown) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Node_Dropdown) MarshalToVT added in v0.1.42

func (m *Node_Dropdown) MarshalToVT(dAtA []byte) (int, error)

func (*Node_Dropdown) SizeVT added in v0.1.42

func (m *Node_Dropdown) SizeVT() (n int)

type Node_Slider added in v0.1.42

type Node_Slider struct {
	Slider *Slider `protobuf:"bytes,20,opt,name=slider,proto3,oneof"`
}

func (*Node_Slider) CloneOneofVT added in v0.1.42

func (m *Node_Slider) CloneOneofVT() isNode_Input

func (*Node_Slider) CloneVT added in v0.1.42

func (m *Node_Slider) CloneVT() *Node_Slider

func (*Node_Slider) EqualVT added in v0.1.42

func (this *Node_Slider) EqualVT(thatIface isNode_Input) bool

func (*Node_Slider) MarshalToSizedBufferVT added in v0.1.42

func (m *Node_Slider) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Node_Slider) MarshalToVT added in v0.1.42

func (m *Node_Slider) MarshalToVT(dAtA []byte) (int, error)

func (*Node_Slider) SizeVT added in v0.1.42

func (m *Node_Slider) SizeVT() (n int)

type Node_TextEntry added in v0.1.42

type Node_TextEntry struct {
	TextEntry *TextEntry `protobuf:"bytes,19,opt,name=text_entry,json=textEntry,proto3,oneof"`
}

func (*Node_TextEntry) CloneOneofVT added in v0.1.42

func (m *Node_TextEntry) CloneOneofVT() isNode_Input

func (*Node_TextEntry) CloneVT added in v0.1.42

func (m *Node_TextEntry) CloneVT() *Node_TextEntry

func (*Node_TextEntry) EqualVT added in v0.1.42

func (this *Node_TextEntry) EqualVT(thatIface isNode_Input) bool

func (*Node_TextEntry) MarshalToSizedBufferVT added in v0.1.42

func (m *Node_TextEntry) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Node_TextEntry) MarshalToVT added in v0.1.42

func (m *Node_TextEntry) MarshalToVT(dAtA []byte) (int, error)

func (*Node_TextEntry) SizeVT added in v0.1.42

func (m *Node_TextEntry) SizeVT() (n int)

type Node_Toggle added in v0.1.42

type Node_Toggle struct {
	Toggle *Toggle `protobuf:"bytes,21,opt,name=toggle,proto3,oneof"`
}

func (*Node_Toggle) CloneOneofVT added in v0.1.42

func (m *Node_Toggle) CloneOneofVT() isNode_Input

func (*Node_Toggle) CloneVT added in v0.1.42

func (m *Node_Toggle) CloneVT() *Node_Toggle

func (*Node_Toggle) EqualVT added in v0.1.42

func (this *Node_Toggle) EqualVT(thatIface isNode_Input) bool

func (*Node_Toggle) MarshalToSizedBufferVT added in v0.1.42

func (m *Node_Toggle) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Node_Toggle) MarshalToVT added in v0.1.42

func (m *Node_Toggle) MarshalToVT(dAtA []byte) (int, error)

func (*Node_Toggle) SizeVT added in v0.1.42

func (m *Node_Toggle) SizeVT() (n int)

type Node_VariablesEntry added in v0.1.42

type Node_VariablesEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Node_VariablesEntry) GetKey added in v0.1.42

func (x *Node_VariablesEntry) GetKey() string

func (*Node_VariablesEntry) GetValue added in v0.1.42

func (x *Node_VariablesEntry) GetValue() string

func (*Node_VariablesEntry) MarshalJSON added in v0.1.42

func (x *Node_VariablesEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Node_VariablesEntry to JSON.

func (*Node_VariablesEntry) MarshalProtoJSON added in v0.1.42

func (x *Node_VariablesEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Node_VariablesEntry message to JSON.

func (*Node_VariablesEntry) MarshalProtoText added in v0.1.42

func (x *Node_VariablesEntry) MarshalProtoText() string

func (*Node_VariablesEntry) ProtoMessage added in v0.1.42

func (*Node_VariablesEntry) ProtoMessage()

func (*Node_VariablesEntry) Reset added in v0.1.42

func (x *Node_VariablesEntry) Reset()

func (*Node_VariablesEntry) String added in v0.1.42

func (x *Node_VariablesEntry) String() string

func (*Node_VariablesEntry) UnmarshalJSON added in v0.1.42

func (x *Node_VariablesEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Node_VariablesEntry from JSON.

func (*Node_VariablesEntry) UnmarshalProtoJSON added in v0.1.42

func (x *Node_VariablesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Node_VariablesEntry message from JSON.

type Overflow added in v0.1.42

type Overflow int32

Overflow decides what happens to children that do not fit a node.

const (
	// OVERFLOW_DEFAULT keeps the panel's own behavior: they shrink to fit.
	Overflow_OVERFLOW_DEFAULT Overflow = 0
	// OVERFLOW_SQUISH shrinks the children to fit.
	Overflow_OVERFLOW_SQUISH Overflow = 1
	// OVERFLOW_CLIP cuts off what does not fit.
	Overflow_OVERFLOW_CLIP Overflow = 2
	// OVERFLOW_SCROLL lets the player scroll to what does not fit.
	Overflow_OVERFLOW_SCROLL Overflow = 3
	// OVERFLOW_SHOW draws what does not fit outside the node.
	Overflow_OVERFLOW_SHOW Overflow = 4
)

func (Overflow) Enum added in v0.1.42

func (x Overflow) Enum() *Overflow

func (Overflow) MarshalJSON added in v0.1.42

func (x Overflow) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Overflow to JSON.

func (Overflow) MarshalProtoJSON added in v0.1.42

func (x Overflow) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Overflow to JSON.

func (Overflow) MarshalProtoText added in v0.1.42

func (x Overflow) MarshalProtoText() string

func (Overflow) MarshalText added in v0.1.42

func (x Overflow) MarshalText() ([]byte, error)

MarshalText marshals the Overflow to text.

func (Overflow) String added in v0.1.42

func (x Overflow) String() string

func (*Overflow) UnmarshalJSON added in v0.1.42

func (x *Overflow) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Overflow from JSON.

func (*Overflow) UnmarshalProtoJSON added in v0.1.42

func (x *Overflow) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Overflow from JSON.

func (*Overflow) UnmarshalText added in v0.1.42

func (x *Overflow) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Overflow from text.

type Region added in v0.1.15

type Region struct {

	// Left is the box's left edge, from 0 to 1.
	Left float32 `protobuf:"fixed32,1,opt,name=left,proto3" json:"left,omitempty"`
	// Top is the box's top edge, from 0 to 1.
	Top float32 `protobuf:"fixed32,2,opt,name=top,proto3" json:"top,omitempty"`
	// Width is the box's width, from 0 to 1.
	Width float32 `protobuf:"fixed32,3,opt,name=width,proto3" json:"width,omitempty"`
	// Height is the box's height, from 0 to 1.
	Height float32 `protobuf:"fixed32,4,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

Region is a box on the screen, each side a fraction of the screen's width or height from its left or top edge.

func (*Region) CloneMessageVT added in v0.1.15

func (m *Region) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Region) CloneVT added in v0.1.15

func (m *Region) CloneVT() *Region

func (*Region) EqualMessageVT added in v0.1.15

func (this *Region) EqualMessageVT(thatMsg any) bool

func (*Region) EqualVT added in v0.1.15

func (this *Region) EqualVT(that *Region) bool

func (*Region) GetHeight added in v0.1.15

func (x *Region) GetHeight() float32

func (*Region) GetLeft added in v0.1.15

func (x *Region) GetLeft() float32

func (*Region) GetTop added in v0.1.15

func (x *Region) GetTop() float32

func (*Region) GetWidth added in v0.1.15

func (x *Region) GetWidth() float32

func (*Region) MarshalJSON added in v0.1.15

func (x *Region) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Region to JSON.

func (*Region) MarshalProtoJSON added in v0.1.15

func (x *Region) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Region message to JSON.

func (*Region) MarshalProtoText added in v0.1.15

func (x *Region) MarshalProtoText() string

func (*Region) MarshalToSizedBufferVT added in v0.1.15

func (m *Region) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Region) MarshalToVT added in v0.1.15

func (m *Region) MarshalToVT(dAtA []byte) (int, error)

func (*Region) MarshalVT added in v0.1.15

func (m *Region) MarshalVT() (dAtA []byte, err error)

func (*Region) ProtoMessage added in v0.1.15

func (*Region) ProtoMessage()

func (*Region) Reset added in v0.1.15

func (x *Region) Reset()

func (*Region) SizeVT added in v0.1.15

func (m *Region) SizeVT() (n int)

func (*Region) String added in v0.1.15

func (x *Region) String() string

func (*Region) UnmarshalJSON added in v0.1.15

func (x *Region) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Region from JSON.

func (*Region) UnmarshalProtoJSON added in v0.1.15

func (x *Region) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Region message from JSON.

func (*Region) UnmarshalVT added in v0.1.15

func (m *Region) UnmarshalVT(dAtA []byte) error

type Scaling added in v0.1.42

type Scaling int32

Scaling fits a picture into its node's box.

const (
	// SCALING_DEFAULT keeps the panel's own scaling: an image fits its box,
	// keeping its shape.
	Scaling_SCALING_DEFAULT Scaling = 0
	// SCALING_FIT shows the whole picture in the box, keeping its shape.
	Scaling_SCALING_FIT Scaling = 1
	// SCALING_COVER fills the box, keeping the picture's shape and cropping what
	// falls outside.
	Scaling_SCALING_COVER Scaling = 2
	// SCALING_STRETCH fills the box, stretching the picture.
	Scaling_SCALING_STRETCH Scaling = 3
	// SCALING_FIT_WIDTH fits the picture's width to the box, keeping its shape.
	Scaling_SCALING_FIT_WIDTH Scaling = 4
	// SCALING_FIT_HEIGHT fits the picture's height to the box, keeping its
	// shape.
	Scaling_SCALING_FIT_HEIGHT Scaling = 5
	// SCALING_NONE draws the picture at its own size.
	Scaling_SCALING_NONE Scaling = 6
)

func (Scaling) Enum added in v0.1.42

func (x Scaling) Enum() *Scaling

func (Scaling) MarshalJSON added in v0.1.42

func (x Scaling) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Scaling to JSON.

func (Scaling) MarshalProtoJSON added in v0.1.42

func (x Scaling) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Scaling to JSON.

func (Scaling) MarshalProtoText added in v0.1.42

func (x Scaling) MarshalProtoText() string

func (Scaling) MarshalText added in v0.1.42

func (x Scaling) MarshalText() ([]byte, error)

MarshalText marshals the Scaling to text.

func (Scaling) String added in v0.1.42

func (x Scaling) String() string

func (*Scaling) UnmarshalJSON added in v0.1.42

func (x *Scaling) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Scaling from JSON.

func (*Scaling) UnmarshalProtoJSON added in v0.1.42

func (x *Scaling) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Scaling from JSON.

func (*Scaling) UnmarshalText added in v0.1.42

func (x *Scaling) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Scaling from text.

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) CloneVT

func (m *Screen) CloneVT() *Screen

func (*Screen) EqualMessageVT

func (this *Screen) EqualMessageVT(thatMsg any) bool

func (*Screen) EqualVT

func (this *Screen) EqualVT(that *Screen) bool

func (*Screen) GetTrees

func (x *Screen) GetTrees() []*Tree

func (*Screen) MarshalJSON

func (x *Screen) MarshalJSON() ([]byte, error)

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 (x *Screen) MarshalProtoText() string

func (*Screen) MarshalToSizedBufferVT

func (m *Screen) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Screen) MarshalToVT

func (m *Screen) MarshalToVT(dAtA []byte) (int, error)

func (*Screen) MarshalVT

func (m *Screen) MarshalVT() (dAtA []byte, err error)

func (*Screen) ProtoMessage

func (*Screen) ProtoMessage()

func (*Screen) Reset

func (x *Screen) Reset()

func (*Screen) SizeVT

func (m *Screen) SizeVT() (n int)

func (*Screen) String

func (x *Screen) String() string

func (*Screen) UnmarshalJSON

func (x *Screen) UnmarshalJSON(b []byte) error

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

func (m *Screen) UnmarshalVT(dAtA []byte) error

type Shadow added in v0.1.42

type Shadow struct {

	// X and Y offset the shadow, in pixels.
	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
	// Blur softens the shadow's edge, in pixels.
	Blur float32 `protobuf:"fixed32,3,opt,name=blur,proto3" json:"blur,omitempty"`
	// Spread grows a box's shadow, in pixels, or strengthens a text shadow.
	Spread float32 `protobuf:"fixed32,4,opt,name=spread,proto3" json:"spread,omitempty"`
	// Color is the shadow's color as 0xRRGGBBAA.
	Color uint32 `protobuf:"fixed32,5,opt,name=color,proto3" json:"color,omitempty"`
	// Inset draws a box's shadow inside its edge.
	Inset bool `protobuf:"varint,6,opt,name=inset,proto3" json:"inset,omitempty"`
	// contains filtered or unexported fields
}

Shadow is a soft shadow under text or around a box.

func (*Shadow) CloneMessageVT added in v0.1.42

func (m *Shadow) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Shadow) CloneVT added in v0.1.42

func (m *Shadow) CloneVT() *Shadow

func (*Shadow) EqualMessageVT added in v0.1.42

func (this *Shadow) EqualMessageVT(thatMsg any) bool

func (*Shadow) EqualVT added in v0.1.42

func (this *Shadow) EqualVT(that *Shadow) bool

func (*Shadow) GetBlur added in v0.1.42

func (x *Shadow) GetBlur() float32

func (*Shadow) GetColor added in v0.1.42

func (x *Shadow) GetColor() uint32

func (*Shadow) GetInset added in v0.1.42

func (x *Shadow) GetInset() bool

func (*Shadow) GetSpread added in v0.1.42

func (x *Shadow) GetSpread() float32

func (*Shadow) GetX added in v0.1.42

func (x *Shadow) GetX() float32

func (*Shadow) GetY added in v0.1.42

func (x *Shadow) GetY() float32

func (*Shadow) MarshalJSON added in v0.1.42

func (x *Shadow) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Shadow to JSON.

func (*Shadow) MarshalProtoJSON added in v0.1.42

func (x *Shadow) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Shadow message to JSON.

func (*Shadow) MarshalProtoText added in v0.1.42

func (x *Shadow) MarshalProtoText() string

func (*Shadow) MarshalToSizedBufferVT added in v0.1.42

func (m *Shadow) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Shadow) MarshalToVT added in v0.1.42

func (m *Shadow) MarshalToVT(dAtA []byte) (int, error)

func (*Shadow) MarshalVT added in v0.1.42

func (m *Shadow) MarshalVT() (dAtA []byte, err error)

func (*Shadow) ProtoMessage added in v0.1.42

func (*Shadow) ProtoMessage()

func (*Shadow) Reset added in v0.1.42

func (x *Shadow) Reset()

func (*Shadow) SizeVT added in v0.1.42

func (m *Shadow) SizeVT() (n int)

func (*Shadow) String added in v0.1.42

func (x *Shadow) String() string

func (*Shadow) UnmarshalJSON added in v0.1.42

func (x *Shadow) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Shadow from JSON.

func (*Shadow) UnmarshalProtoJSON added in v0.1.42

func (x *Shadow) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Shadow message from JSON.

func (*Shadow) UnmarshalVT added in v0.1.42

func (m *Shadow) UnmarshalVT(dAtA []byte) error

type Slider added in v0.1.42

type Slider struct {

	// Value is the number the slider holds.
	Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
	// Min and Max bound the value; a max no greater than min means 0 to 1.
	Min float32 `protobuf:"fixed32,2,opt,name=min,proto3" json:"min,omitempty"`
	Max float32 `protobuf:"fixed32,3,opt,name=max,proto3" json:"max,omitempty"`
	// Step is the distance between the values the slider stops at; zero lets
	// it stop anywhere.
	Step float32 `protobuf:"fixed32,4,opt,name=step,proto3" json:"step,omitempty"`
	// Wheel enables scoped wheel events while the pointer is over the slider.
	Wheel bool `protobuf:"varint,5,opt,name=wheel,proto3" json:"wheel,omitempty"`
	// contains filtered or unexported fields
}

Slider is a bar the player drags to a number.

func (*Slider) CloneMessageVT added in v0.1.42

func (m *Slider) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Slider) CloneVT added in v0.1.42

func (m *Slider) CloneVT() *Slider

func (*Slider) EqualMessageVT added in v0.1.42

func (this *Slider) EqualMessageVT(thatMsg any) bool

func (*Slider) EqualVT added in v0.1.42

func (this *Slider) EqualVT(that *Slider) bool

func (*Slider) GetMax added in v0.1.42

func (x *Slider) GetMax() float32

func (*Slider) GetMin added in v0.1.42

func (x *Slider) GetMin() float32

func (*Slider) GetStep added in v0.1.42

func (x *Slider) GetStep() float32

func (*Slider) GetValue added in v0.1.42

func (x *Slider) GetValue() float32

func (*Slider) GetWheel added in v0.1.68

func (x *Slider) GetWheel() bool

func (*Slider) MarshalJSON added in v0.1.42

func (x *Slider) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Slider to JSON.

func (*Slider) MarshalProtoJSON added in v0.1.42

func (x *Slider) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Slider message to JSON.

func (*Slider) MarshalProtoText added in v0.1.42

func (x *Slider) MarshalProtoText() string

func (*Slider) MarshalToSizedBufferVT added in v0.1.42

func (m *Slider) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Slider) MarshalToVT added in v0.1.42

func (m *Slider) MarshalToVT(dAtA []byte) (int, error)

func (*Slider) MarshalVT added in v0.1.42

func (m *Slider) MarshalVT() (dAtA []byte, err error)

func (*Slider) ProtoMessage added in v0.1.42

func (*Slider) ProtoMessage()

func (*Slider) Reset added in v0.1.42

func (x *Slider) Reset()

func (*Slider) SizeVT added in v0.1.42

func (m *Slider) SizeVT() (n int)

func (*Slider) String added in v0.1.42

func (x *Slider) String() string

func (*Slider) UnmarshalJSON added in v0.1.42

func (x *Slider) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Slider from JSON.

func (*Slider) UnmarshalProtoJSON added in v0.1.42

func (x *Slider) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Slider message from JSON.

func (*Slider) UnmarshalVT added in v0.1.42

func (m *Slider) UnmarshalVT(dAtA []byte) error

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"`
	// Face is the text's typeface, one of the game's own.
	Face Face `protobuf:"varint,15,opt,name=face,proto3" json:"face,omitempty"`
	// Uppercase sets the text in capitals.
	Uppercase bool `protobuf:"varint,16,opt,name=uppercase,proto3" json:"uppercase,omitempty"`
	// LetterSpacing widens the space between letters, in pixels.
	LetterSpacing float32 `protobuf:"fixed32,17,opt,name=letter_spacing,json=letterSpacing,proto3" json:"letterSpacing,omitempty"`
	// Shadow draws a soft drop shadow under the text, which keeps it readable
	// over the world.
	Shadow bool `protobuf:"varint,18,opt,name=shadow,proto3" json:"shadow,omitempty"`
	// BorderWidth is the width of a line around the node's edge, in pixels.
	BorderWidth float32 `protobuf:"fixed32,19,opt,name=border_width,json=borderWidth,proto3" json:"borderWidth,omitempty"`
	// BorderColor is the edge line's color as 0xRRGGBBAA. The line is drawn
	// only when both its width and its color are set.
	BorderColor uint32 `protobuf:"fixed32,20,opt,name=border_color,json=borderColor,proto3" json:"borderColor,omitempty"`
	// X and Y place the node at an offset from its parent's top left corner,
	// in pixels or a percent of the parent, outside the parent's flow.
	X *Length `protobuf:"bytes,21,opt,name=x,proto3" json:"x,omitempty"`
	Y *Length `protobuf:"bytes,22,opt,name=y,proto3" json:"y,omitempty"`
	// MinWidth, MaxWidth, MinHeight and MaxHeight bound the node's size.
	MinWidth  *Length `protobuf:"bytes,23,opt,name=min_width,json=minWidth,proto3" json:"minWidth,omitempty"`
	MaxWidth  *Length `protobuf:"bytes,24,opt,name=max_width,json=maxWidth,proto3" json:"maxWidth,omitempty"`
	MinHeight *Length `protobuf:"bytes,25,opt,name=min_height,json=minHeight,proto3" json:"minHeight,omitempty"`
	MaxHeight *Length `protobuf:"bytes,26,opt,name=max_height,json=maxHeight,proto3" json:"maxHeight,omitempty"`
	// ZIndex draws the node above its siblings with a lower index; zero keeps
	// the drawing order.
	ZIndex int32 `protobuf:"varint,27,opt,name=z_index,json=zIndex,proto3" json:"zIndex,omitempty"`
	// OverflowX and OverflowY decide what happens to children that do not fit
	// across and down.
	OverflowX Overflow `protobuf:"varint,28,opt,name=overflow_x,json=overflowX,proto3" json:"overflowX,omitempty"`
	OverflowY Overflow `protobuf:"varint,29,opt,name=overflow_y,json=overflowY,proto3" json:"overflowY,omitempty"`
	// Gradient fills the node with a gradient in place of its background.
	Gradient *Gradient `protobuf:"bytes,30,opt,name=gradient,proto3" json:"gradient,omitempty"`
	// BoxShadow draws a shadow around or inside the node's box.
	BoxShadow *Shadow `protobuf:"bytes,31,opt,name=box_shadow,json=boxShadow,proto3" json:"boxShadow,omitempty"`
	// TextShadow draws this shadow under the text in place of shadow's.
	TextShadow *Shadow `protobuf:"bytes,32,opt,name=text_shadow,json=textShadow,proto3" json:"textShadow,omitempty"`
	// Tint washes the node and its children with a color as 0xRRGGBBAA, which
	// recolors a white icon; zero leaves them.
	Tint uint32 `protobuf:"fixed32,33,opt,name=tint,proto3" json:"tint,omitempty"`
	// Saturation, Brightness and Contrast scale the node's colors; 1 leaves
	// them, unset leaves them.
	Saturation *float32 `protobuf:"fixed32,34,opt,name=saturation,proto3,oneof" json:"saturation,omitempty"`
	Brightness *float32 `protobuf:"fixed32,35,opt,name=brightness,proto3,oneof" json:"brightness,omitempty"`
	Contrast   *float32 `protobuf:"fixed32,36,opt,name=contrast,proto3,oneof" json:"contrast,omitempty"`
	// Blur blurs the node and its children by a radius in pixels.
	Blur float32 `protobuf:"fixed32,37,opt,name=blur,proto3" json:"blur,omitempty"`
	// Italic slants the text.
	Italic bool `protobuf:"varint,38,opt,name=italic,proto3" json:"italic,omitempty"`
	// Weight sets the text's weight in place of bold.
	Weight Weight `protobuf:"varint,39,opt,name=weight,proto3" json:"weight,omitempty"`
	// LineHeight is the height of each line of text, in pixels.
	LineHeight float32 `protobuf:"fixed32,40,opt,name=line_height,json=lineHeight,proto3" json:"lineHeight,omitempty"`
	// NoWrap keeps the text on one line.
	NoWrap bool `protobuf:"varint,41,opt,name=no_wrap,json=noWrap,proto3" json:"noWrap,omitempty"`
	// TextOverflow decides what text that does not fit its box does.
	TextOverflow TextOverflow `protobuf:"varint,42,opt,name=text_overflow,json=textOverflow,proto3" json:"textOverflow,omitempty"`
	// Decoration draws a line under or through the text.
	Decoration Decoration `protobuf:"varint,43,opt,name=decoration,proto3" json:"decoration,omitempty"`
	// Transform moves, scales and rotates the node as drawn, without moving its
	// neighbors.
	Transform *Transform `protobuf:"bytes,44,opt,name=transform,proto3" json:"transform,omitempty"`
	// Transition animates each change to the node's style, and the move to and
	// from its hover style, instead of snapping to it.
	Transition *Transition `protobuf:"bytes,45,opt,name=transition,proto3" json:"transition,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) CloneVT

func (m *Style) CloneVT() *Style

func (*Style) EqualMessageVT

func (this *Style) EqualMessageVT(thatMsg any) bool

func (*Style) EqualVT

func (this *Style) EqualVT(that *Style) bool

func (*Style) GetBackground

func (x *Style) GetBackground() uint32

func (*Style) GetBlur added in v0.1.42

func (x *Style) GetBlur() float32

func (*Style) GetBold

func (x *Style) GetBold() bool

func (*Style) GetBorderColor

func (x *Style) GetBorderColor() uint32

func (*Style) GetBorderRadius

func (x *Style) GetBorderRadius() float32

func (*Style) GetBorderWidth

func (x *Style) GetBorderWidth() float32

func (*Style) GetBoxShadow added in v0.1.42

func (x *Style) GetBoxShadow() *Shadow

func (*Style) GetBrightness added in v0.1.42

func (x *Style) GetBrightness() float32

func (*Style) GetColor

func (x *Style) GetColor() uint32

func (*Style) GetContrast added in v0.1.42

func (x *Style) GetContrast() float32

func (*Style) GetDecoration added in v0.1.42

func (x *Style) GetDecoration() Decoration

func (*Style) GetFace

func (x *Style) GetFace() Face

func (*Style) GetFlow

func (x *Style) GetFlow() Flow

func (*Style) GetFontSize

func (x *Style) GetFontSize() float32

func (*Style) GetGradient added in v0.1.42

func (x *Style) GetGradient() *Gradient

func (*Style) GetHeight

func (x *Style) GetHeight() *Length

func (*Style) GetHorizontalAlign

func (x *Style) GetHorizontalAlign() Align

func (*Style) GetItalic added in v0.1.42

func (x *Style) GetItalic() bool

func (*Style) GetLetterSpacing

func (x *Style) GetLetterSpacing() float32

func (*Style) GetLineHeight added in v0.1.42

func (x *Style) GetLineHeight() float32

func (*Style) GetMargin

func (x *Style) GetMargin() *Edges

func (*Style) GetMaxHeight added in v0.1.42

func (x *Style) GetMaxHeight() *Length

func (*Style) GetMaxWidth added in v0.1.42

func (x *Style) GetMaxWidth() *Length

func (*Style) GetMinHeight added in v0.1.42

func (x *Style) GetMinHeight() *Length

func (*Style) GetMinWidth added in v0.1.42

func (x *Style) GetMinWidth() *Length

func (*Style) GetNoWrap added in v0.1.42

func (x *Style) GetNoWrap() bool

func (*Style) GetOpacity

func (x *Style) GetOpacity() float32

func (*Style) GetOverflowX added in v0.1.42

func (x *Style) GetOverflowX() Overflow

func (*Style) GetOverflowY added in v0.1.42

func (x *Style) GetOverflowY() Overflow

func (*Style) GetPadding

func (x *Style) GetPadding() *Edges

func (*Style) GetSaturation added in v0.1.42

func (x *Style) GetSaturation() float32

func (*Style) GetShadow

func (x *Style) GetShadow() bool

func (*Style) GetTextAlign

func (x *Style) GetTextAlign() Align

func (*Style) GetTextOverflow added in v0.1.42

func (x *Style) GetTextOverflow() TextOverflow

func (*Style) GetTextShadow added in v0.1.42

func (x *Style) GetTextShadow() *Shadow

func (*Style) GetTint added in v0.1.42

func (x *Style) GetTint() uint32

func (*Style) GetTransform added in v0.1.42

func (x *Style) GetTransform() *Transform

func (*Style) GetTransition added in v0.1.42

func (x *Style) GetTransition() *Transition

func (*Style) GetUppercase

func (x *Style) GetUppercase() bool

func (*Style) GetVerticalAlign

func (x *Style) GetVerticalAlign() Align

func (*Style) GetWeight added in v0.1.42

func (x *Style) GetWeight() Weight

func (*Style) GetWidth

func (x *Style) GetWidth() *Length

func (*Style) GetX added in v0.1.42

func (x *Style) GetX() *Length

func (*Style) GetY added in v0.1.42

func (x *Style) GetY() *Length

func (*Style) GetZIndex added in v0.1.42

func (x *Style) GetZIndex() int32

func (*Style) MarshalJSON

func (x *Style) MarshalJSON() ([]byte, error)

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 (x *Style) MarshalProtoText() string

func (*Style) MarshalToSizedBufferVT

func (m *Style) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Style) MarshalToVT

func (m *Style) MarshalToVT(dAtA []byte) (int, error)

func (*Style) MarshalVT

func (m *Style) MarshalVT() (dAtA []byte, err error)

func (*Style) ProtoMessage

func (*Style) ProtoMessage()

func (*Style) Reset

func (x *Style) Reset()

func (*Style) SizeVT

func (m *Style) SizeVT() (n int)

func (*Style) String

func (x *Style) String() string

func (*Style) UnmarshalJSON

func (x *Style) UnmarshalJSON(b []byte) error

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

func (m *Style) UnmarshalVT(dAtA []byte) error

type TextEntry added in v0.1.42

type TextEntry struct {

	// Text is the box's text.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// Placeholder is the faint text an empty box shows.
	Placeholder string `protobuf:"bytes,2,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	// MaxLength bounds the text, in characters; zero means 100. The host takes
	// at most 240 bytes of text, so a console line carries it.
	MaxLength uint32 `protobuf:"varint,3,opt,name=max_length,json=maxLength,proto3" json:"maxLength,omitempty"`
	// contains filtered or unexported fields
}

TextEntry is a box the player types a line of text into.

func (*TextEntry) CloneMessageVT added in v0.1.42

func (m *TextEntry) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*TextEntry) CloneVT added in v0.1.42

func (m *TextEntry) CloneVT() *TextEntry

func (*TextEntry) EqualMessageVT added in v0.1.42

func (this *TextEntry) EqualMessageVT(thatMsg any) bool

func (*TextEntry) EqualVT added in v0.1.42

func (this *TextEntry) EqualVT(that *TextEntry) bool

func (*TextEntry) GetMaxLength added in v0.1.42

func (x *TextEntry) GetMaxLength() uint32

func (*TextEntry) GetPlaceholder added in v0.1.42

func (x *TextEntry) GetPlaceholder() string

func (*TextEntry) GetText added in v0.1.42

func (x *TextEntry) GetText() string

func (*TextEntry) MarshalJSON added in v0.1.42

func (x *TextEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the TextEntry to JSON.

func (*TextEntry) MarshalProtoJSON added in v0.1.42

func (x *TextEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the TextEntry message to JSON.

func (*TextEntry) MarshalProtoText added in v0.1.42

func (x *TextEntry) MarshalProtoText() string

func (*TextEntry) MarshalToSizedBufferVT added in v0.1.42

func (m *TextEntry) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TextEntry) MarshalToVT added in v0.1.42

func (m *TextEntry) MarshalToVT(dAtA []byte) (int, error)

func (*TextEntry) MarshalVT added in v0.1.42

func (m *TextEntry) MarshalVT() (dAtA []byte, err error)

func (*TextEntry) ProtoMessage added in v0.1.42

func (*TextEntry) ProtoMessage()

func (*TextEntry) Reset added in v0.1.42

func (x *TextEntry) Reset()

func (*TextEntry) SizeVT added in v0.1.42

func (m *TextEntry) SizeVT() (n int)

func (*TextEntry) String added in v0.1.42

func (x *TextEntry) String() string

func (*TextEntry) UnmarshalJSON added in v0.1.42

func (x *TextEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the TextEntry from JSON.

func (*TextEntry) UnmarshalProtoJSON added in v0.1.42

func (x *TextEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the TextEntry message from JSON.

func (*TextEntry) UnmarshalVT added in v0.1.42

func (m *TextEntry) UnmarshalVT(dAtA []byte) error

type TextOverflow added in v0.1.42

type TextOverflow int32

TextOverflow decides what text that does not fit its box does.

const (
	// TEXT_OVERFLOW_DEFAULT keeps the panel's behavior.
	TextOverflow_TEXT_OVERFLOW_DEFAULT TextOverflow = 0
	// TEXT_OVERFLOW_ELLIPSIS ends the text that fits with an ellipsis.
	TextOverflow_TEXT_OVERFLOW_ELLIPSIS TextOverflow = 1
	// TEXT_OVERFLOW_SHRINK makes the text smaller until it fits.
	TextOverflow_TEXT_OVERFLOW_SHRINK TextOverflow = 2
	// TEXT_OVERFLOW_CLIP cuts the text off at the box's edge.
	TextOverflow_TEXT_OVERFLOW_CLIP TextOverflow = 3
)

func (TextOverflow) Enum added in v0.1.42

func (x TextOverflow) Enum() *TextOverflow

func (TextOverflow) MarshalJSON added in v0.1.42

func (x TextOverflow) MarshalJSON() ([]byte, error)

MarshalJSON marshals the TextOverflow to JSON.

func (TextOverflow) MarshalProtoJSON added in v0.1.42

func (x TextOverflow) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the TextOverflow to JSON.

func (TextOverflow) MarshalProtoText added in v0.1.42

func (x TextOverflow) MarshalProtoText() string

func (TextOverflow) MarshalText added in v0.1.42

func (x TextOverflow) MarshalText() ([]byte, error)

MarshalText marshals the TextOverflow to text.

func (TextOverflow) String added in v0.1.42

func (x TextOverflow) String() string

func (*TextOverflow) UnmarshalJSON added in v0.1.42

func (x *TextOverflow) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the TextOverflow from JSON.

func (*TextOverflow) UnmarshalProtoJSON added in v0.1.42

func (x *TextOverflow) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the TextOverflow from JSON.

func (*TextOverflow) UnmarshalText added in v0.1.42

func (x *TextOverflow) UnmarshalText(b []byte) error

UnmarshalText unmarshals the TextOverflow from text.

type Toggle added in v0.1.42

type Toggle struct {

	// On reports whether the box is checked.
	On bool `protobuf:"varint,1,opt,name=on,proto3" json:"on,omitempty"`
	// contains filtered or unexported fields
}

Toggle is a box the player checks or clears. The node's text labels it.

func (*Toggle) CloneMessageVT added in v0.1.42

func (m *Toggle) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Toggle) CloneVT added in v0.1.42

func (m *Toggle) CloneVT() *Toggle

func (*Toggle) EqualMessageVT added in v0.1.42

func (this *Toggle) EqualMessageVT(thatMsg any) bool

func (*Toggle) EqualVT added in v0.1.42

func (this *Toggle) EqualVT(that *Toggle) bool

func (*Toggle) GetOn added in v0.1.42

func (x *Toggle) GetOn() bool

func (*Toggle) MarshalJSON added in v0.1.42

func (x *Toggle) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Toggle to JSON.

func (*Toggle) MarshalProtoJSON added in v0.1.42

func (x *Toggle) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Toggle message to JSON.

func (*Toggle) MarshalProtoText added in v0.1.42

func (x *Toggle) MarshalProtoText() string

func (*Toggle) MarshalToSizedBufferVT added in v0.1.42

func (m *Toggle) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Toggle) MarshalToVT added in v0.1.42

func (m *Toggle) MarshalToVT(dAtA []byte) (int, error)

func (*Toggle) MarshalVT added in v0.1.42

func (m *Toggle) MarshalVT() (dAtA []byte, err error)

func (*Toggle) ProtoMessage added in v0.1.42

func (*Toggle) ProtoMessage()

func (*Toggle) Reset added in v0.1.42

func (x *Toggle) Reset()

func (*Toggle) SizeVT added in v0.1.42

func (m *Toggle) SizeVT() (n int)

func (*Toggle) String added in v0.1.42

func (x *Toggle) String() string

func (*Toggle) UnmarshalJSON added in v0.1.42

func (x *Toggle) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Toggle from JSON.

func (*Toggle) UnmarshalProtoJSON added in v0.1.42

func (x *Toggle) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Toggle message from JSON.

func (*Toggle) UnmarshalVT added in v0.1.42

func (m *Toggle) UnmarshalVT(dAtA []byte) error

type Transform added in v0.1.42

type Transform struct {

	// TranslateX and TranslateY move the node, in pixels.
	TranslateX float32 `protobuf:"fixed32,1,opt,name=translate_x,json=translateX,proto3" json:"translateX,omitempty"`
	TranslateY float32 `protobuf:"fixed32,2,opt,name=translate_y,json=translateY,proto3" json:"translateY,omitempty"`
	// ScaleX and ScaleY scale the node; unset is 1.
	ScaleX *float32 `protobuf:"fixed32,3,opt,name=scale_x,json=scaleX,proto3,oneof" json:"scaleX,omitempty"`
	ScaleY *float32 `protobuf:"fixed32,4,opt,name=scale_y,json=scaleY,proto3,oneof" json:"scaleY,omitempty"`
	// Rotate turns the node clockwise, in degrees.
	Rotate float32 `protobuf:"fixed32,5,opt,name=rotate,proto3" json:"rotate,omitempty"`
	// OriginX and OriginY are the point the node scales and turns about, as a
	// percent of its size; unset is its center.
	OriginX *float32 `protobuf:"fixed32,6,opt,name=origin_x,json=originX,proto3,oneof" json:"originX,omitempty"`
	OriginY *float32 `protobuf:"fixed32,7,opt,name=origin_y,json=originY,proto3,oneof" json:"originY,omitempty"`
	// contains filtered or unexported fields
}

Transform moves, scales and rotates a node as drawn.

func (*Transform) CloneMessageVT added in v0.1.42

func (m *Transform) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Transform) CloneVT added in v0.1.42

func (m *Transform) CloneVT() *Transform

func (*Transform) EqualMessageVT added in v0.1.42

func (this *Transform) EqualMessageVT(thatMsg any) bool

func (*Transform) EqualVT added in v0.1.42

func (this *Transform) EqualVT(that *Transform) bool

func (*Transform) GetOriginX added in v0.1.42

func (x *Transform) GetOriginX() float32

func (*Transform) GetOriginY added in v0.1.42

func (x *Transform) GetOriginY() float32

func (*Transform) GetRotate added in v0.1.42

func (x *Transform) GetRotate() float32

func (*Transform) GetScaleX added in v0.1.42

func (x *Transform) GetScaleX() float32

func (*Transform) GetScaleY added in v0.1.42

func (x *Transform) GetScaleY() float32

func (*Transform) GetTranslateX added in v0.1.42

func (x *Transform) GetTranslateX() float32

func (*Transform) GetTranslateY added in v0.1.42

func (x *Transform) GetTranslateY() float32

func (*Transform) MarshalJSON added in v0.1.42

func (x *Transform) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Transform to JSON.

func (*Transform) MarshalProtoJSON added in v0.1.42

func (x *Transform) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Transform message to JSON.

func (*Transform) MarshalProtoText added in v0.1.42

func (x *Transform) MarshalProtoText() string

func (*Transform) MarshalToSizedBufferVT added in v0.1.42

func (m *Transform) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Transform) MarshalToVT added in v0.1.42

func (m *Transform) MarshalToVT(dAtA []byte) (int, error)

func (*Transform) MarshalVT added in v0.1.42

func (m *Transform) MarshalVT() (dAtA []byte, err error)

func (*Transform) ProtoMessage added in v0.1.42

func (*Transform) ProtoMessage()

func (*Transform) Reset added in v0.1.42

func (x *Transform) Reset()

func (*Transform) SizeVT added in v0.1.42

func (m *Transform) SizeVT() (n int)

func (*Transform) String added in v0.1.42

func (x *Transform) String() string

func (*Transform) UnmarshalJSON added in v0.1.42

func (x *Transform) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Transform from JSON.

func (*Transform) UnmarshalProtoJSON added in v0.1.42

func (x *Transform) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Transform message from JSON.

func (*Transform) UnmarshalVT added in v0.1.42

func (m *Transform) UnmarshalVT(dAtA []byte) error

type Transition added in v0.1.42

type Transition struct {

	// Seconds is how long each change takes.
	Seconds float32 `protobuf:"fixed32,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	// Delay is how long each change waits before it starts, in seconds.
	Delay float32 `protobuf:"fixed32,2,opt,name=delay,proto3" json:"delay,omitempty"`
	// Easing shapes the change's speed over its time.
	Easing Easing `protobuf:"varint,3,opt,name=easing,proto3" json:"easing,omitempty"`
	// contains filtered or unexported fields
}

Transition animates a node's style changes.

func (*Transition) CloneMessageVT added in v0.1.42

func (m *Transition) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Transition) CloneVT added in v0.1.42

func (m *Transition) CloneVT() *Transition

func (*Transition) EqualMessageVT added in v0.1.42

func (this *Transition) EqualMessageVT(thatMsg any) bool

func (*Transition) EqualVT added in v0.1.42

func (this *Transition) EqualVT(that *Transition) bool

func (*Transition) GetDelay added in v0.1.42

func (x *Transition) GetDelay() float32

func (*Transition) GetEasing added in v0.1.42

func (x *Transition) GetEasing() Easing

func (*Transition) GetSeconds added in v0.1.42

func (x *Transition) GetSeconds() float32

func (*Transition) MarshalJSON added in v0.1.42

func (x *Transition) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Transition to JSON.

func (*Transition) MarshalProtoJSON added in v0.1.42

func (x *Transition) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Transition message to JSON.

func (*Transition) MarshalProtoText added in v0.1.42

func (x *Transition) MarshalProtoText() string

func (*Transition) MarshalToSizedBufferVT added in v0.1.42

func (m *Transition) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Transition) MarshalToVT added in v0.1.42

func (m *Transition) MarshalToVT(dAtA []byte) (int, error)

func (*Transition) MarshalVT added in v0.1.42

func (m *Transition) MarshalVT() (dAtA []byte, err error)

func (*Transition) ProtoMessage added in v0.1.42

func (*Transition) ProtoMessage()

func (*Transition) Reset added in v0.1.42

func (x *Transition) Reset()

func (*Transition) SizeVT added in v0.1.42

func (m *Transition) SizeVT() (n int)

func (*Transition) String added in v0.1.42

func (x *Transition) String() string

func (*Transition) UnmarshalJSON added in v0.1.42

func (x *Transition) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Transition from JSON.

func (*Transition) UnmarshalProtoJSON added in v0.1.42

func (x *Transition) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Transition message from JSON.

func (*Transition) UnmarshalVT added in v0.1.42

func (m *Transition) UnmarshalVT(dAtA []byte) error

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"`
	// Region is the box the renderer places the root in, for a mod that shares
	// the screen with another, such as a game one mod runs inside another's.
	// Without one, the root fills the screen.
	Region *Region `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	// Addon is the name of the mod's content addon, which holds the layouts and
	// style sheets the tree names. The host that mounted the addon sets it; it is
	// empty for a mod with no content.
	Addon string `protobuf:"bytes,4,opt,name=addon,proto3" json:"addon,omitempty"`
	// Generation changes when the mod clears this player's UI. A renderer
	// replaces the old panels when it changes, even if their nodes match.
	Generation uint64 `protobuf:"varint,5,opt,name=generation,proto3" json:"generation,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) CloneVT

func (m *Tree) CloneVT() *Tree

func (*Tree) EqualMessageVT

func (this *Tree) EqualMessageVT(thatMsg any) bool

func (*Tree) EqualVT

func (this *Tree) EqualVT(that *Tree) bool

func (*Tree) GetAddon added in v0.1.70

func (x *Tree) GetAddon() string

func (*Tree) GetGeneration added in v0.1.72

func (x *Tree) GetGeneration() uint64

func (*Tree) GetMod

func (x *Tree) GetMod() string

func (*Tree) GetNodes

func (x *Tree) GetNodes() []*Node

func (*Tree) GetRegion added in v0.1.15

func (x *Tree) GetRegion() *Region

func (*Tree) MarshalJSON

func (x *Tree) MarshalJSON() ([]byte, error)

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 (x *Tree) MarshalProtoText() string

func (*Tree) MarshalToSizedBufferVT

func (m *Tree) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Tree) MarshalToVT

func (m *Tree) MarshalToVT(dAtA []byte) (int, error)

func (*Tree) MarshalVT

func (m *Tree) MarshalVT() (dAtA []byte, err error)

func (*Tree) ProtoMessage

func (*Tree) ProtoMessage()

func (*Tree) Reset

func (x *Tree) Reset()

func (*Tree) SizeVT

func (m *Tree) SizeVT() (n int)

func (*Tree) String

func (x *Tree) String() string

func (*Tree) UnmarshalJSON

func (x *Tree) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Tree from JSON.

func (*Tree) UnmarshalProtoJSON

func (x *Tree) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Tree message from JSON.

func (*Tree) UnmarshalVT

func (m *Tree) UnmarshalVT(dAtA []byte) error

type UiInputEvent added in v0.1.42

type UiInputEvent struct {

	// Player is the player who changed it.
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Node is the id of the input.
	Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	// Value is the input's new value, in the kind its control holds.
	//
	// Types that are assignable to Value:
	//	*UiInputEvent_Text
	//	*UiInputEvent_Number
	//	*UiInputEvent_On
	//	*UiInputEvent_Choice
	//	*UiInputEvent_Wheel
	Value isUiInputEvent_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

UiInputEvent reports a change the player made to an input in their interface, with the value as the host checked it.

func (*UiInputEvent) CloneMessageVT added in v0.1.42

func (m *UiInputEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*UiInputEvent) CloneVT added in v0.1.42

func (m *UiInputEvent) CloneVT() *UiInputEvent

func (*UiInputEvent) EqualMessageVT added in v0.1.42

func (this *UiInputEvent) EqualMessageVT(thatMsg any) bool

func (*UiInputEvent) EqualVT added in v0.1.42

func (this *UiInputEvent) EqualVT(that *UiInputEvent) bool

func (*UiInputEvent) GetChoice added in v0.1.42

func (x *UiInputEvent) GetChoice() uint32

func (*UiInputEvent) GetNode added in v0.1.42

func (x *UiInputEvent) GetNode() string

func (*UiInputEvent) GetNumber added in v0.1.42

func (x *UiInputEvent) GetNumber() float32

func (*UiInputEvent) GetOn added in v0.1.42

func (x *UiInputEvent) GetOn() bool

func (*UiInputEvent) GetPlayer added in v0.1.42

func (x *UiInputEvent) GetPlayer() int32

func (*UiInputEvent) GetText added in v0.1.42

func (x *UiInputEvent) GetText() string

func (*UiInputEvent) GetValue added in v0.1.42

func (m *UiInputEvent) GetValue() isUiInputEvent_Value

func (*UiInputEvent) GetWheel added in v0.1.68

func (x *UiInputEvent) GetWheel() *Wheel

func (*UiInputEvent) MarshalJSON added in v0.1.42

func (x *UiInputEvent) MarshalJSON() ([]byte, error)

MarshalJSON marshals the UiInputEvent to JSON.

func (*UiInputEvent) MarshalProtoJSON added in v0.1.42

func (x *UiInputEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UiInputEvent message to JSON.

func (*UiInputEvent) MarshalProtoText added in v0.1.42

func (x *UiInputEvent) MarshalProtoText() string

func (*UiInputEvent) MarshalToSizedBufferVT added in v0.1.42

func (m *UiInputEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiInputEvent) MarshalToVT added in v0.1.42

func (m *UiInputEvent) MarshalToVT(dAtA []byte) (int, error)

func (*UiInputEvent) MarshalVT added in v0.1.42

func (m *UiInputEvent) MarshalVT() (dAtA []byte, err error)

func (*UiInputEvent) ProtoMessage added in v0.1.42

func (*UiInputEvent) ProtoMessage()

func (*UiInputEvent) Reset added in v0.1.42

func (x *UiInputEvent) Reset()

func (*UiInputEvent) SizeVT added in v0.1.42

func (m *UiInputEvent) SizeVT() (n int)

func (*UiInputEvent) String added in v0.1.42

func (x *UiInputEvent) String() string

func (*UiInputEvent) UnmarshalJSON added in v0.1.42

func (x *UiInputEvent) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the UiInputEvent from JSON.

func (*UiInputEvent) UnmarshalProtoJSON added in v0.1.42

func (x *UiInputEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UiInputEvent message from JSON.

func (*UiInputEvent) UnmarshalVT added in v0.1.42

func (m *UiInputEvent) UnmarshalVT(dAtA []byte) error

type UiInputEvent_Choice added in v0.1.42

type UiInputEvent_Choice struct {
	// Choice is the index of a dropdown's chosen option.
	Choice uint32 `protobuf:"varint,6,opt,name=choice,proto3,oneof"`
}

func (*UiInputEvent_Choice) CloneOneofVT added in v0.1.42

func (m *UiInputEvent_Choice) CloneOneofVT() isUiInputEvent_Value

func (*UiInputEvent_Choice) CloneVT added in v0.1.42

func (*UiInputEvent_Choice) EqualVT added in v0.1.42

func (this *UiInputEvent_Choice) EqualVT(thatIface isUiInputEvent_Value) bool

func (*UiInputEvent_Choice) MarshalToSizedBufferVT added in v0.1.42

func (m *UiInputEvent_Choice) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiInputEvent_Choice) MarshalToVT added in v0.1.42

func (m *UiInputEvent_Choice) MarshalToVT(dAtA []byte) (int, error)

func (*UiInputEvent_Choice) SizeVT added in v0.1.42

func (m *UiInputEvent_Choice) SizeVT() (n int)

type UiInputEvent_Number added in v0.1.42

type UiInputEvent_Number struct {
	// Number is a slider's value.
	Number float32 `protobuf:"fixed32,4,opt,name=number,proto3,oneof"`
}

func (*UiInputEvent_Number) CloneOneofVT added in v0.1.42

func (m *UiInputEvent_Number) CloneOneofVT() isUiInputEvent_Value

func (*UiInputEvent_Number) CloneVT added in v0.1.42

func (*UiInputEvent_Number) EqualVT added in v0.1.42

func (this *UiInputEvent_Number) EqualVT(thatIface isUiInputEvent_Value) bool

func (*UiInputEvent_Number) MarshalToSizedBufferVT added in v0.1.42

func (m *UiInputEvent_Number) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiInputEvent_Number) MarshalToVT added in v0.1.42

func (m *UiInputEvent_Number) MarshalToVT(dAtA []byte) (int, error)

func (*UiInputEvent_Number) SizeVT added in v0.1.42

func (m *UiInputEvent_Number) SizeVT() (n int)

type UiInputEvent_On added in v0.1.42

type UiInputEvent_On struct {
	// On is a toggle's state.
	On bool `protobuf:"varint,5,opt,name=on,proto3,oneof"`
}

func (*UiInputEvent_On) CloneOneofVT added in v0.1.42

func (m *UiInputEvent_On) CloneOneofVT() isUiInputEvent_Value

func (*UiInputEvent_On) CloneVT added in v0.1.42

func (m *UiInputEvent_On) CloneVT() *UiInputEvent_On

func (*UiInputEvent_On) EqualVT added in v0.1.42

func (this *UiInputEvent_On) EqualVT(thatIface isUiInputEvent_Value) bool

func (*UiInputEvent_On) MarshalToSizedBufferVT added in v0.1.42

func (m *UiInputEvent_On) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiInputEvent_On) MarshalToVT added in v0.1.42

func (m *UiInputEvent_On) MarshalToVT(dAtA []byte) (int, error)

func (*UiInputEvent_On) SizeVT added in v0.1.42

func (m *UiInputEvent_On) SizeVT() (n int)

type UiInputEvent_Text added in v0.1.42

type UiInputEvent_Text struct {
	// Text is a text entry's text.
	Text string `protobuf:"bytes,3,opt,name=text,proto3,oneof"`
}

func (*UiInputEvent_Text) CloneOneofVT added in v0.1.42

func (m *UiInputEvent_Text) CloneOneofVT() isUiInputEvent_Value

func (*UiInputEvent_Text) CloneVT added in v0.1.42

func (m *UiInputEvent_Text) CloneVT() *UiInputEvent_Text

func (*UiInputEvent_Text) EqualVT added in v0.1.42

func (this *UiInputEvent_Text) EqualVT(thatIface isUiInputEvent_Value) bool

func (*UiInputEvent_Text) MarshalToSizedBufferVT added in v0.1.42

func (m *UiInputEvent_Text) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiInputEvent_Text) MarshalToVT added in v0.1.42

func (m *UiInputEvent_Text) MarshalToVT(dAtA []byte) (int, error)

func (*UiInputEvent_Text) SizeVT added in v0.1.42

func (m *UiInputEvent_Text) SizeVT() (n int)

type UiInputEvent_Wheel added in v0.1.68

type UiInputEvent_Wheel struct {
	// Wheel is a wheel step over a slider that opted in to wheel events.
	Wheel *Wheel `protobuf:"bytes,7,opt,name=wheel,proto3,oneof"`
}

func (*UiInputEvent_Wheel) CloneOneofVT added in v0.1.68

func (m *UiInputEvent_Wheel) CloneOneofVT() isUiInputEvent_Value

func (*UiInputEvent_Wheel) CloneVT added in v0.1.68

func (m *UiInputEvent_Wheel) CloneVT() *UiInputEvent_Wheel

func (*UiInputEvent_Wheel) EqualVT added in v0.1.68

func (this *UiInputEvent_Wheel) EqualVT(thatIface isUiInputEvent_Value) bool

func (*UiInputEvent_Wheel) MarshalToSizedBufferVT added in v0.1.68

func (m *UiInputEvent_Wheel) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiInputEvent_Wheel) MarshalToVT added in v0.1.68

func (m *UiInputEvent_Wheel) MarshalToVT(dAtA []byte) (int, error)

func (*UiInputEvent_Wheel) SizeVT added in v0.1.68

func (m *UiInputEvent_Wheel) SizeVT() (n int)

type UiPressEvent

type UiPressEvent struct {

	// Player is the player who pressed.
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Node is the id of the pressed button.
	Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	// contains filtered or unexported fields
}

UiPressEvent reports a press on a button in a player's interface.

func (*UiPressEvent) CloneMessageVT

func (m *UiPressEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*UiPressEvent) CloneVT

func (m *UiPressEvent) CloneVT() *UiPressEvent

func (*UiPressEvent) EqualMessageVT

func (this *UiPressEvent) EqualMessageVT(thatMsg any) bool

func (*UiPressEvent) EqualVT

func (this *UiPressEvent) EqualVT(that *UiPressEvent) bool

func (*UiPressEvent) GetNode

func (x *UiPressEvent) GetNode() string

func (*UiPressEvent) GetPlayer

func (x *UiPressEvent) GetPlayer() int32

func (*UiPressEvent) MarshalJSON

func (x *UiPressEvent) MarshalJSON() ([]byte, error)

MarshalJSON marshals the UiPressEvent to JSON.

func (*UiPressEvent) MarshalProtoJSON

func (x *UiPressEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UiPressEvent message to JSON.

func (*UiPressEvent) MarshalProtoText

func (x *UiPressEvent) MarshalProtoText() string

func (*UiPressEvent) MarshalToSizedBufferVT

func (m *UiPressEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiPressEvent) MarshalToVT

func (m *UiPressEvent) MarshalToVT(dAtA []byte) (int, error)

func (*UiPressEvent) MarshalVT

func (m *UiPressEvent) MarshalVT() (dAtA []byte, err error)

func (*UiPressEvent) ProtoMessage

func (*UiPressEvent) ProtoMessage()

func (*UiPressEvent) Reset

func (x *UiPressEvent) Reset()

func (*UiPressEvent) SizeVT

func (m *UiPressEvent) SizeVT() (n int)

func (*UiPressEvent) String

func (x *UiPressEvent) String() string

func (*UiPressEvent) UnmarshalJSON

func (x *UiPressEvent) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the UiPressEvent from JSON.

func (*UiPressEvent) UnmarshalProtoJSON

func (x *UiPressEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UiPressEvent message from JSON.

func (*UiPressEvent) UnmarshalVT

func (m *UiPressEvent) UnmarshalVT(dAtA []byte) error

type UiRequest

type UiRequest struct {
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Change updates the player's tree.
	Change *Change `protobuf:"bytes,2,opt,name=change,proto3" json:"change,omitempty"`
	// contains filtered or unexported fields
}

UiRequest changes the interface the mod shows one player.

func (*UiRequest) CloneMessageVT

func (m *UiRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*UiRequest) CloneVT

func (m *UiRequest) CloneVT() *UiRequest

func (*UiRequest) EqualMessageVT

func (this *UiRequest) EqualMessageVT(thatMsg any) bool

func (*UiRequest) EqualVT

func (this *UiRequest) EqualVT(that *UiRequest) bool

func (*UiRequest) GetChange

func (x *UiRequest) GetChange() *Change

func (*UiRequest) GetPlayer

func (x *UiRequest) GetPlayer() int32

func (*UiRequest) MarshalJSON

func (x *UiRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the UiRequest to JSON.

func (*UiRequest) MarshalProtoJSON

func (x *UiRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UiRequest message to JSON.

func (*UiRequest) MarshalProtoText

func (x *UiRequest) MarshalProtoText() string

func (*UiRequest) MarshalToSizedBufferVT

func (m *UiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UiRequest) MarshalToVT

func (m *UiRequest) MarshalToVT(dAtA []byte) (int, error)

func (*UiRequest) MarshalVT

func (m *UiRequest) MarshalVT() (dAtA []byte, err error)

func (*UiRequest) ProtoMessage

func (*UiRequest) ProtoMessage()

func (*UiRequest) Reset

func (x *UiRequest) Reset()

func (*UiRequest) SizeVT

func (m *UiRequest) SizeVT() (n int)

func (*UiRequest) String

func (x *UiRequest) String() string

func (*UiRequest) UnmarshalJSON

func (x *UiRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the UiRequest from JSON.

func (*UiRequest) UnmarshalProtoJSON

func (x *UiRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UiRequest message from JSON.

func (*UiRequest) UnmarshalVT

func (m *UiRequest) UnmarshalVT(dAtA []byte) error

type Weight added in v0.1.42

type Weight int32

Weight is a text weight, as the game's faces draw them.

const (
	// WEIGHT_DEFAULT keeps the panel's weight, or bold's.
	Weight_WEIGHT_DEFAULT   Weight = 0
	Weight_WEIGHT_THIN      Weight = 1
	Weight_WEIGHT_LIGHT     Weight = 2
	Weight_WEIGHT_NORMAL    Weight = 3
	Weight_WEIGHT_MEDIUM    Weight = 4
	Weight_WEIGHT_SEMI_BOLD Weight = 5
	Weight_WEIGHT_BOLD      Weight = 6
	Weight_WEIGHT_BLACK     Weight = 7
)

func (Weight) Enum added in v0.1.42

func (x Weight) Enum() *Weight

func (Weight) MarshalJSON added in v0.1.42

func (x Weight) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Weight to JSON.

func (Weight) MarshalProtoJSON added in v0.1.42

func (x Weight) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Weight to JSON.

func (Weight) MarshalProtoText added in v0.1.42

func (x Weight) MarshalProtoText() string

func (Weight) MarshalText added in v0.1.42

func (x Weight) MarshalText() ([]byte, error)

MarshalText marshals the Weight to text.

func (Weight) String added in v0.1.42

func (x Weight) String() string

func (*Weight) UnmarshalJSON added in v0.1.42

func (x *Weight) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Weight from JSON.

func (*Weight) UnmarshalProtoJSON added in v0.1.42

func (x *Weight) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Weight from JSON.

func (*Weight) UnmarshalText added in v0.1.42

func (x *Weight) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Weight from text.

type Wheel added in v0.1.68

type Wheel struct {

	// Delta is 1 for up and -1 for down. It never changes the slider's value.
	Delta float32 `protobuf:"fixed32,1,opt,name=delta,proto3" json:"delta,omitempty"`
	// Fraction is the pointer's horizontal position, bounded from 0 to 1.
	Fraction float32 `protobuf:"fixed32,2,opt,name=fraction,proto3" json:"fraction,omitempty"`
	// contains filtered or unexported fields
}

Wheel reports one wheel step over a slider, anchored to its pointer position.

func (*Wheel) CloneMessageVT added in v0.1.68

func (m *Wheel) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Wheel) CloneVT added in v0.1.68

func (m *Wheel) CloneVT() *Wheel

func (*Wheel) EqualMessageVT added in v0.1.68

func (this *Wheel) EqualMessageVT(thatMsg any) bool

func (*Wheel) EqualVT added in v0.1.68

func (this *Wheel) EqualVT(that *Wheel) bool

func (*Wheel) GetDelta added in v0.1.68

func (x *Wheel) GetDelta() float32

func (*Wheel) GetFraction added in v0.1.68

func (x *Wheel) GetFraction() float32

func (*Wheel) MarshalJSON added in v0.1.68

func (x *Wheel) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Wheel to JSON.

func (*Wheel) MarshalProtoJSON added in v0.1.68

func (x *Wheel) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Wheel message to JSON.

func (*Wheel) MarshalProtoText added in v0.1.68

func (x *Wheel) MarshalProtoText() string

func (*Wheel) MarshalToSizedBufferVT added in v0.1.68

func (m *Wheel) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Wheel) MarshalToVT added in v0.1.68

func (m *Wheel) MarshalToVT(dAtA []byte) (int, error)

func (*Wheel) MarshalVT added in v0.1.68

func (m *Wheel) MarshalVT() (dAtA []byte, err error)

func (*Wheel) ProtoMessage added in v0.1.68

func (*Wheel) ProtoMessage()

func (*Wheel) Reset added in v0.1.68

func (x *Wheel) Reset()

func (*Wheel) SizeVT added in v0.1.68

func (m *Wheel) SizeVT() (n int)

func (*Wheel) String added in v0.1.68

func (x *Wheel) String() string

func (*Wheel) UnmarshalJSON added in v0.1.68

func (x *Wheel) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Wheel from JSON.

func (*Wheel) UnmarshalProtoJSON added in v0.1.68

func (x *Wheel) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Wheel message from JSON.

func (*Wheel) UnmarshalVT added in v0.1.68

func (m *Wheel) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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