mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 18:43:48 +00:00
connections
connections rendering and logic finished. can make rendering better in future updates such as using geo shaders for bezier curves and smoother lines.
This commit is contained in:
parent
66d8f0f55c
commit
949f788a0a
4 changed files with 424 additions and 64 deletions
|
|
@ -96,7 +96,7 @@ void GuiShaderNode::onRemove()
|
|||
Parent::onRemove();
|
||||
}
|
||||
|
||||
void GuiShaderNode::onRender(Point2I offset, const RectI& updateRect, const S32 nodeSize)
|
||||
void GuiShaderNode::renderNode(Point2I offset, const RectI& updateRect, const S32 nodeSize)
|
||||
{
|
||||
if (!mProfile)
|
||||
return Parent::onRender(offset, updateRect);
|
||||
|
|
@ -191,7 +191,7 @@ void GuiShaderNode::onRender(Point2I offset, const RectI& updateRect, const S32
|
|||
drawer->drawText(mProfile->mFont, slotPos + offset, output->name);
|
||||
|
||||
if (output->pos == Point2I::Zero || mPrevNodeSize != nodeSize)
|
||||
output->pos = Point2I(getExtent().x - (nodeSize / 2), slotPos.y + ((mProfile->mFont->getFontSize() / 2) - (nodeSize / 2)));
|
||||
output->pos = Point2I(getExtent().x - (nodeSize / 2) - 1 , slotPos.y + ((mProfile->mFont->getFontSize() / 2) - (nodeSize / 2)));
|
||||
|
||||
slotPos.y += textPadY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue