Sid Meier's Civilization V

Sid Meier's Civilization V

274 个评价
UI - EditUnitNames
   
奖励
收藏
已收藏
取消收藏
标签: Other
文件大小
发表于
11.702 KB
2013 年 11 月 28 日 下午 10:32
1 项改动说明 ( 查看 )

订阅以下载
UI - EditUnitNames

描述
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 );
79 条留言
Aksart 3 月 23 日 上午 9:01 
It's only working when you start a new game.
Jaba2Gus 2024 年 1 月 7 日 上午 6:25 
i know that this mod is pretty much dead, but still.
is there a way to increase the maximum amount of characters you can enter in a name?
Inlogica 2021 年 3 月 22 日 下午 3:28 
EDIT*

Just copied your lines into the LUA from the other mod and now it works like a charm. Now i feel stupid and apologise for asking this question. Awesome work and thank you for sharing your mod with us!
Inlogica 2021 年 3 月 22 日 下午 2:49 
a very nice mod indeed but there are conflict issues when using alongside "all promotion tooltip" or something similar. Is it possible to make them work together somehow? Any kind of feedback on that matter would be appreciated.
Bruins 2020 年 3 月 12 日 下午 4:04 
you are THE man lol.!:clowney:
Steve Russell 2019 年 8 月 25 日 下午 4:51 
Doesn't work for me. Tells me that it's "blocked due to exclucivity". What the heck is that?
voxel 2018 年 11 月 21 日 上午 8:51 
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 2017 年 11 月 10 日 下午 1:32 
Right clicked on the name, picture, icon. Nothing works
Octopus 2017 年 7 月 4 日 下午 9:01 
Does not appear in mod list after subscribing
vondraco 2017 年 6 月 4 日 上午 12:11 
@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.