[Vanilla] How to change part of the UI?

gqqnbig

Chieftain
Joined
Apr 15, 2020
Messages
26
In AddOverviewOurRelationship() in Base\Assets\UI\DiplomacyActionView.lua, I want to add a tooltip.

Code:
        if (GameInfo.DiplomaticStates[iState].StateType == "DIPLO_STATE_DENOUNCED") then
 ...
        elseif (GameInfo.DiplomaticStates[iState].StateType == "DIPLO_STATE_DECLARED_FRIEND") then
...
        else
            overviewOurRelationshipInst.RelationshipText:SetToolTipString("haha"); -- my line
        end


If I edit the original file, I only need to revise nil to "haha", a few characters.

Now, If I make it a mod, what should I do?
 
Back
Top Bottom