5 ISPanel.initialise(
self)
10 local factionWidth = 500
11 local factionHeight = 300
19 for k,
v in pairs(factionsList) do
20 if not
v.requiresWhitelist then
26 self.faction =
self.initialFaction and
self.initialFaction.k or
""
30 self.title = ISLabel:
new(
self.uiHelper.GetMiddle(
self.width, UIFont.Title,
title),
yOffset, 25,
title, 1, 1, 1, 1, UIFont.Title,
true)
36 self.
subtitle = ISLabel:new(
self.
uiHelper.GetMiddle(
self.
width, UIFont.Large,
subtitle),
yOffset, 25,
subtitle, 1, 1, 1, 1, UIFont.Large, true)
53 for k,
v in pairs(factionsList) do
54 -- if get
player get whitelisted factions == true then add
option
56 if
self.initialFaction and
v ~=
self.initialFaction.
v and not
v.requiresWhitelist then
58 elseif not
self.initialFaction then
70 self.
factionDescription = ISLabel:new(
self.
uiHelper.GetMiddle(
self.
width, UIFont.Medium,
factionDescription),
yOffset, 25,
factionDescription, 1, 1, 1, 1, UIFont.Medium, true)
100 o = ISPanel:
new(parameters.x, parameters.y, parameters.width, parameters.height)
101 setmetatable(o,
self)
103 o.backgroundColor = {r=0, g=0, b=0,
a=0}
104 o.borderColor = {r=0, g=0, b=0,
a=0}
105 o.moveWithMouse =
false
106 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 FrameworkZ UI CreateCharacterFaction()
void self factionImage scaledHeight()
void self FrameworkZ UI self nil
void processingNotification backgroundColor a()
void self playerListPanel render()
Factions module for FrameworkZ. Defines and interacts with FACTION object.
void onFactionSelected(dropdown)
Contains all of the User Interfaces for FrameworkZ.