[REL] Stats Panel in Game, More Frequent Attack Warnings

Discussion in 'Mod Discussions' started by sneakyness, July 25, 2013.

  1. sneakyness

    sneakyness Member

    Messages:
    106
    Likes Received:
    5
    Stats Panel

    In PA\media\ui\alpha\live_game\live_game_alpha.js at line 585 or so, add:
    Code:
    self.toggleStatsPanel = function() { engine.call('game.toggleStatsPanel'); }
    at line 947ish:
    Code:
    Mousetrap.bind('p', model.toggleStatsPanel);
    More Frequent Attack Warnings

    Same file, line 131 or so
    Code:
    setTimeout(function () { self.armyUnderAttack(false); }, 15 * 1000);
    The original value is 30, which means you only hear an alert once every 30 seconds. I changed it to 15. If you set it too low, it will repeat constantly and annoy you to death. :?

    Attached Files:

  2. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    You should probably combine your mods where it makes sense; for example, enabling the stats panel everywhere instead of separately in the editor and in-game, and the display of advanced planet info in both lobby and new game.
  3. sneakyness

    sneakyness Member

    Messages:
    106
    Likes Received:
    5
    Effort > gain

Share This Page