Difference between revisions of "Category:HUD Items"

From Fortress Forever Wiki
Jump to navigationJump to search
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Infobox manual/Header}}
 
{{Infobox manual/Header}}
 
{{Infobox_mapping}}
 
{{Infobox_mapping}}
HUD items are visuals you can stick up on the player's screen. We use them for showing the player flag status and other useful information.
+
HUD items are visuals you can stick up on the player's screen through Lua. We use them for showing the player flag status and other useful information.
 +
 
 +
{| border="1" cellspacing="0"
 +
! LUA Command !! Description
 +
|-
 +
| [[Lua:AddHudIcon|AddHudIcon]]( player, HudIconType, NameOfHudIcon, X, Y, Width, Height, Align ) || adds HUD icon to given player of given type. Name is generally taken from the flag entity to apply the right kind. X, Y, W, H, and A are all standard.
 +
|-
 +
| [[Lua:AddHudIconToAll|AddHudIconToAll]]( HudIconType, NameOfHudUcon, X, Y, W, H, A ) || adds HUD icon to all players like those used for flag info.
 +
|-
 +
| [[Lua:AddHudText|AddHudText]] || Puts a bit of text on the screen.
 +
|-
 +
| [[Lua:AddHudTextToAll|AddHudTextToAll]] ||
 +
|-
 +
| [[Lua:AddHudTimer|AddHudTimer]] || Puts a countdown timer on the screen of one player.
 +
|-
 +
| [[Lua:AddHudTimerToTeam|AddHudTimerToTeam]] || Puts a countdown timer on the screen of players on a specified team.
 +
|-
 +
| [[Lua:AddHudTimerToAll|AddHudTimerToAll]] ||
 +
|-
 +
| [[AddHudBox]](player, identifier, x, y, width, height, CustomColor, CustomBorder, xalign, yalign ) ||
 +
|-
 +
| [[AddHudBoxToTeam]](team, identifier, x, y, width, height, CustomColor, CustomBorder, xalign, yalign ) ||
 +
|-
 +
| [[AddHudBoxToAll]](identifier, x, y, width, height, CustomColor, CustomBorder, xalign, yalign ) ||Adds a hud box to the screen. Color and border are set with CustomColor(r, g, b, a) and CustomBorder(CustomColor(), width)
 +
|-
 +
| [[Lua:RemoveHudItem|RemoveHudItem]] ||
 +
|-
 +
| [[Lua:RemoveHudItemFromAll|RemoveHudItemFromAll]] ||
 +
|}
 +
 
 +
Additionally, see [[Lua:Timer]] for a more useful way to control HUD timers.
 
[[Category:Lua_Commands]]
 
[[Category:Lua_Commands]]
 
{{Infobox manual/Footer}}
 
{{Infobox manual/Footer}}

Latest revision as of 04:21, 12 July 2017


Mapping for FF
The Basics

Setting up Hammer
Getting Started With Lua
Releasing a map

FF-specific Entities

Lua location system

Map Templates
FF Lua Documentation

Entity Typing
Entity Collections

Commands
Callbacks

HUD items are visuals you can stick up on the player's screen through Lua. We use them for showing the player flag status and other useful information.

LUA Command Description
AddHudIcon( player, HudIconType, NameOfHudIcon, X, Y, Width, Height, Align ) adds HUD icon to given player of given type. Name is generally taken from the flag entity to apply the right kind. X, Y, W, H, and A are all standard.
AddHudIconToAll( HudIconType, NameOfHudUcon, X, Y, W, H, A ) adds HUD icon to all players like those used for flag info.
AddHudText Puts a bit of text on the screen.
AddHudTextToAll
AddHudTimer Puts a countdown timer on the screen of one player.
AddHudTimerToTeam Puts a countdown timer on the screen of players on a specified team.
AddHudTimerToAll
AddHudBox(player, identifier, x, y, width, height, CustomColor, CustomBorder, xalign, yalign )
AddHudBoxToTeam(team, identifier, x, y, width, height, CustomColor, CustomBorder, xalign, yalign )
AddHudBoxToAll(identifier, x, y, width, height, CustomColor, CustomBorder, xalign, yalign ) Adds a hud box to the screen. Color and border are set with CustomColor(r, g, b, a) and CustomBorder(CustomColor(), width)
RemoveHudItem
RemoveHudItemFromAll

Additionally, see Lua:Timer for a more useful way to control HUD timers.