8 ISPanel.initialise(
self)
11 local
title = "Faction"
13 local factionWidth = 500
14 local factionHeight = 300
22 for k,
v in pairs(factionsList) do
23 if not
v.requiresWhitelist then
24 self.initialFaction = {k = k,
v =
v}
29 self.faction =
self.initialFaction and
self.initialFaction.k or
""
33 self.title = ISLabel:
new(
self.uiHelper.GetMiddle(
self.width, UIFont.Title,
title),
yOffset, 25,
title, 1, 1, 1, 1, UIFont.Title,
true)
34 self.title:initialise()
39 self.
subtitle = ISLabel:new(
self.
uiHelper.GetMiddle(
self.
width, UIFont.Large,
subtitle),
yOffset, 25,
subtitle, 1, 1, 1, 1, UIFont.Large, true)
45 self.
factionImage = ISImage:new(
self.
width / 2 - factionWidth / 2,
yOffset, factionWidth, factionHeight, getTexture(
self.initialFaction and
self.initialFaction.
v and
self.initialFaction.
v.logo or
"media/textures/factions/missing-logo.png"))
56 for k,
v in pairs(factionsList) do
57 -- if get
player get whitelisted factions == true then add
option
59 if
self.initialFaction and
v ~=
self.initialFaction.
v and not
v.requiresWhitelist then
61 elseif not
self.initialFaction then
73 self.
factionDescription = ISLabel:new(
self.
uiHelper.GetMiddle(
self.
width, UIFont.Medium,
factionDescription),
yOffset, 25,
factionDescription, 1, 1, 1, 1, UIFont.Medium, true)
103 o = ISPanel:
new(parameters.x, parameters.y, parameters.width, parameters.height)
104 setmetatable(o,
self)
106 o.backgroundColor = {r=0, g=0, b=0,
a=0}
107 o.borderColor = {r=0, g=0, b=0,
a=0}
108 o.moveWithMouse =
false
109 o.playerObject = parameters.playerObject
void FrameworkZ Classes List()
void if self initialFaction and v()
void self factionDropdown()
void local factionDescription()
void self factionImage scaledWidth()
void self factionImage scaledHeight()
void PFW_CreateCharacterFaction()
void if not description or description()
void processingNotification backgroundColor a()
void onFactionSelected(dropdown)