Skip to Content

内置 elements 总表

图片/背景

  • FizzyBackgroundElement:在 pad 内平铺 BgType 贴图
  • MapBackgroundElement:原版地图风格 9-slice 背景

槽位/图标/文本

  • SlotElement:按 pad 区域绘制槽位网格
  • IconElement:按区域适配绘制纹理
    • 常见调用:IconElement.builder(tex).stretchToFit().allowUpscale().build()
  • FizzyComponentElement:富文本多行渲染
    • 常见入口:builder()/singleLine/multiLine
  • FizzyTooltipElement:自定义 tooltip 渲染(TOOLTIP 层)
    • 常见入口:builder()maxWidthPxtooltipColorspositioner

按钮

  • FizzyButtonElement:Fizzy 风格按钮(文+图)
  • ColoredButtonElement:颜色主题按钮
  • VanillaLikeButtonElement:类原版按钮主题
  • WidgetButtonElement:箭头/控件型按钮
  • IconButtonElement:基于 CustomIconButton 的图标按钮
  • TransparentButtonElement:透明底 icon 按钮

below 区按钮

  • LeftButtonBelow:左侧 below 按钮
  • CenterButtonBelow:居中 below 按钮
  • RightButtonBelow:右侧 below 按钮
  • DoubleButtonBelow:左右双按钮

可视化/容器/菜单

  • ProgressElement:BossBar 风格进度条
  • SimpleChartsElement:网格 cell 容器(cell 级裁剪渲染)
  • SimpleDraggableElement:可滚动内容容器(slot/pixel pad)
  • ContextMenuElement:右键菜单/子菜单/分隔线/自定义项

交互阻挡

  • SlotBlockerElement:玻璃动画阻挡层,禁用下层 widget
  • TransparentBlockerElement:透明阻挡层
Last updated on