[HELP] UI messages to give people information about the mod

Discussion in 'Mod Discussions' started by killerkiwijuice, December 16, 2014.

  1. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I know the basics about html and CSS, and since there are some not-so-obvious rules in the Better Comm Boxing mod, I really need a way to tell people that FLAK COUNTERS TACTICAL MISSILES other than the unreliable chat message.

    Any help is appreciated to get me started, the main thing I want to know to do is have the message pop-up when the game starts or at the location selection screen.

    Thanks :)
  2. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    This general problem might be my next project, although I got off on investigating feature types last night.

    https://forums.uberent.com/threads/req-server-mod-help.66065/

    Unless you already have a required client mod, if you want UI elements, you have to shadow at least one file. You can shadow the affected scene directly or some mods shadow common.js and add to the scene_mod_list.

    I was actually leaning toward a chat bot a bit because it should work on the lobby screen. For in-game I might see how easy it is to extend the new guide system, but you'll still need something to tell people they can look there.
    killerkiwijuice likes this.
  3. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Yep the pa stats client mod uses the chat system. But, that's a client mod :oops: That would be a good solution, but yeah people who join won't know to type commands into chat without a reminder in the lobby or a UI message.

    Although I'm unsure of what you mean by "shadowing"? (i'm a noob)
  4. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    I would expect it to post a message with instructions when a player joins the lobby.

    You mod must have a file with the exact same name and relative path, which will probably be a copy of the vanilla file with some tweaks. When the mod is properly enabled, PA will load that copy instead of the vanilla file (or another mod that lost out in priority) e.g, it shadows out the other file. For examples, most unit mods shadow the json files, and my mods that use cheats shadow common.js to lock down the standard paste command. There isn't a lot of UI shadowing because of the the "there can be only one" problem, plus breakage with new builds.
    killerkiwijuice likes this.

Share This Page