The plugin generator layers to vgui res
- GIMP, recommended GIMP version >= 2.10.
- GIMP's python module gimpfu.
Download and extract the gimp-vgui-generator
folder to GIMP's plug-ins
folder:
Windows: C:\Users\<USERNAME>\AppData\Roaming\GIMP\2.10\plug-ins
Linux: /home/<USERNAME>/.config/GIMP/2.10/plug-ins
macOS: /Users/<USERNAME>/Library/Application Support/GIMP/2.10/plug-ins
If you can’t locate the plug-ins
folder, open GIMP and go to Edit > Preferences > Folders > Plug-Ins and use one of the listed folders.
-
create an image as you want (full screen size 640x480)
-
Create a new layer and resize it as a control.
-
Change the layer name to
fieldName|ControlName
, e.g.ShitPanel|Frame
. -
Click
Image > Half-Life > VGUI res Generator
. -
Copy and paste
-
按你的需要创建一个图像(全屏尺寸为640x480)
-
新建图层并调整位置大小作为控件
-
修改图层名字格式为:
fieldName|ControlName
,如ShitPanel|Frame
-
点击
图像 > Half-Life > VGUI res Generator
-
复制黏贴