Skip to content

Commit

Permalink
translate identify UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mleduque committed Nov 15, 2023
1 parent 46b34c9 commit 42c0b38
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions faiths_and_powers/language/english/setup.tra
Original file line number Diff line number Diff line change
Expand Up @@ -5398,3 +5398,4 @@ This spell holds 1 hostile animal rigidly immobile if it fails to save vs. Spell

Paralyzed creatures are helpless and cannot dodge or defend themselves from attacks. Being held does not prevent the worsening of the subject's condition due to wounds, disease, or poison.~

@108000000 = ~Remaining Identify Uses: ~
2 changes: 2 additions & 0 deletions faiths_and_powers/language/french/setup.tra
Original file line number Diff line number Diff line change
Expand Up @@ -2599,3 +2599,5 @@ Méditation n'a aucun effet si le prêtre est sous l'effet de Bénédiction, Aid
// 105000000-105000005 unused (XXX Minor Wounds)
// 106000000-106000001 unused (Infravision)
// 107000000-107000001 unused (Hold Animal)

@108000000 = ~Identifications restantes : ~
4 changes: 3 additions & 1 deletion faiths_and_powers/lib/B3Identify.tph
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ B3Identify_UnidentifiedCount = -1
---------------

function B3Identify_RemainingUsesText()
return "Remaining Identify Uses: "..B3Identify_UseCount
return "%remaining_uses_text%"..B3Identify_UseCount
end

function B3Identify_IdentifySlot(slotinfo)
Expand Down Expand Up @@ -359,6 +359,8 @@ menu
LAF B3_CONTINGENCY_REDIRECT_INSTALL END

COPY ~.../B3Identify-inlined/copy/M_B3IDEN.lua~ ~override~
SPRINT remaining_uses_text @108000000
EVALUATE_BUFFER

COPY_EXISTING ~UI.MENU~ ~override~

Expand Down
4 changes: 3 additions & 1 deletion faiths_and_powers/lib/semi_spont/B3Identify.tph
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ B3Identify_UnidentifiedCount = -1
---------------

function B3Identify_RemainingUsesText()
return "Remaining Identify Uses: "..B3Identify_UseCount
return "%remaining_uses_text%"..B3Identify_UseCount
end

function B3Identify_IdentifySlot(slotinfo)
Expand Down Expand Up @@ -359,6 +359,8 @@ menu
LAF B3_CONTINGENCY_REDIRECT_INSTALL END

COPY ~.../B3Identify-inlined/copy/M_B3IDEN.lua~ ~override~
SPRINT remaining_uses_text @1000
EVALUATE_BUFFER

COPY_EXISTING ~UI.MENU~ ~override~

Expand Down
3 changes: 3 additions & 0 deletions faiths_and_powers/lib/semi_spont/en_US/semi_spont.tra
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ Equipped abilities:

Weight: 0~
//

// identify UI
@1000 = ~Remaining Identify Uses: ~
3 changes: 3 additions & 0 deletions faiths_and_powers/lib/semi_spont/fr_FR/semi_spont.tra
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@ Capacités d'équipement :

Poids : 0~
//

// identify UI
@1000 = ~Identifications restantes : ~

0 comments on commit 42c0b38

Please sign in to comment.