Results 1 to 3 of 3

Thread: Are these two changes possible?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Icon5 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.

  2. #2
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default 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 ?

  3. #3
    Ducenarius
    Join Date
    Aug 2010
    Location
    Poland --> Upper Silesia region (pl=Górny Śląsk).
    Posts
    920

    Icon5 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?
    Remember of the Alamo!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •