Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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",
	}
	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,
	}
)

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",
	}
	Kind_value = map[string]int32{
		"KIND_PANEL":  0,
		"KIND_LABEL":  1,
		"KIND_IMAGE":  2,
		"KIND_BUTTON": 3,
		"KIND_LAYOUT": 4,
		"KIND_ROUTE":  5,
	}
)

Enum value maps for Kind.

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",
	}
	Flow_value = map[string]int32{
		"FLOW_NONE":  0,
		"FLOW_DOWN":  1,
		"FLOW_RIGHT": 2,
	}
)

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"`
	// 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) 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 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
)

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

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
)

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"`
	// 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) GetData

func (x *Node) GetData() string

func (*Node) GetHideHud added in v0.1.13

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

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetImage

func (x *Node) GetImage() string

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

func (x *Node) GetStyle() *Style

func (*Node) GetText

func (x *Node) GetText() 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 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 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 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"`
	// 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) 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) GetColor

func (x *Style) GetColor() uint32

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

func (x *Style) GetHeight() *Length

func (*Style) GetHorizontalAlign

func (x *Style) GetHorizontalAlign() Align

func (*Style) GetLetterSpacing

func (x *Style) GetLetterSpacing() float32

func (*Style) GetMargin

func (x *Style) GetMargin() *Edges

func (*Style) GetOpacity

func (x *Style) GetOpacity() float32

func (*Style) GetPadding

func (x *Style) GetPadding() *Edges

func (*Style) GetShadow

func (x *Style) GetShadow() bool

func (*Style) GetTextAlign

func (x *Style) GetTextAlign() Align

func (*Style) GetUppercase

func (x *Style) GetUppercase() bool

func (*Style) GetVerticalAlign

func (x *Style) GetVerticalAlign() Align

func (*Style) GetWidth

func (x *Style) GetWidth() *Length

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 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"`
	// 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) 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 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

Jump to

Keyboard shortcuts

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