-
September 27, 2010, 03:44 PM
#1
Civis
Are these two changes possible?
I was wondering is it's possible to do the following two things.
1. Disable the replenish troops button.
2. On the pre-battle screen (campaign), a way to block out the total number of troops involved in the battle. So you don't know the exact numbers you are up against.
-
September 27, 2010, 05:19 PM
#2
Re: Are these two changes possible?
Very quick reply - all of it is controllable from lua, here's how you disable UI components:
UIComponent(m_root:Find("army_replenish")):SetVisible(false)
UIComponent(m_root:Find("army_replenish")):SetDisabled(true)
I think army_replenish is the right one. Just stick that into your scripting.lua
The second one is more work. It's controlled from "ui/campaign ui/popup_pre_battle_scripts/popup_pre_battle.luac",
but decompiling luac is far more work than you want. Someone will figure out how to do it without touching lua perhaps ?
-
October 19, 2010, 03:22 PM
#3
Re: Are these two changes possible?
Interesting idea, but which particular *.lua i need to find and edit?
You mean a *.lua inside which *.pack?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules