Sid Meier's Civilization V

Sid Meier's Civilization V

48 ratings
UI - EditUnitNames Vanilla
   
Award
Favorite
Favorited
Unfavorite
Tags: Other
File Size
Posted
10.165 KB
Dec 6, 2013 @ 5:19pm
1 Change Note ( view )

Subscribe to download
UI - EditUnitNames Vanilla

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.

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

I have no way to test the vanilla version of this mod, so let me know if it works.

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 );
9 Comments
Knarlox Aug 5, 2018 @ 7:06am 
Can you add edit improvements names ?
InsaneWorld Oct 4, 2015 @ 9:19pm 
Finally finished that game and started a new one, but it doesn't seem to work. I had it activated when I made the game.
Kalurak  [author] Jun 10, 2015 @ 11:49pm 
To the best of my knowledge, you can't enable mods after you start a game.
InsaneWorld Jun 10, 2015 @ 10:10pm 
So is there any way you can enable new mods on existing games? I'm a bit of a noob.
Kalurak  [author] Dec 15, 2013 @ 9:54am 
This version works only without any expansions. See the description for versions of the mod for the expansions.
mangoshi Dec 15, 2013 @ 9:30am 
Works without BNW?
EZ PZ 23Z Dec 15, 2013 @ 8:00am 
still pretty coooool
Cid Silverwing Dec 14, 2013 @ 1:16am 
@ AppleDice: You can't use mods you just downloaded on games you didn't enable them on.
AppleDice Dec 8, 2013 @ 5:17pm 
It works!
Can't do it with existing games though. :(