NuiDrawListPolyLine( json, json, json, json, json, int, int )

From NWN Lexicon
Jump to navigationJump to search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Draws a PolyLine


json                    // DrawListItem
NuiDrawListPolyLine(
  json jEnabled,        // Bind:Bool
  json jColor,          // Bind:Color
  json jFill,           // Bind:Bool
  json jLineThickness,  // Bind:Float
  json jPoints,         // Bind:Float[]    Always provide points in pairs
  int  nOrder = NUI_DRAW_LIST_ITEM_ORDER_AFTER, // Int:NUI_DRAW_LIST_ITEM_ORDER_*
  int  nRender = NUI_DRAW_LIST_ITEM_RENDER_ALWAYS // Int:NUI_DRAW_LIST_ITEM_RENDER_*
);

Return

json Element

Parameters

jEnabled
JsonBool or NuiBind (Note: dont' get confused with an NWN int)
jColor
NuiColor or NuiBind
jFill
JsonBool or NuiBind (Note: dont' get confused with an NWN int)
jLineThickness
JsonFloat or NuiBind (Note: dont't get it confused with an NWN float)
jPoints
JsonArray of JsonFloat
nOrder
NUI_DRAW_LIST_ITEM_ORDER_*
nRender
NUI_DRAW_LIST_ITEM_RENDER_*


Description

json Element


Remarks

// -----------------------
// Draw Lists

// Draw lists are raw painting primitives on top of widgets.
// They are anchored to the widget x/y coordinates, and are always
// painted in order of definition, without culling. You cannot bind
// the draw_list itself, but most parameters on individual draw_list
// entries can be bound.

Version

This function was added in 1.85.8193.31 of NWN:EE.


Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.


See Also

functions:

NUI Functions