From 7ee9833bf3ae6df42c965150b7503163e8ad792c Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 15 Mar 2016 00:01:29 +0100 Subject: [PATCH] Changed: Use more explicit variable names --- .../gamedev/interfaces_v3/out_v2_appear.lua | 41 ++- .../gamedev/interfaces_v3/out_v2_appear.xml | 253 +++++++++--------- 2 files changed, 147 insertions(+), 147 deletions(-) diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua b/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua index c962a7492..76b187a5c 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua +++ b/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua @@ -101,9 +101,9 @@ end function outgame:procGenerateName() local uiNameFull = getUI("ui:outgame:appear_name:name_full"); local uiGenText = getUI("ui:outgame:appear_name:eb"); - local dbNameRace = getDbProp("UI:TEMP:NAME_RACE"); - local dbNameSubRace = getDbProp("UI:TEMP:NAME_SUB_RACE"); - local dbNameSubRace2 = getDbProp("UI:TEMP:NAME_SUB_RACE2"); + local dbNameRace = getDbProp("UI:TEMP:NAME_RACE"); + local dbNameSubRaceFirstName = getDbProp("UI:TEMP:NAME_SUB_RACE_FIRST_NAME"); + local dbNameSubRaceLastName = getDbProp("UI:TEMP:NAME_SUB_RACE_LAST_NAME"); local nameResult = ""; local fullnameResult = ""; @@ -210,8 +210,8 @@ function outgame:procUpdateNameRaceLabel() local uiNameSexSlider = getUI("ui:outgame:appear_name:name_sex_slider"); - local uiNameSubRaceSlider = getUI("ui:outgame:appear_name:name_sub_race_slider"); - local uiNameSubRace2Slider = getUI("ui:outgame:appear_name:name_sub_race2_slider"); + local uiNameSubRaceFirstNameSlider = getUI("ui:outgame:appear_name:name_sub_race_first_name_slider"); + local uiNameSubRaceLastNameSlider = getUI("ui:outgame:appear_name:name_sub_race_last_name_slider"); local uiNameGenerate = getUI("ui:outgame:appear_name:generate"); -- Show/Hide sex slider @@ -224,15 +224,15 @@ function outgame:procUpdateNameRaceLabel() uiNameSexSlider.active = false; end - -- Show/Hide sub race slider - if tonumber(dbNameRace) == 5 then - uiNameSubRaceSlider.active = true; - uiNameSubRace2Slider.active = true; - uiNameGenerate.y = "-105" - else - uiNameSubRaceSlider.active = false; - uiNameSubRace2Slider.active = false; - end + -- Show/Hide sub race slider + if tonumber(dbNameRace) == 5 then + uiNameSubRaceFirstNameSlider.active = true; + uiNameSubRaceLastNameSlider.active = true; + uiNameGenerate.y = "-105" + else + uiNameSubRaceFirstNameSlider.active = false; + uiNameSubRaceLastNameSlider.active = false; + end uiNameRaceText.hardtext = tostring(nameRaceType[tonumber(dbNameRace)]); end @@ -246,16 +246,15 @@ function outgame:procUpdateNameSubRaceLabel() local uiNameSubRaceText = getUI("ui:outgame:appear_name:name_sub_race_slider:name_race"); local dbNameSubRace = getDbProp("UI:TEMP:NAME_SUB_RACE"); - - uiNameSubRaceText.hardtext= tostring(nameSubRaceType[tonumber(dbNameSubRace)]); + uiNameSubRaceFirstNameText.hardtext= tostring(nameSubRaceFirstNameType[tonumber(dbNameSubRaceFirstName)]); end -function outgame:procUpdateNameSubRace2Label() - local nameSubRace2Type = { "Fyros", "Matis", "Tryker", "Zoraļ" } - local uiNameSubRace2Text = getUI("ui:outgame:appear_name:name_sub_race2_slider:name_race"); - local dbNameSubRace2 = getDbProp("UI:TEMP:NAME_SUB_RACE2"); +function outgame:procUpdateNameSubRaceLastNameLabel() + local nameSubRaceLastNameType = { "Fyros", "Matis", "Tryker", "Zoraļ" } + local uiNameSubRaceLastNameText = getUI("ui:outgame:appear_name:name_sub_race_last_name_slider:name_race"); + local dbNameSubRaceLastName = getDbProp("UI:TEMP:NAME_SUB_RACE_LAST_NAME"); - uiNameSubRace2Text.hardtext= tostring(nameSubRace2Type[tonumber(dbNameSubRace2)]); + uiNameSubRaceLastNameText.hardtext= tostring(nameSubRaceLastNameType[tonumber(dbNameSubRaceLastName)]); end ------------------------------------------------------------------------------------------------------------ diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml b/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml index a6cafbf17..831e1966c 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml +++ b/code/ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.xml @@ -51,8 +51,8 @@ - - + + @@ -1307,120 +1307,121 @@ - - - - - - - - - - - - - - + - + - - - - - - - - - - - - + + + - + + - - - - - - - - - - - - + + + - + - - - - - - - - - - - - + - + + + - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1533,8 +1534,8 @@ - - + + @@ -1649,29 +1650,29 @@ - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + +