Profile image

[Solved]Whats the code for a HUD that can be turned off and on?

41.1k TheCommentaryGuy  2.4 years ago

[Insert Stone Grinding Sound Effect]

  • Log in to leave a comment
  • Profile image
    60 NGC543

    This thing work using opacity of the label ut ({Input ? "" : "<alpha=#00>"} "the thing like hud, status, display, etc”<alpha=#99>)

    6 months ago
  • Profile image

    If you're talking about my work, here is what I made when I was talking about another topic before.
    Since multiple Alpha tags are used for partial display switching, it is necessary to access all of them in order to turn the whole on / off.

    2.4 years ago
  • Profile image
    49.3k PlaneFlightX

    hmmm. I tried everything, size, other stuff, and nothing works. Sorry.

    2.4 years ago
  • Profile image
    13.3k Grob0s0VBRa

    @KDnotSpy
    Ah yes.
    Imagine activating HUD by camera toggle, so it will work (show up) only when certain camera is Active (Variable outputs).
    And that's possible with just one more part (the camera; because cockpit part do NOT have that specific Variable Output).
    Probably that is also simplier than adding switch with a variable...

    2.4 years ago
  • Profile image

    @PlaneFlightX I am confused
    Heres the build

    2.4 years ago
  • Profile image
    13.3k Grob0s0VBRa

    @KDnotSpy Put it into Text.
    Just in the beginning
    *I'mnotPlaneFlightXyeti'mansweringquestionthatwasadressedtohim,hahalol.*
    overcomplicating? nope
    upd. imagine answering to a deleted comment. i'm slowpoke.

    2.4 years ago
  • Profile image

    My solution:
    Put ternary operators on every single <alpha> text format. That's what I plan on doing.

    2.4 years ago
  • Profile image
    49.3k PlaneFlightX

    Okay, so what we do is first get the entire code of the HUD label.
    For the purposes of this, I'm going to assume you have a switch writing to the variable HUDSwitch with the interactionType of Toggle
    Replace HUDCode with the large mess of text that is the HUD.
    <size={HUDSwitch = 1 ? 100 : 0}%>HUDCode
    Try that. I'm not sure if it will work, but I'm pretty sure it will.

    2.4 years ago
  • Profile image
    13.3k Grob0s0VBRa

    Imagine placing FT formulas into label like this:
    <stuff>{ (clamp01(Activate8)=1) ? "PieceOfHUD" : "" }</stuff>

    Now Get Real.
    And Dew It!
    Yes, You Can.
    Make Your Dreams Come True!
    Just Dew It!

    2.4 years ago
  • Profile image
    1,612 BreadLord77

    making the alpha 0% on some action group, i guess... i dont know how to do xml

    2.4 years ago
  • Profile image

    @PlaneFlightX Yes

    2.4 years ago
  • Profile image

    Well, the simplest way to do it (that doesn't risk potentially interfering with any fancy FT bits in the HUD) is to just attach it to a really fast piston. That's what I did on my Firebird.

    2.4 years ago
  • Profile image
    49.3k PlaneFlightX

    Do you want the HUD to be invisible when off and visible when on?

    2.4 years ago