Making DUAL Touch Screens (Stormworks Tutorial)

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

Комментарии • 12

  • @454ss_gaming
    @454ss_gaming  Месяц назад +3

    This is a niche topic, but it is something I have been struggling with when wanting to make dual screened systems in my vessels :) Hope it helps!

  • @tingil8439
    @tingil8439 Месяц назад +1

    That's one way to do it. 👍
    I had a similar challenge 5 or 6 months ago when I was building my first trainer aircraft. The plane has what are essentially two inline cockpits, so all the switches had to be mirrored, including indication of their states, and using screens for that is IMHO the clearest and easiest way to do it.
    I went for combining the composites from each set of two screens by writing the values from the second screen to other, free channels on the composite of the first screen and gave that combined composite to a Lua script. The interpretation of which area of the screen was pressed I then did in that Lua script. I found encapsulating such logic into one Lua function per touchscreen "button", that would evaluate whether that button was pressed either on screen 1 or screen 2, to be very useful and easy to maintain. 🙂

    • @454ss_gaming
      @454ss_gaming  Месяц назад

      Yup, so useful! That's a great way to do it as well!

  • @jackrussellthevrgamer4209
    @jackrussellthevrgamer4209 Месяц назад +2

    THANK YOOOOUUU!!😭😭

  • @pavelnovak4179
    @pavelnovak4179 Месяц назад +1

    I would have just went with two same lua scripts with or function on every output, but nice sollution

    • @454ss_gaming
      @454ss_gaming  Месяц назад +1

      Yup! That is good too! Many ways to do it

  • @ronhebert3027
    @ronhebert3027 Месяц назад

    Why not just use the composite switchbox to control which composite signal goes into the lua block?

    • @454ss_gaming
      @454ss_gaming  Месяц назад

      Yes, but then there has to be a switch gate, cant have them work at the same time!

    • @ronhebert3027
      @ronhebert3027 Месяц назад +1

      @@454ss_gaming Break out the is pressed channel from one of the displays and use that to control the switchbox.

    • @454ss_gaming
      @454ss_gaming  Месяц назад

      @@ronhebert3027 That's a good way to do it as well :)

    • @ronhebert3027
      @ronhebert3027 Месяц назад

      @@454ss_gamingAs a bonus it also lets you stack switchboxes to use more than just 2 displays.

  • @kapikapi231-cg4qs
    @kapikapi231-cg4qs Месяц назад

    Hello