Sid Meier's Civilization V

Sid Meier's Civilization V

44 beoordelingen
UI - EditUnitNames 3
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
9.962 KB
8 jul 2012 om 12:58
1 wijzigingsnotitie (weergeven)

Abonneren om te downloaden
UI - EditUnitNames 3

Omschrijving
Right-click a unit's name to edit it at any time - not just after a promotion.
Uses UnitPanel.lua - not compatible with any other mods that modify that file.
To get this functionality with other Unit Panel mods, insert the following into the mod's UnitPanel.lua:

GnK version of the mod - for other versions look for
UI - EditUnitNames Vanilla
Vanilla Version
UI - EditUnitNames
BNW Version

Uses UnitPanel.lua - not compatible with any other mods that modify that file.
To get this functionality with other Unit Panel mods, insert the following into the mod's UnitPanel.lua:

function OnUnitNameRClicked()
-- rename this unit

if UI.GetHeadSelectedUnit() then
local popupInfo = {
Type = ButtonPopupTypes.BUTTONPOPUP_RENAME_UNIT,
Data1 = UI.GetHeadSelectedUnit():GetID(),
Data2 = -1,
Data3 = -1,
Option1 = false,
Option2 = false;
}
Events.SerialEventGameMessagePopup(popupInfo);
end
end
Controls.UnitNameButton:RegisterCallback( Mouse.eRClick, OnUnitNameRClicked );
22 opmerkingen
Kara Ben Nemsi Effendi 3 nov 2019 om 7:19 
look here:
https://forums.civfanatics.com/threads/quick-questions-and-answers.383126/page-243

I've changed the code like this and it works 100%!
mazrados 22 nov 2018 om 0:40 
It would be great if it would work. Maybe using something incompatible. Right click does nothing. No idea what it might be incompatible with. Any idea? The only mod I have in mind is civilian escort mod.
cornhooole 7 mrt 2017 om 11:38 
Love it, +1
MDavid 26 jul 2015 om 13:09 
Hi! Can this mod be combined with this one:
http://steamproxy.net/sharedfiles/filedetails/?id=138527605&searchtext=unit+promotions

I really like both of them, but I can have only one at a time because of the unitpanels.lua file
Illuminare 7 apr 2015 om 14:04 
but what ev
Illuminare 7 apr 2015 om 14:04 
it may be bacause i used the version instead of bnw
Illuminare 7 apr 2015 om 14:03 
BUGS: I had this mod = when ever i make improvement it say way like 20000000000 turns to make when note with mod = normal turns so yeah shit happens.
Sp4rt1cu2 7 jul 2014 om 11:53 
Beautiful...liked + subscribed...well done, thank you : )
Civitar 28 apr 2014 om 6:49 
@Kalurak: Brilliant mod, thank you very much! It has become one of my "base" mods, the ones I use every time I play single player! I find it ridiculous that it does not have 5 stars, maybe because this isn't BNW version.
Cavaliereverde 13 jan 2014 om 6:44 
It remembers me CIV III! And it is a real pleasure.