1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

hey i found an icon browser in beamNG (most of this icons are unused)

Discussion in 'General Discussion' started by Lukas64 the dog, Nov 25, 2021.

  1. Lukas64 the dog

    Lukas64 the dog
    Expand Collapse

    Joined:
    Nov 25, 2020
    Messages:
    118
    i found this icon browser in the editor of beamNG and this haves icons there are i game but most are unused BeamNGdrive-0235212939-RELEASE-x642511202115_08_35.png
    idk for what the icons are but i think most are for the story mode ore for an online radio but thes are cool
    my fav one is this pigeon icon
    upload_2021-11-25_15-17-38.png
    --- Post updated ---
    p.s. most are used in the editor
    --- Post updated ---
    i think this goat is an easter egg
    upload_2021-11-25_15-27-17.png
     

    Attached Files:

    • upload_2021-11-25_15-14-44.png
    • Like Like x 7
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,494
    Where did you find this? I want to know if they are usable for UI messages somehow, it can make certain messages stand out in a mod
     
  3. Lukas64 the dog

    Lukas64 the dog
    Expand Collapse

    Joined:
    Nov 25, 2020
    Messages:
    118
    here
    upload_2021-11-25_16-56-9.png
     
    • Like Like x 3
  4. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    587
    I figured out how to do it :)
    Code:
    ui_message(msg, ttl, category, icon)
    Where:
    • msg is the message
    • ttl is how long to display the message
    • category (not so sure what it does) just set to nil
    • icon is the name of the icon (hovering over the icons in that UI @Lukas64 the dog showed will give you their names)
    So for example you can do this:
    Code:
    ui_message("You are the goat :)", 5, nil, "goat")
     
    • Like Like x 2
  5. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,494
    Isn't the ui_message function deprecated? Last time I used it, it would spam the UI with copies of itself, then I checked that none of the vanilla LUA uses it, and they use gui_message instead which doesn't have this issue
     
    • Like Like x 1
  6. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    587
    Oh yeah it does look like its deprecated. And actually guihooks.message() takes in the same exact arguments so you can just call it like this:
    Code:
    guihooks.message("You are the goat :)", 5, nil, "goat")
     
    • Like Like x 5
  7. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,494
    This is very good news, the guihooks function is very fast so I usually use it, cool that I can add icons to it now!
     
    • Like Like x 5
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice