It's like the one in Godot GameEngine

Haha cool!
Code: Select all
#PG_Img_InterpolationMode_Linear
#PG_Img_InterpolationMode_Nearest
#PG_Img_InterpolationMode_Cubic
#PG_Img_InterpolationMode_MultiSampleLinear
#PG_Img_InterpolationMode_Anisotropic
#PG_Img_InterpolationMode_HighQualityCubic
Thanks very much GoodNPlenty! and you're very welcomeGoodNPlenty wrote: Sat Aug 31, 2024 7:19 pm The tool looks amazing and I appreciate you providing the source. This will help us understand the API and it's capabilities.
Thanks man!
Not at the moment, it's just a case of generating a C/C++ header for the DLL though, so the ProGUI_PB.pbi include file is generated automatically by scanning all of the ProGUI source extracting exported procedures, constants (that start with '#PG_') and structures (that have the 'public' keyword in the comment) - it should be fairly straight forward to modify the script to generate a C/C++ header with imports etc..
Code: Select all
#PG_InterpolationMode_Linear
#PG_InterpolationMode_Nearest
#PG_InterpolationMode_Cubic
#PG_InterpolationMode_MultiSampleLinear
#PG_InterpolationMode_Anisotropic
#PG_InterpolationMode_HighQualityCubic
Code: Select all
Procedure eventHandler_ContainerWidgetDraw(*widget.Widget, EventType, *event.PG_EventDraw, *data)
If EventType = #PG_Event_DrawForeground
DrawBorder(shadowBorder2, 0, 0, *event\width, *event\height, 0.8)
EndIf
EndProcedure
Code: Select all
shodowBorderImg = LoadImg("Icons/borderShadow.png")
Global shadowBorder = CreateBorderImg(shodowBorderImg, 0, 27, 27, 27, 27)
Global shadowBorder2 = CreateBorderImg(shodowBorderImg, 0, 27, 27, 27, 27)
BorderImgSetWidth(shadowBorder2, 0.2, 0.6, 0.1, 7)
Code: Select all
OptionGadget(#Gadget_FillBrushColor, 0, 0, 0, 0, "Color")
widget = CreateOsWidget(0, 0, 60, 19, GadgetID(#Gadget_FillBrushColor))
item = LayoutGetItemFromWidget(widget)
LayoutSetItemProperty(item, #PG_Layout_Item_MarginLeft, 10)
Code: Select all
OptionGadget(#Gadget_FillBrushColor, 0, 0, 0, 0, "Color")
widget = CreateOsWidget(0, 0, 60, 19, GadgetID(#Gadget_FillBrushColor))
WidgetSetMarginLeft(widget, 10)