Using the UI-Mod system

Discussion in 'Mod Discussions' started by tatsujb, August 3, 2013.

  1. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    please pardon my tech noobyness

    I need help with Uber's modding system.

    Does this mean that for a UI mod we could have all mod files in the mods folder, avoiding overwrite?

    I'd like to do this, but I don't know what I'd have to do.
    Code:
    var global_mod_list = [
    
    ];
    
    var scene_mod_list = {
        'connect_to_game': [
    
        ],
        'game_over': [
    
        ],
        'icon_atlas': '../../mods/tatsuiconpack/icon_atlas/icon_atlas.js' [
              '../../mods/tatsuiconpack/icon_atlas/img/strategic_icons/icon_si_artilery_long.png
              '../../mods/tatsuiconpack/icon_atlas/img/strategic_icons/icon_si_artilery_short.png
    
        ],
        'live_game': [
    I'd like to load my modified icon_atlas.js, would the modfications to the icon_atlas.js be written directly in the ui_modlist.js?

    and if I point to a icon_atlas.js file in the mods folder, would that file have to be modified to point to the right directory?
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Re: PA Modding Changes - Build 51531

    As I have already written to you in a pm-answer:
    Here is the solution of how to convert your mod for the most part, only the shader is missing:

    http://www.nanodesu.info/stuff/pa/mods/tatsu.zip

    EDIT:
    I have split this topic away from the list of changes, as I don't think it should be in there.
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    EDIT:
    Forgot I ever wrote this, I had a typo above this code, so it was never executed.
    -------

    So I am trying to fix up my own mouseswitch-mod work using the mod_list.
    However I need to modify the html of the maingame, so I thought I could do this via jquery.
    I added these lines to my js:
    Code:
    $('.div_version_info_cont').text('Here I am');
    $('#version_info').attr('data-bind', 'visible: mouseSwitchShow');
    $('#player_info').attr('data-bind', 'visible: mouseSwitchShow');
    $('#div_chat').attr('data-bind', 'visible: mouseSwitchShow');
    $('#div_time_invoke_cont').attr('data-bind', 'visible: mouseSwitchShow');
    $('#worldpopup01').attr('data-bind', 'visible: showsWorldHoverTarget');
    
    However, this does not have any visible effect, not even the version info is changed.
    Is it impossible to change the html at that point? Or am I just doing a stupid mistake? <= this^^
  4. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    uhm you can close thread I guess.

    Thanks! thanks! thanks!

Share This Page