Skip to content

Improved constant value rendering, and editing#3544

Merged
llysdal merged 3 commits intowiremod:masterfrom
llysdal:fpga-constant-overhaul
Feb 28, 2026
Merged

Improved constant value rendering, and editing#3544
llysdal merged 3 commits intowiremod:masterfrom
llysdal:fpga-constant-overhaul

Conversation

@llysdal
Copy link
Member

@llysdal llysdal commented Feb 28, 2026

Switched from tostring to util.TypeToString

We now save the string input for vectors and angles, which is then recalled if you edit again. This gets rid of floating point errors.

Also added validation to vector/angle constant values (closes #3512)

self.ConstantSetWindow:MakePopup() -- This will move it above the FPGA editor if it is behind it.
self.ForceDrawCursor = true

local black = Color(0, 0, 0, 255)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use color_black global

@llysdal llysdal merged commit 1018cb0 into wiremod:master Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feedback on writing Angle and Vector constants wrong

2 participants