BlockEnvironment

Package: Libraries.Interface.Controls.Blocks · Inherits from: Libraries.Interface.Item, Libraries.Interface.Controls.Control, Libraries.Interface.Item2D, Libraries.Language.Object

Actions

GetBlockNotchBottomWidth()

Returns

number

GetBlockNotchPercentageHeight()

Returns

number

GetBlockNotchPixelHeight()

Returns

number

GetBlockNotchTopWidth()

Calculate the indentation width as a multiple of the default glyph width for this font.

Returns

number

GetCodeBetween(integer startIndex, integer endIndex)

Parameters

  • startIndex integer
  • endIndex integer

Returns

text

GetDefaultGlyphWidth()

Returns

number

GetDefaultUnpaddedLineHeight()

Returns

number

GetFont()

This action returns the width of the scope bars, as a multiple of "default indentation widths". A single default indentation is four characters wide in the editor's font. For example, a value of 2 indicates that the scoped bars take up 8 characters of space horizontally.

Returns

Libraries.Game.Graphics.Font

GetLineHeight(integer index)

This action returns the height of blocks at the given navigation index. This includes the current height of any dynamic elements, such as detail labels above editable areas, if there are any that are currently visible.

Parameters

  • index integer

Returns

number

GetLineHeightPadding(integer line)

Parameters

  • line integer

Returns

number

GetLineY(integer index)

Parameters

  • index integer

Returns

number

GetPercentageLineHeightPadding()

Returns

number

GetPercentageLinePadding(integer line)

Parameters

  • line integer

Returns

number

GetScopeBarWidth()

This action returns the width of the scope bars, as a multiple of "default indentation widths". A single default indentation is four characters wide in the editor's font. For example, a value of 2 indicates that the scoped bars take up 8 characters of space horizontally.

Returns

number

GetScopeIndentationWidth()

This approach relies on a monospaced font.

Returns

number

GetStaticLineHeight(integer index)

This action returns the static, or non-changing, height of blocks at the given navigation index. This means that the height will include elements of a block that are always there, such as its fields and editable areas, but it won't include elements that show/hide or move, such as detail labels that can appear dynamically over fields.

Parameters

  • index integer

Returns

number

GetUnpaddedLineHeight(integer line)

Parameters

  • line integer

Returns

number

SetBlockNotchBottomWidth(number blockNotchBottomWidth)

Parameters

  • blockNotchBottomWidth number

SetBlockNotchPercentageHeight(number blockNotchHeight)

Parameters

  • blockNotchHeight number

SetBlockNotchTopWidth(number blockNotchTopWidth)

Parameters

  • blockNotchTopWidth number

SetPercentageLineHeightPadding(number percentageLineHeightPadding)

Parameters

  • percentageLineHeightPadding number

SetScopeBarWidth(number width)

This action sets the width of the scope bars, as a multiple of "default indentation widths". A single default indentation is four characters wide in the editor's font. For example, passing a value of 2 would make the scoped bars take up 8 characters of space horizontally.

Parameters

  • width number

Inherited Actions

263 actions from Libraries.Interface.Controls.Control
61 actions from Libraries.Interface.Item
202 actions from Libraries.Interface.Item2D
3 actions from Libraries.Language.Object