AutoRun = true --(true) will create Itself at 0s, (false) you need to HeroScoreFrameInit()
,TocPath = "war3mapImported\\HeroScoreFrame.toc"
,ParentFunc = function() return BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0) end
,CreateOptions = true
,CreateOptionsInMenu = true
, OptionX = 0.1
, OptionY = 0.55
-- HideText(true) hides the score Icons and Texts between Face and Items
,HideText = false
-- HideTextPack(true) only works with HideText(true), Then it makes the Frames take less space.
,HideTextPack = true
-- FACE_COLOR_BACKGROUND(true) moves the playercolor below the Face. (false) To the top of a HeroScoreFrame
, FACE_COLOR_BACKGROUND = true
-- AutoSearchTarget, when there is no valid Unit of the UIPlayer of a HeroScoreFrame search one
, AutoSearchTarget = true
, Scale = 0.7
--SizeX Y should match fdf values
,SizeX = 0.22
,SizeXPacked = 0.22 - 0.054
,SizeY = 0.075
-- how many HeroCards are created in InitFrames
, AutoCreateCount = GetBJMaxPlayers()
-- how many HeroCards are in one Col
, Rows = 6
-- X space between 2 Cols
, ColOffsetX = 0
-- Inital TooltipScale
, TooltipScale = 1.0
, TooltipWidth = 0.2
, TooltipFixedPosition = true
, TooltipFixedPositionX = 0.79
, TooltipFixedPositionY = 0.16
, TooltipFixedPositionPoint = FRAMEPOINT_BOTTOMRIGHT
-- can be used to prevent players from taking an UI
-- return false when no UI shall be used by that player
-- only affects auto filling
, AllowedPlayer = function (player)
if GetPlayerSlotState(player) ~= PLAYER_SLOT_STATE_PLAYING then
-- return false
end
if (GetPlayerController(player) ~= MAP_CONTROL_USER and GetPlayerController(player) ~= MAP_CONTROL_COMPUTER) then
return false
end
if player == Player(6) or player == Player(0) then
-- return false
end
return true
end
-- FillByTeam(false) fill the UI based on PlayerNumber
-- FillByTeam(true) start with PlayerTeam than PlayerNumber
-- FillByTeam = false is recommented when there are no fixed Teams
, FillByTeam = false
, FillByTeamSkipCols = true
-- postion of the first HeroScoreFrame,
, X = 0.4
, Y = 0.55
, Point = FRAMEPOINT_TOPRIGHT
-- Key has to be hold to show the UI
, TriggerKey = OSKEY_TAB
, AllyScale = 1.0
-- shown next to Share/Swap Buttons (current State)
, Texture = {
[false] = "ui\\widgets\\glues\\thumbsdown-up"
,[true] = "ui\\widgets\\glues\\thumbsup-up"
}
-- Read item specific text/icon, instead of itemCode text/icon.
, DynamicItems = false
-- Fixed postion of the PlayerControl-PopUp,
-- disable fixed position with AllyPoint = false or commenting it out
--, AllyPoint = FRAMEPOINT_TOPRIGHT
, AllyX = 0.79
, AllyY = 0.55
, AutoSwapBot = true
, AllowSwapEnemies = true
, SwitchAllianceType = bj_ALLIANCE_ALLIED_VISION -- choose a bj_ALLIANCE_xxxx
, SwitchAddStates = {ALLIANCE_SHARED_ADVANCED_CONTROL} -- add additional AllianceStates
-- Interpret Swap onto Enemy Players as Team Switch
-- SwapEnemyIsSwitch(true) change Teams, no unit owner change
-- SwapEnemyIsSwitch(false) change unit owner, not Team
, SwapEnemyIsSwitch = true
, AllowSwapAllies = true
, AllowShareAdv = true
, AllowShare = true
, AllowSendGoldAlly = true
, AllowSendLumberAlly = true
, AllowSendGoldEnemy = false
, AllowSendLumberEnemy = false