Skip to content

Releases: thisdp/dgs

DGS Update 3.523 Stable(4/Apr/2024)

26 Apr 15:48
Compare
Choose a tag to compare

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 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
  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

DGS Update 3.522 Stable(Oct/1/2023)

01 Oct 04:33
Compare
Choose a tag to compare
  1. Refactored: blur/focus logic
  2. Fixed: scroll bar doesn't work on some element when creating
  3. Fixed: fuzzy edge of rounded rectangle
  4. Fixed: element still get focused even invisible
  5. Fixed: dgsLabelGetColor always returns one color
  6. Fixed: render issue of grid list row
  7. Fixed: dxDrawImageSection affects rounded rectangle
  8. Fixed: QR Code/RemoteImage plugin doesn't work
  9. Fixed: incorrect behavior of onDgsMouseClickUp
  10. Fixed: error message of dgsGridListSetItemBackGroundColor/dgsGridListSetItemColor
  11. Fixed: continuous mouse triggering doesn't work
  12. Fixed: dgsScrollBarSetTroughClickAction doesn't work
  13. Fixed: render issue of combobox
  14. Fixed: onDgsElementScroll doesn't calculate mapped value at argument 4 and 5
  15. Fixed: error when destroying layout
  16. Fixed: incorrect color of 3d interface (working after client version: 1.6.0 r22188)
  17. Fixed: scroll doesn't work using "scrollbarState"
  18. Changed: "item as section" of dgsGridListSetItemText is now "row as section"
  19. Changed: troughClickAction of scroll bar is now set to "step"
  20. Added: roation for circle
  21. Added Core Element: dgs-dxmenu

New Functions

  • dgsCreateMenu
  • dgsMenuShow
  • dgsMenuHide
  • dgsMenuAddItem
  • dgsMenuSetItemCommand
  • dgsMenuGetItemCommand
  • dgsMenuSetItemText
  • dgsMenuGetItemText
  • dgsMenuSetItemTextSize
  • dgsMenuGetItemTextSize
  • dgsMenuSetItemColor
  • dgsMenuGetItemColor
  • dgsMenuAddSeparator
  • dgsMenuRemoveItem
  • dgsComboBoxSetItemBackGroundImage
  • dgsComboBoxGetItemBackGroundImage
  • dgsComboBoxSetItemBackGroundColor
  • dgsComboBoxGetItemBackGroundColor
  • dgsCircleSetRotation
  • dgsCircleGetRotation
  • dgsGridListSetScrollBarState
  • dgsGridListGetScrollBarState

New Events

  • onDgsMenuHover
  • onDgsMenuSelect

New Properties

  • dgs-dxcombobox
    • textBoundingBoxIncludeArrow
    • textOffset
    • arrowSize
  • dgs-dx3dinterface
    • enableColorFilter

Improve G2D compatibility:

  • guiGridListSetSelectionMode
  • AlwaysOnTop property
  • guiGridListAddRow fixed incorrect behavior when passing item text
  • guiComboBoxGetItemText should return false if the item is -1 (the same as the CEGUI version)

DGS Update 3.521 Stable(Jul/6/2023)

16 Jul 14:23
Compare
Choose a tag to compare

Breaking Changes:

  1. Removed: DGS Element Keeper
  2. Removed properties:
    • clickType (dgs-button, dgs-checkbox, dgs-combobox, dgs-radiobutton, dgs-switchbutton)
    • clickButton (dgs-switchbutton)
    • mouseSelectButton (dgs-gridlist)
  3. The input elements (dgs-edit and dgs-memo) were previously clickable by all mouse buttons. This was changed to only allow left-click, or any other button specified in the new 'mouseButtons' property.
  4. Previously, the focus could be clicked using any mouse button. This was changed to only allow left-click, or any other button specified in the new 'mouseButtons' property.

