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

Settings system #133

Merged
merged 9 commits into from
Jan 10, 2024
Merged

Settings system #133

merged 9 commits into from
Jan 10, 2024

Conversation

xLive
Copy link
Collaborator

@xLive xLive commented Jan 3, 2024

This pull request introduces improvements to the existing config system by replacing the config.txt file with the MTA settings system. Here's a brief overview:

  1. Removed reliance on config.txt.
  2. DGS no longer needs to use the loadstring function on the server-side, as MTA recently disabled loadstring function in the default ACL.
  3. Implemented MTA settings for a more organized and easily configurable system.
  4. No need to worry about compatibility, if config.txt exists, it will be converted to MTA settings.
  5. Some settings can now take effect on the fly, such as debugging command, without restarting DGS.

image

Note to the merger: Please use Squash and merge to merge this PR to squash all commits into a single commit.

@xLive xLive requested review from thisdp and removed request for thisdp January 3, 2024 15:31
@xLive xLive merged commit 3369f39 into master Jan 10, 2024
@xLive xLive deleted the feature/meta-settings branch January 10, 2024 13:06
thisdp added a commit that referenced this pull request Apr 4, 2024
## DGS Update 3.523 Stable(4/Apr/2024)
### Improved
1. "shift+tab" can now switch to previous edit
2. Default font of items of combo box is now following "font" property, instead of remembering old font
3. Shader default texture is now using DGSBuiltInTex.white_1x1 to eliminate if-condition in shader
4. Decrease the usage of github api to reduce possibility of api cooling down
5. Split lua and shader to optimise memory
6. Make some "set" functions support a table of dgs elements as input element
7. Rename property "length" -> "cursorLength" of scroll bar
8. **New Settings System**: This will replace `config.txt` with the MTA settings system. Refer to [#133](<#133>) for more information
9. Add validation for position and size checks for render target elements in relative mode
10. Upgrade to version 1.6 [#132](<#132>)
11. Add warning for non-existing files in style
### Fixed
1. colorCoded of dgs-dxtab doesn't work
2. alternative font issue of dgs-dxedit and dgs-dxtab
3. typo of dgsGradientSetColor
4. onDgsMouseLeave/Enter isn't triggered when cursor state changes
5. edit auto complete malfunctions
6. error when destroying opened combobox
7. shadow color of icon image pf button @ihaswn
### New Properties
1. property "textPadding" of dgs button
### New Elements
* dgs-dxeffectview
* dgs-dxquad: Any quadrilateral
### New Functions
* dgsCreateEffectView
* dgsEffectViewSetEffectShader
* dgsComboBoxSetScrollBarState
* dgsComboBoxGetScrollBarState
*  dgsCreateQuad
* dgsQuadSetVertices
* dgsQuadGetVertices
* dgsQuadSetTexture
* dgsQuadGetTexture
* dgsQuadSetColor
* dgsQuadGetColor
* dgsQuadSetColorOverwritten
* dgsQuadGetColorOverwritten
* dgsQuadSetRotation
* dgsQuadSetRotation
* dgsQuadSetTextureRotation
* dgsQuadGetTextureRotation
### New Events
1. onDgsCursorStateChange
### Removed
1. file security check (using MTA official fileGetContents)
2. element keeper
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.

1 participant