Simple UI App

Discussion in 'Programming' started by NuclearKnight, Oct 14, 2023.

  1. NuclearKnight

    NuclearKnight
    Expand Collapse

    Joined:
    Nov 30, 2013
    Messages:
    78
    Just posting this to see if anyone has or is willing to make a simple UI example for me. I am struggling to get something as simple as a button to appear. My app does appear in the list and I can add it to my screen, and there are no JS errors in my beamng log. I know a bit of HTML and am learning Javascript for this, and have gotten buttons to work outside of the same but it obviously works differently in the game or something. Thanks in advance for any help!
     
  2. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    284
    When I first made an app in BeamNG, I was so lost. I followed how the developers done it, but it just didn't show up properly. I eventually understood it more, and am able to do it now. Just keep at it, keep reading at their code to see how it works and functions. And don't compare it to outside of the game, me and another person haven't had much luck in that. The versions of a lot of things vary a lot, and the backend code is also very different and will not work the same way.

    If you would like though, ZIP up the mod and tell me exactly what the issue is, I'll have go at fixing it :)
     
    • Like Like x 1
  3. NuclearKnight

    NuclearKnight
    Expand Collapse

    Joined:
    Nov 30, 2013
    Messages:
    78
    Well, someone informed me I need to use angular.js instead of regular Javascript(I'm ignorant on this stuff, basically learning as I go rn) but now that I heard it may be changing to Vue I'm gonna use that. Haven't come back to this recently but will soon. So if you have some kind of simple button example that would be great, but right now I don't have anything for you to look at lol, appreciate the help though!
     
  4. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    284
    Yeah, it currently uses Angular (or AngularJS), but I do believe they are switching to Vue instead. It's a lot nicer and also a lot easier to use. Angular has had some good updates recently though, got to love the timing haha.
     
  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