Changelog:

  1. Added Function: dgs3DInterfaceGetDoublesided
  2. Added Function: dgs3DInterfaceSetDoublesided
  3. Added Function: dgs3DInterfaceProcessLineOfSight
  4. Added Event: onDgsTranslationTableChange
  5. Added Function: dgsCheckBoxGetButtonSide
  6. Added Function: dgsCheckBoxSetButtonSide
  7. Added Function: dgsCheckBoxGetButtonAlign
  8. Added Function: dgsCheckBoxSetButtonAlign
  9. Added Function: dgsRadioButtonGetButtonSide
  10. Added Function: dgsRadioButtonSetButtonSide
  11. Added Function: dgsRadioButtonGetButtonAlign
  12. Added Function: dgsRadioButtonSetButtonAlign
  13. Fixed: typo in styleSettings
  14. Fixed: Multilingual property listener
  15. Added Property: horizontalMoveOffset/verticalMoveOffset for scale pane
  16. Refactored: Cursor Management
  17. Refactored: internal function getParentLocation -> dgsGetElementPositionOnScreen
  18. Fixed: scroll bar may be not able to scroll when using grade.
  19. Fixed: cursor disappear when main menu is active with custom cursor.
  20. Fixed: text of edit renders wrongly with horizontal alignment center and padding
  21. Fixed: dgsSetPropertyInherit doesn't work
  22. Fixed: render target aren't cleared if element doesn't have parent when invisible
  23. Fixed: 3d interface has weird transparency when cursor shows/hides
  24. Fixed: disabled element can be clicked in debugdgs 3
  25. Fixed: Wrong render result of rounded rectangle
  26. Added: Global Edit/Memo destroy detector
  27. Fixed: Error when destroying element in onDgsMouseClickUp
  28. Fixed: Error when scroll position of memo is an invalid value
  29. Refactored: Mouse click event
  30. Fixed: Error when using DetectArea
  31. Fixed: Error when using debugdgs 3
  32. Fixed: Error when destroying/deleting tab
  33. Added Property: scrollBarAlignment for gridlist. Only vertical scrollbar is supported at the moment
  34. Fixed: G2D Hooker should return false instead of throwing an error when a gridlist/combobox value is out of range
  35. Fixed: Infinite loop in animations (pieT)
  36. Fixed: textPadding for checkbox and radiobutton (pieT)
  37. Fixed: ColorPicker: Fix typo HSL - HSV and minor code cleanup inside HSVRingChange function (pieT)
  38. Fixed: Improve server-side messages
  39. Fixed: Issue where middle mouse button fails to trigger click events
  40. Added: Middle mouse button to debugdgs
  41. Fixed: cData error occurring when the custom cursor image is destroyed
  42. Added Property: subPixelPositioning for button
  43. Fixed: Memory leak caused by the color picker component selector
  44. Fixed: Prevent DGS from changing the cursor alpha on DGS stop if custom cursor is disabled
  45. Fixed: Editbox/Memo becoming unfocusable after opening main menu/console
  46. Added Property: mouseButtons property
  47. Fixed: G2D console command doesn't get disabled
  48. Renamed: setWhiteList OOP method to setTextFilter

DGS Update 3.520 Stable(Feb/2/2023)

01 Feb 20:39
Compare
Choose a tag to compare

DGS Update 3.520 Stable(Feb/2/2023)
0. Backward compatibility remove

  1. Fixed: error when restarting dgs after restarting object preview
  2. Removed: maxSize of window
  3. Added Event: onDgsKey
  4. Fixed: dgs 3d interface was affected by color filter
  5. Added: style 4 for dgs switch button
  6. Added: textColor of dgs button can be affected by colorTransitionPeriod now
  7. Fixed: typo of dgs mask
  8. Fixed: wrong position when dgs tab panel has parent
  9. Fixed: security issue
  10. Enhanced: dgsTranslateText now supports conditional translation
  11. Added property: padding for dgs-dxcrollpane
  12. Fixed: color transition of button have wrong behavior after changing color
  13. Added Property: horizontalMoveOffsetRelative/verticalMoveOffsetRelative
  14. Fixed: dgsScrollBarSetScrollPosition of grades doesn't work
  15. Fixed: Issue with onDgsWindowClose event not triggering

DGS Update 3.519 Stable(9/Jan/2023)

