Closed Andidy closed 2 years ago
Perhaps this is because I'm using the ZERO / free version? I am using v2.1 ZERO to be specific.
A similar export issue occurs with the ValueBox's text parameter.
if (GuiValueBox(layoutRecs[1], ValueBOx001Text /* <- This isn't declared */, &ValueBOx001Value, 0, 100, ValueBOx001EditMode)) ValueBOx001EditMode = !ValueBOx001EditMode;
@Andidy I can't remember exactly right now but I think there was an option to export anchors.
@Andidy I can't remember exactly right now but I think there was an option to export anchors.
Yes, sorry I should have been more clear. I did check the "Export Anchors" button and this did add a Vector2 called "anchor01" to be the anchor point in the code for setting the position of the controls.
However the variable used is not automatically declared anywhere. There isn't a line generated that says something like
Vector2 anchor01 = { 0, 0 };
Reviewed.
When I check export anchors it modifies the code that defines the position of the control. However, it doesn't create the variable for the anchor.
Here is my control:![image](https://user-images.githubusercontent.com/37605997/138575388-0017cdcd-1c19-497b-9225-ba770125b69c.png)
Here is the generated code, Note that the declaration of anchor01 isn't present, (I removed the comments to make the code smaller but none of the actual code):