Skip to content

Commit

Permalink
v4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
r-e-d committed Jun 9, 2020
1 parent 7136c52 commit b10070d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion LeUI/LeUI.tp2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BACKUP ~LeUI/backup~
AUTHOR ~lefreut~
VERSION ~4.0~
VERSION ~4.1~
LANGUAGE
~English~ ~en_US~ ~LeUI/lang/en_US/setup.tra~

Expand Down
34 changes: 17 additions & 17 deletions LeUI/copy/UI.menu
Original file line number Diff line number Diff line change
Expand Up @@ -15564,11 +15564,11 @@ function proficiencyEnabled(row)
return true
end

function proficiencyValue(row)
if type(getTranslatedProficiencyValue) == 'function' then
return getTranslatedProficiencyValue(row)
function getProficiency(row)
if type(getTranslatedProficiency) == 'function' then
return getTranslatedProficiency(row)
end
return chargen.proficiency[row].value
return chargen.proficiency[row]
end

function getProficienciesTitle()
Expand Down Expand Up @@ -15685,7 +15685,7 @@ menu
area 0 16 16 22
frame 4
align center center
enabled "proficiencyValue(rowNumber) > 4"
enabled "getProficiency(rowNumber).value > 4"
}
}
column
Expand All @@ -15697,7 +15697,7 @@ menu
area 0 16 16 22
frame 4
align center center
enabled "proficiencyValue(rowNumber) > 3"
enabled "getProficiency(rowNumber).value > 3"
}
}
column
Expand All @@ -15709,7 +15709,7 @@ menu
area 0 16 16 22
frame 4
align center center
enabled "proficiencyValue(rowNumber) > 2"
enabled "getProficiency(rowNumber).value > 2"
}
}
column
Expand All @@ -15721,7 +15721,7 @@ menu
area 0 16 16 22
frame 4
align center center
enabled "proficiencyValue(rowNumber) > 1"
enabled "getProficiency(rowNumber).value > 1"
}
}
column
Expand All @@ -15733,7 +15733,7 @@ menu
area 0 16 16 22
frame 4
align center center
enabled "proficiencyValue(rowNumber) > 0"
enabled "getProficiency(rowNumber).value > 0"
}
}
column
Expand Down Expand Up @@ -15768,13 +15768,13 @@ menu
local isClickable1 = reverseButtonPosition and minusButtonClickable or plusButtonClickable
local isClickable2 = reverseButtonPosition and plusButtonClickable or minusButtonClickable
if cellNumber == 7 and isClickable1(currentChargenProficiency) then
local value = proficiencyValue(currentChargenProficiency)
local value = getProficiency(currentChargenProficiency).value
createCharScreen:OnProficiencyPlusMinusButtonClick(allChargenProficiencies[currentChargenProficiency].id, not reverseButtonPosition)
cannotFurtherSpecialize = value == proficiencyValue(currentChargenProficiency)
cannotFurtherSpecialize = value == getProficiency(currentChargenProficiency).value
elseif cellNumber == 8 and isClickable2(currentChargenProficiency) then
local value = proficiencyValue(currentChargenProficiency)
local value = getProficiency(currentChargenProficiency).value
createCharScreen:OnProficiencyPlusMinusButtonClick(allChargenProficiencies[currentChargenProficiency].id, reverseButtonPosition)
cannotFurtherSpecialize = value == proficiencyValue(currentChargenProficiency)
cannotFurtherSpecialize = value == getProficiency(currentChargenProficiency).value
end
end
cellNumber = nil
Expand All @@ -15790,13 +15790,13 @@ menu
local isClickable1 = reverseButtonPosition and minusButtonClickable or plusButtonClickable
local isClickable2 = reverseButtonPosition and plusButtonClickable or minusButtonClickable
if cellNumber == 7 and isClickable1(currentChargenProficiency) then
local value = proficiencyValue(currentChargenProficiency)
local value = getProficiency(currentChargenProficiency).value
createCharScreen:OnProficiencyPlusMinusButtonClick(allChargenProficiencies[currentChargenProficiency].id, not reverseButtonPosition)
cannotFurtherSpecialize = value == proficiencyValue(currentChargenProficiency)
cannotFurtherSpecialize = value == getProficiency(currentChargenProficiency).value
elseif cellNumber == 8 and isClickable2(currentChargenProficiency) then
local value = proficiencyValue(currentChargenProficiency)
local value = getProficiency(currentChargenProficiency).value
createCharScreen:OnProficiencyPlusMinusButtonClick(allChargenProficiencies[currentChargenProficiency].id, reverseButtonPosition)
cannotFurtherSpecialize = value == proficiencyValue(currentChargenProficiency)
cannotFurtherSpecialize = value == getProficiency(currentChargenProficiency).value
end
end
"
Expand Down

0 comments on commit b10070d

Please sign in to comment.