09 Jan 14:59
Compare
Choose a tag to compare
  1. Added: enableDebug in config.txt to disable /debugdgs
  2. Fixed: Wrong scroll bar index of gridlist make render target size incorrect
  3. Removed Property: "mode" of grid list
  4. Added Property: "rowShowUnclippedOnly" of grid list
  5. Fixed: incorrect behavior of rounded rectangle with borderOnly
  6. Fixed: loaded image of rounded rectangle doesn't work
  7. Added Property: basePointOffset for dgs-dxscrollpane
  8. Added Property: minViewSize for dgs-dxscrollpane
  9. Added: UV is now supported by dgs basic shape (circle/rounded rectangle)
  10. Added: rowImageStyle for grid list, row background image can be applied partly to items in the same row.
  11. Enhanced: UVPos/UVSize of dgs image is now supporting dgs basic shader
  12. Enhanced: "out of range" of grid list now has more details
  13. Added: missing visible/dimension/interior functionality of dgs world 3d elements
  14. Added: dgsGridListSetItemAsSection
  15. Refactored: data retrieve method of grid list
  16. Fixed: item 'hoverable" doesn't work
  17. Fixed: some data conflicts in grid list
  18. Fixed: wrong blend mode after drawing 3d interface
  19. Fixed: error when using dgs-dxcanvas as texture
  20. Enhanced: dgsIsMouseWithinGUI can now accept a table of dgs elements
  21. Fixed: Config file doesn't get updated when there are new-added configs
  22. Optimised: click variables and some internal event triggers
  23. Added Function: dgsSetMouseStayDelay
  24. Added Function: dgsGetMouseStayDelay
  25. Added Event: onDgsMouseStay
  26. Added Plugin: dgs-dxtooltip
    Functions:
    dgsCreateToolTip
    dgsTooltipApplyTo
    dgsTooltipRemoveFrom
  27. Added: 3d interface support for dgsGetCursorPosition
  28. Added Property: lineType of 3d line
  29. Added Function: dgs3DLineSetLineType
  30. Added Function: dgs3DLineGetLineType
  31. Fixed: Config file being created empty for new users.
  32. Added function: dgsGridListSetColumnTextColor
  33. Added function: dgsGridListGetColumnTextColor

DGS 3.518

16 Oct 04:25
Compare
Choose a tag to compare
DGS Update 3.518

DGS Update 3.518 Stable(16/Oct/2022)
0. Code clean up & code optimise
1. Fixed: render issue of progress bar
2. Enhanced: Conditional Multilingual Dictionary
3. Added Function: dgsTranslationAddPropertyListener
3. Added Function: dgsTranslationRemovePropertyListener
4. Optimised: shared getCameraMatrix for 3d elements
5. Optimised: reduce string creating when using shadow with color coded
6. Optimised: table creation when rendering 3dinterface
7. Added Property: buttonPosition for radiobutton and checkbox
8. Added Property: shadow for editbox
9. Fixed: sourceResource sometimes will be changed into dgs element
10. Optimised: onDgsCreate event logic
11. Fixed: error when using custom cursor
12. Enhanced: dgs rounded rectangle
13. Enhanced: dgs custom cursor
14. Optimised: shared texture/shader in style system
15. Fixed: Error when rendering tab panel
16. Fixed: stack C overflow when using dgsCloseWindow in onDgsWindowClose
17. Added Function: dgsButtonMakeForm
18. Added Function: dgsButtonRemoveForm
19. Added Event: onDgsFormSubmit
20. Changed: dgsGetListeneingProperties -> dgsGetListenedProperties
21. Fixed: color picker doesn't work in scroll pane
22. Fixed: masked text should not be able to be copied
23. Fixed: wrong position of debug trace
24. Fixed: error when using debugdgs 3 with dgs animation
25. Fixed: render issue of dgs color picker
26. Fixed: error when using dgs animation
27. Fixed: error when using combobox (now autoSort is disabled by default)
28. Fixed: error when using sort of combobox
29. Fixed: Missing function dgsComboBoxGetScrollBar
30. Optimised: video memory using of combobox/gridlist/scrollpane/scalepane/tabpanel/3dinterface/edit/memo
31. Fixed: render issue of grid list
32. Fixed: memo goes to wrong line when set caret position
33. Optimised: reduce cpu usage when there's no dgs elements (50% optimised)

DGS 3.517

30 May 09:28
Compare
Choose a tag to compare

