Sid Meier's Civilization V

Sid Meier's Civilization V

41 ratings
UI - EditUnitNames 3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
9.962 KB
8 Jul, 2012 @ 12:58pm
1 Change Note ( view )

Subscribe to download
UI - EditUnitNames 3

Description
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 Comments
Kara Ben Nemsi Effendi 3 Nov, 2019 @ 7:19am 
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 @ 12:40am 
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 Mar, 2017 @ 11:38am 
Love it, +1
MDavid 26 Jul, 2015 @ 1:09pm 
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 @ 2:04pm 
but what ev
Illuminare 7 Apr, 2015 @ 2:04pm 
it may be bacause i used the version instead of bnw
Illuminare 7 Apr, 2015 @ 2:03pm 
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 @ 11:53am 
Beautiful...liked + subscribed...well done, thank you : )
Civitar 28 Apr, 2014 @ 6:49am 
@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 @ 6:44am 
It remembers me CIV III! And it is a real pleasure.