Re: ProGUI V3 Alpha 1.0 Ready for testing!
Posted: Sun Sep 08, 2024 3:19 am
This is really impressive work. Way beyond me 

http://www.purebasic.com
https://www.purebasic.fr/english/
Thanks mate!
Fantastic! thanks for that ❤x1 I appreciate it❤x1 wrote: Thu Sep 12, 2024 12:06 pm It's superfast on my comp, but I'm rocking a RTX 3080 so it might not be representative.
It also runs superfast and silky smooth with no flickering on my basic old Thinkpad i5-8350U CPU / Intel® UHD Graphics 620.❤x1 wrote: Thu Sep 12, 2024 12:06 pm It's superfast on my comp, but I'm rocking a RTX 3080 so it might not be representative.
That's great!electrochrisso wrote: Fri Sep 13, 2024 4:58 amIt also runs superfast and silky smooth with no flickering on my basic old Thinkpad i5-8350U CPU / Intel® UHD Graphics 620.❤x1 wrote: Thu Sep 12, 2024 12:06 pm It's superfast on my comp, but I'm rocking a RTX 3080 so it might not be representative.![]()
Code: Select all
Procedure eventHandler_SliceEditAnimateZoom(*widget.Widget, EventType, *eventData.PG_EventAnimate, *sliceEdit.SliceEdit)
If *eventData\id = #Animation_Zoom
*sliceEdit\zoom = Transition_EaseInSine(*eventData\currentTime, *sliceEdit\zoom, *sliceEdit\zoomTarget - *sliceEdit\zoom, *eventData\duration)
If DoublesEqual(*sliceEdit\zoom, *sliceEdit\zoomTarget)
*sliceEdit\zoom = *sliceEdit\zoomTarget
StopAnimation(*widget, #Animation_Zoom)
EndIf
updateZoom(*sliceEdit)
EndIf
EndProcedure
Procedure updateZoom(*sliceEdit.SliceEdit)
If *sliceEdit\img
width = ImgGetWidth(*sliceEdit\img)
height = ImgGetHeight(*sliceEdit\img)
Else
width = ImgGetWidth(*sliceEdit\sliceEdit2\img)
height = ImgGetHeight(*sliceEdit\sliceEdit2\img)
EndIf
If *sliceEdit\zoom <= 1
*sliceEdit\zoom = 1
ImgSetInterpolationMode(*sliceEdit\img, #PG_InterpolationMode_Linear)
Else
ImgSetInterpolationMode(*sliceEdit\img, #PG_InterpolationMode_Nearest)
EndIf
item = LayoutGetItemFromWidget(*sliceEdit\sliceEditor\sliceEditWidget)
LayoutSetItemProperty(item, #PG_Layout_Item_IdealWidth, width * *sliceEdit\zoom)
LayoutSetItemProperty(item, #PG_Layout_Item_IdealHeight, height * *sliceEdit\zoom)
If *sliceEdit\sliceEdit2
*sliceEdit\sliceEdit2\zoom = *sliceEdit\zoom
*sliceEdit\sliceEdit2\zoomTarget = *sliceEdit\zoomTarget
If *sliceEdit\zoom = 1
ImgSetInterpolationMode(*sliceEdit\sliceEdit2\img, #PG_InterpolationMode_Linear)
Else
ImgSetInterpolationMode(*sliceEdit\sliceEdit2\img, #PG_InterpolationMode_Nearest)
EndIf
item = LayoutGetItemFromWidget(*sliceEdit\sliceEdit2\sliceEditor\sliceEditWidget)
LayoutSetItemProperty(item, #PG_Layout_Item_IdealWidth, width * *sliceEdit\zoom)
LayoutSetItemProperty(item, #PG_Layout_Item_IdealHeight, height * *sliceEdit\zoom)
EndIf
EndProcedure
No I'll start writing the docs closer to the beta release, I'm looking into some kind of AutoDocs though so that the source will actually contain the docs in comments next to the exported procedures - then the source is scanned and the Chm, HTML and PDF are generated from that. Or maybe dump the source into ChatGPT / Claude and get AI to write the grunt of it
Probably not on the first beta but menus will be the first "pro" widget and then I'll be fleshing out the rest (this should be pretty quick with the core of V3 working nicely) for example a Toolbar will be pretty much a widget with a Flex layout. It should be possible to use the old ProGUI along side V3, I'll have to test!skinkairewalker wrote: Tue Sep 24, 2024 3:23 pm Will ProGui v2 have all the features of ProGui v1?
or at least can both work together on the same project?