Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: enhance draw text functiones for better flexibility #617

Merged
merged 12 commits into from
Nov 5, 2024

Conversation

GoldO-dev
Copy link
Contributor

Description

  • Changed scale parameter in qbx.drawText3d to be a vec2 with a default value of vec2(0.35, 0.35), while maintaining backwards compatibility with the previous version
  • Introduced disableDropShadow and disableOutline parameters in qbx.drawText2d
  • Introduced enableDropShadow and enableOutline parameters in qbx.drawText3d
  • Added a warning for users using a number value as the scale parameter in qbx.drawText3d, encouraging the use of a vec2 instead.

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

- Changed `scale` parameter in `qbx.drawText3d` to be a `vec2` with a default value of `vec2(0.35, 0.35)`, while maintaining backwards compatibility with the previous version
- Introduced `disableDropShadow` and `disableOutline` parameters in `qbx.drawText2d`
- Introduced `enableDropShadow` and `enableOutline` parameters in `qbx.drawText3d`
- Added a warning for users using a number value as the scale parameter in `qbx.drawText3d`, encouraging the use of a `vec2` instead.
- Changed `scale` parameter in `qbx.drawText3d` to be a `vec2` with a default value of `vec2(0.35, 0.35)`, while maintaining backwards compatibility with the previous version
- Introduced `disableDropShadow` and `disableOutline` parameters in `qbx.drawText2d`
- Introduced `enableDropShadow` and `enableOutline` parameters in `qbx.drawText3d`
- Added a warning for users using a number value as the scale parameter in `qbx.drawText3d`, encouraging the use of a `vec2` instead.
- Fixed line 352 and 356 having trailing whitespaces
- Changed `scale` parameter in `qbx.drawText3d` to be a `vec2` with a default value of `vec2(0.35, 0.35)`, while maintaining backwards compatibility with the previous version
- Introduced `disableDropShadow` and `disableOutline` parameters in `qbx.drawText2d`
- Introduced `enableDropShadow` and `enableOutline` parameters in `qbx.drawText3d`
- Added a warning for users using a number value as the scale parameter in `qbx.drawText3d`, encouraging the use of a `vec2` instead.
- Fixed line 352 and 356 having trailing whitespaces
modules/lib.lua Outdated Show resolved Hide resolved
modules/lib.lua Outdated Show resolved Hide resolved
@GoldO-dev
Copy link
Contributor Author

@Manason all requested changes has been made.

I've also made a pull request to the docs repository that updates the docs to match the changes made in this pull request. You can take a look at it here

modules/lib.lua Outdated Show resolved Hide resolved
@GoldO-dev
Copy link
Contributor Author

@Manason just a quick question, do I need a second reviewer to review before it can be merged? Or can it be merged by just you giving it a review?

@Manason
Copy link
Member

Manason commented Nov 5, 2024

@Manason just a quick question, do I need a second reviewer to review before it can be merged? Or can it be merged by just you giving it a review?

A second reviewer is required.

@mafewtm mafewtm merged commit 0b7ed08 into Qbox-project:main Nov 5, 2024
2 checks 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.

3 participants