/gimp-vgui-generator

gimp vgui generator

Primary LanguagePython

VGUI layout generator

The plugin generator layers to vgui res

Requirements

  1. GIMP, recommended GIMP version >= 2.10.
  2. GIMP's python module gimpfu.

Installation

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.

Usage

  1. create an image as you want (full screen size 640x480)

  2. Create a new layer and resize it as a control.

  3. Change the layer name to fieldName|ControlName, e.g. ShitPanel|Frame.

  4. Click Image > Half-Life > VGUI res Generator.

  5. Copy and paste

使用方法

  1. 按你的需要创建一个图像(全屏尺寸为640x480)

  2. 新建图层并调整位置大小作为控件

  3. 修改图层名字格式为: fieldName|ControlName,如ShitPanel|Frame

  4. 点击 图像 > Half-Life > VGUI res Generator

  5. 复制黏贴