Sid Meier's Civilization V

Sid Meier's Civilization V

218 ratings
UI - EditUnitNames
 
Rate  
Favorite
Favorited
Unfavorite
Tags: Other
File Size
Posted
0.011 MB
Nov 28, 2013 @ 10:32pm
1 Change Note ( view )

Subscribe to download
UI - EditUnitNames

Subscribed
Unsubscribe
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:

Finally updated for Brave New World
I just got BNW and quickly ported the old mod (UI - EditUnitNames 3) - seems to be working fine, but I haven't had a whole lot of time to test it. Let me know how it does.

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

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 );
< >
74 Comments
fwmmog1 Aug 25, 2019 @ 4:51pm 
Doesn't work for me. Tells me that it's "blocked due to exclucivity". What the heck is that?
voxelblast Nov 21, 2018 @ 8:51am 
I tried right clicking on the name and pretty much everywhere else, but nothing worked. I have all the DLC installed if that helps.
Crashlionhart Nov 10, 2017 @ 1:32pm 
Right clicked on the name, picture, icon. Nothing works
Insatiable_Octopus Jul 4, 2017 @ 9:01pm 
Does not appear in mod list after subscribing
vondraco Jun 4, 2017 @ 12:11am 
@jehuxtable - Click on the NAME of the unit, not the picture. If that's what you ARE doing, apologizes, no idea why it's not working for you. I use dozens of mods and this one works just fine for Me.
DiktatrSquid Apr 11, 2016 @ 5:39am 
I subscribed, but nothing appears on my list, nor in my MODS-folder. I have BNW.
jehuxtable Nov 28, 2014 @ 6:10pm 
Doesn't do it for me......Right clicks only get me the civilopedia

I see the above text in
C:\Users\xxx\Documents\My Games\Sid Meier's Civilization 5\MODS\UI - EditUnitNames (v 1)

Only DLC active is BNW, this is the only mod activated.
8feet Nov 7, 2014 @ 7:35pm 
A.K. what changes do I need to do in order to make it work for BE? When I installed it, all it did was made the Ui disapear? I'm not a modder, and maybe its real obvious. But can you help me out here? Thanks :D
Kalurak  [author] Nov 6, 2014 @ 4:49pm 
Folgore, this is the correct version for anyone who has BNW installed. As far as BE is concerned, I'm sure I will get it at some point and make this mod for it. If anyone doesn't want to wait and use this code for BE, feel free. According to A.K., it should work.
Nembo Nov 6, 2014 @ 12:51am 
what i have to do if i will use bnw and gnk?