DGS Update 3.517 Stable(30/May/2022)

  1. Fixed: Render issues
  2. Fixed: memo/edit RT doesn't get updated when parent's alpha changes
  3. Added Property: textOffset for radiobutton/checkbox
  4. Fixed: alpha doesn't applied to bgColor of progress bar
  5. Fixed: dgsGetPosition is broken
  6. Added Property: textOffset of window
  7. Fixed: shadow removes color code
  8. Fixed: edit box padding
  9. Fixed: label doesn't destroy after resource stopped
  10. Fixed: alpha doesn't affect progress bar's background
  11. Fixed: blend issue of dgs circle
  12. Changed Property: iconDirection -> iconAlignment of button
  13. Added: iconOffset now supports 3rd argument as "relative"
  14. Optimised: decrease Render Target using
  15. Fixed: clear memo will cause errors
  16. Fixed: scroll position doesn't work on the creation of scroll pane
  17. Fixed: Render issue of basic shapes in scroll pane
  18. Fixed: incorrect inner radius of rounded rectangle (border only)
  19. Fixed: error when using dgsCreateFont in debugdgs 3
  20. Changed: tabImage/tabColor is now hold by tab panel, but you can still apply them to a specific tab
  21. Enhanced: added pivot for dgsSetPosition/dgsSetSize
  22. Added Property: sizePivot and posPivot
  23. Changed: now bgImage/bgColor will use tab panel's data if not specified by tab
  24. Changed: rename g2d convertor's commands, see g2d help
  25. Enhanced: g2d hooker now can be added by g2d command
  26. Added Function:
    dgsWindowGetTextExtent
    dgsWindowGetFontHeight
    dgsWindowGetTextSize
    dgsButtonGetTextExtent
    dgsButtonGetFontHeight
    dgsButtonGetTextSize
  27. Fixed: custom renderer is not working for some cases
  28. Fixed: some issues of remote image
  29. Fixed: render issue of mask
  30. Added Function: dgsGridListSetItemBackGroundColorTemplate
  31. Fixed: typo of effect 3d

DGS 3.516

02 Apr 13:45
Compare
Choose a tag to compare
DGS Update 3.516 Stable(2/Apr/2022)

DGS Update 3.516 Stable(2/Apr/2022)
1. Added Property: shadow for dgs-dxtab/dgs-dxtabpanel
2. Added: #RGBAHEX/RGBAHEX style for color picker
3. Fixed: "isReversed" doesn't work for component selector
4. Changed: reversed render order of attached elements of grid list
5. Fixed: dgsGetCursorPosition returns wrong position when there is a 3dinterface
6. Optimised: Remove the using of table in custom easing function
7. Changed: position->scrollPosition for scroll bar, resolve confliction
8. Added: dgsLabelGetTextSize
9. Fixed: padding of dgs edit has wrong behavior
10. Enhanced: Security of loading classlib.lua
11. Optimised: Memory using of holding classlib.lua
12. Fixed: C Stack Overflow when calling dgsAnimation function at animation stop event
13. Enhanced: Animation Library(multi animations with the same property)
14. Fixed: Warnings in cmd
15. Enhanced: rowShadow/columnShadow of grid list
16. Changed: dgsGetDxGUIFromResource->dgsGetElementsFromResource
17. Changed: dgsGetDxGUINoParent->dgsGetElementsInLayer
18. Fixed: Unable to load texture in default style if there is another style loaded
19. Fixed: Create a edit when minimized will cause RT clear
20. Fixed: text size of dgsCreateEdit doesn't work
21. Fixed: error when using dgsGridListRemoveColumn
22. Added: troughImageSectionMode for scroll bar
23. Added Property: bgImage/bgColor for scroll bar
24. Fixed: unexpected render result of roundRect when size is smaller than corner radius
25. Refactored: shadow
26. Added: image of button can now support single material element
27. Fixed: Strange behavior of combo box
28. Fixed: Switch Button color interaction
29. Fixed: onDgsBlur sometimes doesn't work
30. Added Property: closeButtonEnabled for dgs window
31. Added Concept: dgsChildRenderer
32. Fixed: jelly effect when resizing gridlist/scrollpane/combobox
33. Added: Start Up memory logger
34. Fixed: get selected row after remove the row will return incorrect id
35. Added: OOP elements are now traceable

DGS 3.515

10 Mar 07:56
Compare
Choose a tag to compare
DGS Update 3.515 Stable(10/Mar/2022)

