Profile image

Is there's a a way to turn on/off an HUD text or flight instruments hud text using Funky Trees?

4,200 Red920  1.8 years ago
  • Log in to leave a comment
  • Profile image

    its not finished yet but i used it a bunch of time, if you want to see how the button LCD thing works, in the cockpit theres a blue screen wich is the radar and next to it is a switch to turn it on. You can see just to get a reference

    while for the COM1 type thing, in the right theres a red switch that when turned on will display 4 things you need to turn on to be able to takeoff. each one of those subsequentially turns off when the thing they tell you to turn on gets turned on

    1.5 years ago
  • Profile image

    @planeplane1212 I'll give it a go later

    1.5 years ago
  • Profile image

    @Brandon182003 I think its possible

    So just for example you have 2 switches, one has InputID = COM1 and the other = COM2 and the're both interactionType = Toggle and outputValue = 3. Now in the label paste this

    {COM1>= 1 ? (COM2>= 1 ? "COM2 ON" : "COM1 ON") : "COM OFF"}

    it will check if COM1 is equal to or greater than one (>= 1) and then do another check to determine if COM2>= 1. if COM2>= 1 then it will display "COM2 ON" else keep displaying "COM1 ON". If none of the values>= 1 then it will display "COM OFF"

    so when you flick the com1 switch it will say COM1 ON, if you flick the com2 switch as well it will say COM2 ON, if the switches are off it will say COM OFF, also if you want it to display wich one of the two is on independantly you should use 2 labels each with

    {COM1>= 1 ? "COM1 ON" : "COM OFF"}

    +2 1.5 years ago
  • Profile image

    @planeplane1212 I get what you mean but I'm looking for a way to go from "COM OFF" to "COM1 ON" and/or "COM2 ON" using buttons to change the text on a label

    1.5 years ago
  • Profile image

    @Brandon182003 yeah i found out long ago it doesn't work but the screen made with buttons is honestly genius, i have a build made with it if you dont understand how

    switch:
    outputValue = 3
    interactionType = Toggle
    inputId = name1 (example)

    button:
    ouputValue = 3
    interactionType = Toggle
    inputId = name1
    go to button customization and set the off depth to 10 for example so on depth would be 9, then place the label somewhere between the off and on depth

    The only thing is that obviously its not practical on an HUD because it has to be transparent

    1.5 years ago
  • Profile image

    @planeplane1212 what about if its a button? Code doesn't work with them

    1.5 years ago
  • Profile image

    UPDATE: late but: so you can do this by using if statements.

    Let's say you want to turn the hud on and off with a switch and the switch uses Activation group 2
    The HUD label part would be:
    {Activate2 ? <size=100%>(your entire HUD text thing inside these round brackets) : <size=0%>(HUD text again)}

    1.6 years ago
  • Profile image

    @ZeroRaven87
    i don't get it can someone explain in finer terms?
    like i dont get what "on depth off depth" means by that

    1.6 years ago
  • Profile image
    4,200 Red920

    @ZeroRaven87 wow nice idea!!! thanks for sharing i'll definitely try this!!.

    edit: btw how will this work if the button is wired in the variables. example lets name the switch ID electricalsystems and the other is Activate1 so we have an input electricalsystems+Activate1
    how will this work if one of these are wired in the variable system?like i cant push the button if one of these two (electricalsystems and Activate) is deactivated. (sorry about my grammar).

    1.8 years ago
  • Profile image

    I’ve used buttons and labels to make LCD style data screens. Simply set the off depth of the screen (button) to 1 value higher than the on depth. I also tie it to an AG such as AG1. I also have a switch (label display or similar) also set to AG1. The Label is moved to just behind the edge of the button.
    When switch/button is activated, the button drops down and lights up, effectively turning on your screen.

    1.8 years ago
  • Profile image
    4,200 Red920

    @hpgbproductions i dont get it :)
    can you give me the sample of the code.

    1.8 years ago
  • Profile image

    If the label doesn't use the alpha tag, you can use it to hide all text
    You can also try to put a line at the beginning with 0% line-height, and switch to a large line-height to hide text

    +2 1.8 years ago