[War3]Fdf文件详解,简单的UI教程 - 魔兽争霸3

本文章内容记录博主的研究,供大家学习,转载注明出处

BACKDROP //背景
TEXT //文本
TEXTAREA //文字框
TEXTBUTTON //文本按钮
SIMPLEBUTTON //按钮 ,可以插入图片
POPUPMENU //弹出菜单
LISTBOX //列表框
EDITBOX //编辑框 可以模拟聊天栏
CHECKBOX //复选框
SPRITE //单位大头像
SLIDER //滑块
BUTTON //按钮
HIGHLIGHT //高光
SCROLLBAR //滚动条
MENU //菜单
DIALOG //对话框

------------- 简单的UI演示 -------------
[UI]背景模板

Frame "BACKDROP" "Powerbak"{
	Width 0.055, //宽度
	Height 0.055, //高度
	BackdropTileBackground, //背景平铺
	BackdropBackground  "UI\Widgets\Console\Human\human-inventory-slotfiller.blp", //背景路径
	BackdropBackgroundSize  0.055, //平铺大小 忽略此参数的话默认图片大小
	BackdropBackgroundInsets 0.01 0.01 0.01 0.01, //背景和边框的内间距
	BackdropCornerFlags "UL|UR|BL|BR|T|L|B|R",//边范围
	BackdropCornerSize  0.020,//边宽
	BackdropEdgeFile  "UI\Widgets\EscMenu\NightElf\nightelf-options-menu-border.blp", //边宽路径 需要拼的
	BackdropBlendAll, //透明通道
}

UI[背景模板] 指定边写法

Frame "BACKDROP" "Powerbak"{
	BackdropTileBackground,
    BackdropBackground  "UI\Widgets\HeavyBorderBackGround.blp",
    BackdropCornerFlags "UL|UR|BL|BR",
    BackdropCornerFile  "UI\Widgets\HeavyBorderCorners.blp",
    BackdropLeftFile    "UI\Widgets\HeavyBorderLeft.blp",
    BackdropRightFile   "UI\Widgets\HeavyBorderRight.blp",
    BackdropTopFile     "UI\Widgets\HeavyBorderTop.blp",
    BackdropBottomFile  "UI\Widgets\HeavyBorderBottom.blp",
}

你可能感兴趣的:(FDF)