|
|
|
@ -110,73 +110,63 @@ function outgame:procGenerateName()
|
|
|
|
|
|
|
|
|
|
-- Look at outgame:procUpdateNameRaceLabel() for the "race" list.
|
|
|
|
|
-- fy ma try zo -->
|
|
|
|
|
local lastName = "test"
|
|
|
|
|
local firstName = "test2"
|
|
|
|
|
local lastName = "test"
|
|
|
|
|
if tonumber(dbNameRace) == 1 then
|
|
|
|
|
-- Fyros
|
|
|
|
|
lastName = self:getFyrosLastName()
|
|
|
|
|
firstName = self:getFyrosFirstName()
|
|
|
|
|
fullnameResult = lastName .. " " .. firstName
|
|
|
|
|
nameResult = firstName
|
|
|
|
|
lastName = self:getFyrosLastName()
|
|
|
|
|
elseif tonumber(dbNameRace) == 2 then
|
|
|
|
|
-- Matis
|
|
|
|
|
lastName = self:getMatisLastName()
|
|
|
|
|
firstName = self:getMatisFirstName()
|
|
|
|
|
fullnameResult = lastName .. " " .. firstName
|
|
|
|
|
nameResult = firstName
|
|
|
|
|
lastName = self:getMatisLastName()
|
|
|
|
|
elseif tonumber(dbNameRace) == 3 then
|
|
|
|
|
-- Tryker
|
|
|
|
|
lastName = self:getTrykerLastName()
|
|
|
|
|
firstName = self:getTrykerFirstName()
|
|
|
|
|
fullnameResult = firstName .. " " .. lastName
|
|
|
|
|
nameResult = firstName
|
|
|
|
|
lastName = self:getTrykerLastName()
|
|
|
|
|
elseif tonumber(dbNameRace) == 4 then
|
|
|
|
|
-- Zorai
|
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
|
firstName = self:getZoraiFirstName()
|
|
|
|
|
fullnameResult = firstName .. " " .. lastName
|
|
|
|
|
nameResult = firstName
|
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
|
elseif tonumber(dbNameRace) == 5 then
|
|
|
|
|
-- Maraudeurs
|
|
|
|
|
-- lastName
|
|
|
|
|
if tonumber(dbNameSubRace) == 1 then
|
|
|
|
|
|
|
|
|
|
-- firstName
|
|
|
|
|
if tonumber(dbNameSubRaceFirstName) == 1 then
|
|
|
|
|
-- Fyros
|
|
|
|
|
lastName = self:getFyrosLastName()
|
|
|
|
|
elseif tonumber( dbNameSubRace ) == 2 then
|
|
|
|
|
-- Matis F
|
|
|
|
|
lastName = self:getMatisLastName(2)
|
|
|
|
|
elseif tonumber( dbNameSubRace ) == 3 then
|
|
|
|
|
firstName = self:getFyrosFirstName()
|
|
|
|
|
elseif tonumber(dbNameSubRaceFirstName) == 2 then
|
|
|
|
|
-- Matis M
|
|
|
|
|
lastName = self:getMatisLastName(1)
|
|
|
|
|
elseif tonumber( dbNameSubRace ) == 4 then
|
|
|
|
|
firstName = self:getMatisFirstName(1)
|
|
|
|
|
elseif tonumber(dbNameSubRaceFirstName) == 3 then
|
|
|
|
|
-- Matis F
|
|
|
|
|
firstName = self:getMatisFirstName(2)
|
|
|
|
|
elseif tonumber(dbNameSubRaceFirstName) == 4 then
|
|
|
|
|
-- Tryker
|
|
|
|
|
lastName = self:getTrykerLastName()
|
|
|
|
|
elseif tonumber( dbNameSubRace ) == 5 then
|
|
|
|
|
firstName = self:getTrykerFirstName()
|
|
|
|
|
elseif tonumber(dbNameSubRaceFirstName) == 5 then
|
|
|
|
|
-- Zorai
|
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
|
firstName = self:getZoraiFirstName()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- firstName
|
|
|
|
|
if tonumber(dbNameSubRace2) == 1 then
|
|
|
|
|
-- lastName
|
|
|
|
|
if tonumber(dbNameSubRaceLastName) == 1 then
|
|
|
|
|
-- Fyros
|
|
|
|
|
firstName = self:getFyrosFirstName()
|
|
|
|
|
elseif tonumber( dbNameSubRace2 ) == 2 then
|
|
|
|
|
lastName = self:getFyrosLastName()
|
|
|
|
|
elseif tonumber(dbNameSubRaceLastName) == 2 then
|
|
|
|
|
-- Matis
|
|
|
|
|
firstName = self:getMatisFirstName()
|
|
|
|
|
firstName = self:getMatisFirstName()
|
|
|
|
|
elseif tonumber( dbNameSubRace2 ) == 3 then
|
|
|
|
|
lastName = self:getMatisLastName()
|
|
|
|
|
elseif tonumber(dbNameSubRaceLastName) == 3 then
|
|
|
|
|
-- Tryker
|
|
|
|
|
firstName = self:getTrykerFirstName()
|
|
|
|
|
elseif tonumber( dbNameSubRace2 ) == 4 then
|
|
|
|
|
lastName = self:getTrykerLastName()
|
|
|
|
|
elseif tonumber(dbNameSubRaceLastName) == 4 then
|
|
|
|
|
-- Zorai
|
|
|
|
|
firstName = self:getZoraiFirstName()
|
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
fullnameResult = lastName .. " " .. firstName
|
|
|
|
|
nameResult = firstName
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
uiNameFull.hardtext = fullnameResult;
|
|
|
|
|
fullnameResult = firstName .. " " .. lastName
|
|
|
|
|
nameResult = firstName
|
|
|
|
|
|
|
|
|
|
uiNameFull.hardtext = fullnameResult;
|
|
|
|
|
|
|
|
|
@ -241,10 +231,10 @@ end
|
|
|
|
|
local matisF = "Matis " .. (string.lower(tostring(i18n.get("uiCP_Sex_Female")) )):gsub("^%l", string.upper);
|
|
|
|
|
local matisM = "Matis " .. (string.lower(tostring(i18n.get("uiCP_Sex_Male")) )):gsub("^%l", string.upper);
|
|
|
|
|
|
|
|
|
|
function outgame:procUpdateNameSubRaceLabel()
|
|
|
|
|
local nameSubRaceType = { "Fyros", matisF, matisM, "Tryker", "Zoraď" }
|
|
|
|
|
local uiNameSubRaceText = getUI("ui:outgame:appear_name:name_sub_race_slider:name_race");
|
|
|
|
|
local dbNameSubRace = getDbProp("UI:TEMP:NAME_SUB_RACE");
|
|
|
|
|
function outgame:procUpdateNameSubRaceFirstNameLabel()
|
|
|
|
|
local nameSubRaceFirstNameType = { "Fyros", matisM, matisF, "Tryker", "Zoraď" }
|
|
|
|
|
local uiNameSubRaceFirstNameText = getUI("ui:outgame:appear_name:name_sub_race_first_name_slider:name_race");
|
|
|
|
|
local dbNameSubRaceFirstName = getDbProp("UI:TEMP:NAME_SUB_RACE_FIRST_NAME");
|
|
|
|
|
|
|
|
|
|
uiNameSubRaceFirstNameText.hardtext= tostring(nameSubRaceFirstNameType[tonumber(dbNameSubRaceFirstName)]);
|
|
|
|
|
end
|
|
|
|
|