1. Changed: dgs3DImage/Interface/Text/LineSetPosition->dgs3DSetPosition
2. Changed: dgs3DImage/Interface/Text/LineGetPosition->dgs3DGetPosition
3. Changed: dgs3DImage/Interface/Text/LineSetInterior->dgs3DSetInterior
4. Changed: dgs3DImage/Interface/Text/LineGetInterior->dgs3DGetInterior
5. Changed: dgs3DImage/Interface/Text/LineSetDimension->dgs3DSetDimension
6. Changed: dgs3DImage/Interface/Text/LineGetDimension->dgs3DGetDimension
7. Changed: rotation->roll of 3d interface
8. Changed: dgs3DInterfaceSetRotation->dgs3DInterfaceSetRoll
9. Changed: dgs3DInterfaceGetRotation->dgs3DInterfaceGetRoll
10. Refactored: animation library (some functions are changed)
11. Removed: "thisdp" from debug view
12. Enhanced: DGS Compatibility Check can show position now, with dgsImportFunction and debugdgs 3.
13. Fixed: Scroll Pane will blink when resizing.
14. Changed: FatherTable->parent property
15. Changed: ChildrenTable->children property
16. Added Function: dgsLayoutSetItemSortPriority
17. Added Function: dgsLayoutGetItemSortPriority
18. Added: debug tracer for animation library
19. Added Function: dgsBlurBoxSetBrightness
20. Added Function: dgsBlurBoxGetBrightness
21. Added Property: blendMode for dgs-dxblurbox
22. Fixed: spamming warnings when there is no RT for blur box
23. Changed: postGUI logic (Now property has higher priority than render setting)
24. Added: make placeHolder of dgsEdit multilingual
25. Fixed: Wrong behavior of alignment of combobox item
26. Added: scrollBarCoverColumn for grid list
27. Added: dgsGetRegisteredProperties
28. Changed: placeHolderColorcoded->placeHolderColorCoded
29. Changed: For checkbox
 image_f->imageUnchecked
 image_t->imageChecked
 image_i->imageIndeterminate
 color_f->colorUnchecked
 color_t->colorChecked
 color_i->colorIndeterminate
30. Changed: For radiobutton
 image_f->imageUnchecked
 image_t->imageChecked
 color_f->colorUnchecked
 color_t->colorChecked

DGS 3.514

07 Feb 09:30
Compare
Choose a tag to compare
  1. Fixed: dgs-dxmedia can not be used in dgs mask
  2. Added Function: dgsComboBoxSetSortFunction
  3. Added Function: dgsComboBoxSortSetAutoSortEnabled
  4. Added Function: dgsComboBoxSortGetAutoSortEnabled
  5. Added Function: dgsComboBoxSort
  6. Added Property: rowWordBreak for grid list
  7. Added Property: columnWordBreak for grid list
  8. Added Property: placeHolderVisibleWhenFocus for edit
  9. Added Concept: Back-end rendering, which allows some elements that don't have their renderer to have chance to be rendered without borrowing others' renderer.
  10. Added Property: renderTarget/renderTargetResolution for custom renderer
  11. Added Function: dgsCustomRendererSetRenderTargetSize
  12. Added Function: dgsCustomRendererGetRenderTargetSize
  13. Added Function: dgsCustomRendererGetRenderTarget
  14. Added Function: dgsCustomRendererSetBackEndFunction
  15. Added Function: dgsCanvasSetBackEndFunction
  16. Added Property: disableCustomTexture for canvas
  17. Fixed: Set PostGUI forcely will cause strange drawing behavior
  18. Added Function: dgsSVGGetContent
  19. Added Function: dgsSVGNodeCreateNode
  20. Added Function: dgsSVGNodeSetAttribute
  21. Added Function: dgsSVGNodeGetAttribute
  22. Added Function: dgsSVGNodeSetAttributes
  23. Added Function: dgsSVGNodeGetAttributes
  24. Added OOP Support: dgsSVG
  25. Changed Property: hitoutofparent -> childOutsideHit
  26. Added Event: onDgsMouseHover
  27. Optimized: Memory Increment Optimization
  28. Added: text can be hooked by dgsCustomRenderer
  29. Fixed: font of switch button doesn't respond on language changing
  30. Added: dgs-dxchart
    Functions:
    dgsCreateChart
    dgsChartAddDataset
    dgsChartRemoveDataset
    dgsChartSetLabels
    dgsChartDatasetSetStyle
    dgsChartDatasetSetLabel
    dgsChartDatasetSetData
    dgsChartDatasetAddData
    dgsChartDatasetRemoveData
    dgsChartDatasetClearData
  31. Added Setting: enableTestFile
  32. Merged: pluginManager -> manager