Skip to content

Conversation

@TwrblxDevs
Copy link

  • Added nil-check before accessing currentTheme to prevent potential runtime errors.
  • Fixed lingering reference issue by explicitly clearing currentPopup/currentCustomPopup before new assignment.
  • Improved InputBegan safety by adding UserInputType check to ignore non-keyboard events.
  • Adjusted background transition to use linear damping for smoother fade effect.
  • Ensured consistent ZIndex usage across nested elements for better layering stability.

- Added nil-check before accessing currentTheme to prevent potential runtime errors.
- Fixed lingering reference issue by explicitly clearing currentPopup/currentCustomPopup before new assignment.
- Improved InputBegan safety by adding UserInputType check to ignore non-keyboard events.
- Adjusted background transition to use linear damping for smoother fade effect.
- Ensured consistent ZIndex usage across nested elements for better layering stability.
@TwrblxDevs
Copy link
Author

Forgot to add: General readability and structure improvements (no logic redesign, no variable renaming).

@TwrblxDevs
Copy link
Author

Just some QOL Stuff basically just improving this script and making it easier to read

Copy link
Member

@parker02311 parker02311 left a comment

Choose a reason for hiding this comment

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

Thank you for the pull request! I have done a quick review before I must head to work. Please take a look over and feel free to ask about any questions and I will get back to you ASAP!

@parker02311 parker02311 added enchancement New feature or request status: in progress Being worked on target: plugin labels Nov 4, 2025
@parker02311 parker02311 changed the title Improve popup handling and animation stability refactor: popup handling and animation stability Nov 4, 2025
@parker02311
Copy link
Member

parker02311 commented Nov 4, 2025

Additionally please update your commit messages to follow https://www.conventionalcommits.org/en/v1.0.0/

This can be done using git on your end and force-pushing the commits with new messages

tbf I should have added a contributing guide but I also didn't expect anyone to actual contribute

}
local popup = {} :: popup

local function getColors(valueType: string, theme): {BackgroundColor: Color3, TextColor: Color3, ShadowColor: Color3, ButtonGlowColor: Color3}
Copy link
Member

Choose a reason for hiding this comment

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

theme should be typed, using RedonUI.theme.theme as the type

Copy link
Author

Choose a reason for hiding this comment

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

Oops I'll fix that

Comment on lines -165 to -168
local mt = getmetatable(scope :: any)
if typeof(mt) == "table" and mt._FUSION_POISONED then
return
end
Copy link
Member

Choose a reason for hiding this comment

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

Why did this get deleted?

Copy link
Author

Choose a reason for hiding this comment

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

Refer to the other comment.

local mt = getmetatable(scope :: any)
if typeof(mt) == "table" and mt._FUSION_POISONED then
return
end
Copy link
Member

Choose a reason for hiding this comment

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

Why did this get deleted?

Copy link
Author

Choose a reason for hiding this comment

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

Whoops probably overlooked this on accident as well for the other one too

@parker02311
Copy link
Member

also the commit would be refactor not cleanup

@TwrblxDevs
Copy link
Author

also the commit would be refactor not cleanup

My bad github apparently made this title

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enchancement New feature or request status: in progress Being worked on target: plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants