Header menu logo Nu

WorldImGui Module

ImGui functions for the world.

Type extensions

Type extension Description

World.imGuiCircle2d absolute position radius filled color world

Full Usage: World.imGuiCircle2d absolute position radius filled color world

Parameters:
    absolute : bool
    position : Vector2
    radius : float32
    filled : bool
    color : Color
    world : World

Render a circle via ImGui in the current eye 3d space.

Extended Type: World

absolute : bool
position : Vector2
radius : float32
filled : bool
color : Color
world : World

World.imGuiCircle3d position radius filled color world

Full Usage: World.imGuiCircle3d position radius filled color world

Parameters:

Render a circle via ImGui in the current eye 3d space.

Extended Type: World

position : Vector3
radius : float32
filled : bool
color : Color
world : World

World.imGuiCircles2d absolute position radius filled color world

Full Usage: World.imGuiCircles2d absolute position radius filled color world

Parameters:
    absolute : bool
    position : Vector2 seq
    radius : float32
    filled : bool
    color : Color
    world : World

Render circles via ImGui in the current eye 2d space.

Extended Type: World

absolute : bool
position : Vector2 seq
radius : float32
filled : bool
color : Color
world : World

World.imGuiCircles2dPlus absolute positions radius filled computeColor world

Full Usage: World.imGuiCircles2dPlus absolute positions radius filled computeColor world

Parameters:

Render circles via ImGui in the current eye 2d space, computing color as specified.

Extended Type: World

absolute : bool
positions : Vector2 seq
radius : float32
filled : bool
computeColor : Vector2 -> Color
world : World

World.imGuiCircles3d position radius filled color world

Full Usage: World.imGuiCircles3d position radius filled color world

Parameters:

Render circles via ImGui in the current eye 3d space.

Extended Type: World

position : Vector3 seq
radius : float32
filled : bool
color : Color
world : World

World.imGuiCircles3dPlus positions radius filled computeColor world

Full Usage: World.imGuiCircles3dPlus positions radius filled computeColor world

Parameters:

Render circles via ImGui in the current eye 3d space, computing color as specified.

Extended Type: World

positions : Vector3 seq
radius : float32
filled : bool
computeColor : Vector3 -> Color
world : World

World.imGuiEditBox3d snap box world

Full Usage: World.imGuiEditBox3d snap box world

Parameters:
Returns: ImGuiEditResult * Box3

Edit a Box3 via ImGui in the current eye 3d space.

Extended Type: World

snap : single
box : Box3
world : World
Returns: ImGuiEditResult * Box3

World.imGuiEditProperty name ty value context world

Full Usage: World.imGuiEditProperty name ty value context world

Parameters:
Returns: bool * bool * obj

Edit a value via ImGui, also automatically promoting user-defined types for code-reloading. TODO: split up this function.

Extended Type: World

name : string
ty : Type
value : obj
context : EditContext
world : World
Returns: bool * bool * obj

World.imGuiEditPropertyArray editItem defaultItemValue itemsName items context

Full Usage: World.imGuiEditPropertyArray editItem defaultItemValue itemsName items context

Parameters:
    editItem : string -> 'a -> bool * bool * 'a
    defaultItemValue : 'a
    itemsName : string
    items : 'a array
    context : EditContext

Returns: bool * bool * 'a array

Edit an array value via ImGui.

Extended Type: World

editItem : string -> 'a -> bool * bool * 'a
defaultItemValue : 'a
itemsName : string
items : 'a array
context : EditContext
Returns: bool * bool * 'a array

World.imGuiEditPropertyList editItem defaultItemValue itemsName items context

Full Usage: World.imGuiEditPropertyList editItem defaultItemValue itemsName items context

Parameters:
    editItem : string -> 'a -> bool * bool * 'a
    defaultItemValue : 'a
    itemsName : string
    items : 'a list
    context : EditContext

Returns: bool * 'a list

Edit a list value via ImGui.

Extended Type: World

editItem : string -> 'a -> bool * bool * 'a
defaultItemValue : 'a
itemsName : string
items : 'a list
context : EditContext
Returns: bool * 'a list

World.imGuiEditPropertyRecord headered name ty value context world

Full Usage: World.imGuiEditPropertyRecord headered name ty value context world

Parameters:
Returns: bool * bool * obj

Edit a record value via ImGui, optionally replacing the instructed fields.

Extended Type: World

headered : bool
name : string
ty : Type
value : objnull
context : EditContext
world : World
Returns: bool * bool * obj

World.imGuiEditPropertyRecordPlus tryReplaceField headered name ty value context world

Full Usage: World.imGuiEditPropertyRecordPlus tryReplaceField headered name ty value context world

Parameters:
Returns: bool * bool * obj

Edit a record value via ImGui, optionally replacing the instructed fields. This function can also automatically promote user-defined types for code-reloading.

Extended Type: World

tryReplaceField : PropertyInfo -> objnull -> (bool * obj) option
headered : bool
name : string
ty : Type
value : obj
context : EditContext
world : World
Returns: bool * bool * obj

World.imGuiSegment2d absolute segment thickness color world

Full Usage: World.imGuiSegment2d absolute segment thickness color world

Parameters:

Render a segment via ImGui in the current eye 2d space.

Extended Type: World

absolute : bool
segment : Vector2 * Vector2
thickness : float32
color : Color
world : World

World.imGuiSegment3d segment thickness color world

Full Usage: World.imGuiSegment3d segment thickness color world

Parameters:

Render a segment via ImGui in the current eye 3d space.

Extended Type: World

segment : Segment3
thickness : float32
color : Color
world : World

World.imGuiSegments2d absolute segments thickness color world

Full Usage: World.imGuiSegments2d absolute segments thickness color world

Parameters:

Render segments via ImGui in the current eye 2d space.

Extended Type: World

absolute : bool
segments : (Vector2 * Vector2) seq
thickness : float32
color : Color
world : World

World.imGuiSegments2dPlus absolute segments thickness computeColor world

Full Usage: World.imGuiSegments2dPlus absolute segments thickness computeColor world

Parameters:

Render segments via ImGui in the current eye 2d space, computing color as specified.

Extended Type: World

absolute : bool
segments : (Vector2 * Vector2) seq
thickness : float32
computeColor : Vector2 * Vector2 -> Color
world : World

World.imGuiSegments3d segments thickness color world

Full Usage: World.imGuiSegments3d segments thickness color world

Parameters:

Render segments via ImGui in the current eye 3d space.

Extended Type: World

segments : Segment3 seq
thickness : float32
color : Color
world : World

World.imGuiSegments3dPlus segments thickness computeColor world

Full Usage: World.imGuiSegments3dPlus segments thickness computeColor world

Parameters:

Render segments via ImGui in the current eye 3d space, computing color as specified.

Extended Type: World

segments : Segment3 seq
thickness : float32
computeColor : Segment3 -> Color
world : World

World.imGuiSelectCase name ty value context

Full Usage: World.imGuiSelectCase name ty value context

Parameters:
Returns: bool * bool * string

Select a case name from an F# union via ImGui.

Extended Type: World

name : string
ty : Type
value : 'a
context : EditContext
Returns: bool * bool * string

World.imGuiTryGetTextureId assetTag world

Full Usage: World.imGuiTryGetTextureId assetTag world

Parameters:
Returns: uint32 voption

Extended Type: World

assetTag : AssetTag
world : World
Returns: uint32 voption

Type something to start searching.