Skip to content

package stage_workspace

import "kaijuengine.com/editor/editor_workspace/stage_workspace"

Constants

ID

is

the

stable

workspace

identifier

used

for

registration

settings

persistence

and

SelectWorkspace

calls

Exported

so

other

packages

can

reference

the

stage

workspace

without

using

a

magic

string

ID

"stage"

DisplayName

is

the

label

shown

on

the

stage

workspace

bar

tab

DisplayName

"Stage"

Types

EntityDataAttachHistory

struct

type EntityDataAttachHistory struct {
    DetailsWorkspace *WorkspaceDetailsUI
    Entity           *editor_stage_manager.StageEntity
    Data             *entity_data_binding.EntityDataEntry
}

EntityDataAttachHistory.Delete

func (h *EntityDataAttachHistory) Delete()

EntityDataAttachHistory.Exit

func (h *EntityDataAttachHistory) Exit()

EntityDataAttachHistory.Redo

func (h *EntityDataAttachHistory) Redo()

EntityDataAttachHistory.Undo

func (h *EntityDataAttachHistory) Undo()

EntityDataDetachHistory

struct

type EntityDataDetachHistory struct {
    DetailsWorkspace *WorkspaceDetailsUI
    Entity           *editor_stage_manager.StageEntity
    Data             *entity_data_binding.EntityDataEntry
}

EntityDataDetachHistory.Delete

func (h *EntityDataDetachHistory) Delete()

EntityDataDetachHistory.Exit

func (h *EntityDataDetachHistory) Exit()

EntityDataDetachHistory.Redo

func (h *EntityDataDetachHistory) Redo()

EntityDataDetachHistory.Undo

func (h *EntityDataDetachHistory) Undo()

HierarchyEntityDragData

struct

type HierarchyEntityDragData struct {
    // Has unexported fields.
}

HierarchyEntityDragData.DragUpdate

func (d HierarchyEntityDragData) DragUpdate()

StageDragContent

struct

type StageDragContent struct {
    // Has unexported fields.
}

StageDragContent.DragUpdate

func (d StageDragContent) DragUpdate()

StageDragContent.MeshRef

func (d StageDragContent) MeshRef() string

StageWorkspace

struct

type StageWorkspace struct {
    common_workspace.CommonWorkspace

    // Has unexported fields.
}

StageWorkspace.AlignEntityWithView

func (w *StageWorkspace) AlignEntityWithView(entity *editor_stage_manager.StageEntity) bool

StageWorkspace.AlignSelectedEntityWithView

func (w *StageWorkspace) AlignSelectedEntityWithView() (*editor_stage_manager.StageEntity, bool)

StageWorkspace.Close

func (w *StageWorkspace) Close()

StageWorkspace.ConnectSelectedAsDistanceChain

func (w *StageWorkspace) ConnectSelectedAsDistanceChain()

StageWorkspace.ConnectSelectedAsHingeChain

func (w *StageWorkspace) ConnectSelectedAsHingeChain()

StageWorkspace.ConnectSelectedAsRope

func (w *StageWorkspace) ConnectSelectedAsRope()

StageWorkspace.CreateNewCamera

func (w *StageWorkspace) CreateNewCamera() (*editor_stage_manager.StageEntity, bool)

StageWorkspace.CreateNewEntity

func (w *StageWorkspace) CreateNewEntity() (*editor_stage_manager.StageEntity, bool)

StageWorkspace.CreateNewLight

func (w *StageWorkspace) CreateNewLight() (*editor_stage_manager.StageEntity, bool)

StageWorkspace.CreatePrimitive

func (w *StageWorkspace) CreatePrimitive(primitive rendering.PrimitiveMesh) (*editor_stage_manager.StageEntity, bool)

StageWorkspace.DisplayName

func (w *StageWorkspace) DisplayName() string

StageWorkspace.FocusRename

func (w *StageWorkspace) FocusRename() bool

StageWorkspace.Hotkeys

func (w *StageWorkspace) Hotkeys() []common_workspace.HotKey

StageWorkspace.ID

func (w *StageWorkspace) ID() string

StageWorkspace.Initialize

func (w *StageWorkspace) Initialize(ed editor_workspace.WorkspaceEditorInterface) error

StageWorkspace.IsRequired

func (w *StageWorkspace) IsRequired() bool

StageWorkspace.Open

func (w *StageWorkspace) Open()

StageWorkspace.OpenStage

func (w *StageWorkspace) OpenStage(id string)

StageWorkspace.RemoveEntityFromParent

func (w *StageWorkspace) RemoveEntityFromParent(entity *editor_stage_manager.StageEntity) bool

StageWorkspace.RemoveSelectedEntityFromParent

func (w *StageWorkspace) RemoveSelectedEntityFromParent() (*editor_stage_manager.StageEntity, bool)

StageWorkspace.ShowLODs

func (w *StageWorkspace) ShowLODs() string

ShowLODs spawns the generated LOD meshes of the currently selected entity beside it so the geometry can be inspected (e.g. with RenderDoc). It is exposed as the editor console command "showlods". LOD level 0 is the source mesh itself and levels 1..4 are the generated LOD meshes cached under "lod" (see mesh_lod.go generateMeshLOD).

StageWorkspace.Shutdown

func (w *StageWorkspace) Shutdown()

StageWorkspace.ToggleContentPanel

func (w *StageWorkspace) ToggleContentPanel() bool

StageWorkspace.ToggleDetailsPanel

func (w *StageWorkspace) ToggleDetailsPanel() bool

StageWorkspace.ToggleHierarchyPanel

func (w *StageWorkspace) ToggleHierarchyPanel() bool

StageWorkspace.ToggleViewportSplitFocus

func (w *StageWorkspace) ToggleViewportSplitFocus() bool

StageWorkspace.Update

func (w *StageWorkspace) Update(deltaTime float64)

WorkspaceContentUI

struct

type WorkspaceContentUI struct {
    // Has unexported fields.
}

WorkspaceDetailsUI

struct

type WorkspaceDetailsUI struct {
    TargetedElementValueReload map[reflect.Value]func()

    // Has unexported fields.
}

WorkspaceHierarchyUI

struct

type WorkspaceHierarchyUI struct {
    // Has unexported fields.
}

WorkspaceUIData

struct

type WorkspaceUIData struct {
    Filters    map[string]int
    Tags       map[string]int
    CameraMode string
}

WorkspaceUIData.SetupUIData

func (w *WorkspaceUIData) SetupUIData(cdb *content_database.Cache, cm string) []string