Sid Meier's Civilization V

Sid Meier's Civilization V

45 个评价
UI - EditUnitNames 3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
9.962 KB
2012 年 7 月 8 日 下午 12:58
1 项改动说明 ( 查看 )

订阅以下载
UI - EditUnitNames 3

描述
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 条留言
Kara Ben Nemsi Effendi 2019 年 11 月 3 日 上午 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 2018 年 11 月 22 日 上午 12: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 2017 年 3 月 7 日 上午 11:38 
Love it, +1
MDavid 2015 年 7 月 26 日 下午 1:09 
Hi! Can this mod be combined with this one:
http://psteamcommunity.yuanyoumao.com/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 2015 年 4 月 7 日 下午 2:04 
but what ev
Illuminare 2015 年 4 月 7 日 下午 2:04 
it may be bacause i used the version instead of bnw
Illuminare 2015 年 4 月 7 日 下午 2: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 ♥♥♥♥ happens.
Sp4rt1cu2 2014 年 7 月 7 日 上午 11:53 
Beautiful...liked + subscribed...well done, thank you : )
Civitar 2014 年 4 月 28 日 上午 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 2014 年 1 月 13 日 上午 6:44 
It remembers me CIV III! And it is a real pleasure.