Profile image

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

37.5k TheCommentaryGuy  1.9 years ago

[Insert Stone Grinding Sound Effect]

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

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

    3 days 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.

    1.9 years ago
  • Profile image
    46.4k PlaneFlightX

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

    1.9 years ago
  • Profile image
    13.1k 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...

    1.9 years ago
  • Profile image

    @PlaneFlightX I am confused
    Heres the build

    1.9 years ago
  • Profile image
    13.1k 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.

    1.9 years ago
  • Profile image

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

    1.9 years ago
  • Profile image
    46.4k 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.

    1.9 years ago
  • Profile image
    13.1k 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!

    1.9 years ago
  • Profile image
    1,612 BreadLord77

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

    1.9 years ago
  • Profile image

    @PlaneFlightX Yes

    1.9 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.

    1.9 years ago
  • Profile image
    46.4k PlaneFlightX

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

    1.9 years ago