#actionbar visible while in npc ui

1 messages · Page 1 of 1 (latest)

forest schooner
#

is it even possible?

#

this happens to me every time 😭

forest schooner
#

i've copied and pasted the following actionbar ui code from the hud_screen ui to the npc_interact_screen but it doesn't show, and it's probably a definition problem, though unfortunately i don't know how to define it correctly so it could be recognized. i have very little experience in json ui developing.

      "anim_type": "alpha",
      "easing": "in_expo",
      "duration": 3,
      "from": 0.6,
      "to": 0,
      "destroy_at_end": "hud_actionbar_text"
    },
    "anim_actionbar_text_alpha_out": {
      "anim_type": "alpha",
      "easing": "in_expo",
      "duration": 3,
      "from": 1.0,
      "to": 0,
      "destroy_at_end": "hud_actionbar_text"
    },
    "hud_actionbar_text": {
      "type": "image",
      "size": [ "100%c + 12px", "100%c + 5px" ],
      "offset": [ -3, 3 ],
      "anchor_from": "top_right",
      "anchor_to": "top_right",
      "texture": "textures/ui/hud_tip_text_background",
      "alpha": "@hud.anim_actionbar_text_background_alpha_out",
      "controls": [
        {
          "actionbar_message": {
            "type": "label",
            "anchor_from": "center",
            "anchor_to": "center",
            "color": "$tool_tip_text",
            "layer": 1,
            "text": "$actionbar_text",
            "localize": false,
            "alpha": "@hud.anim_actionbar_text_alpha_out"
          }
        }
      ]
    },
//apply screen
    "npc_screen": {
      "type": "screen",
      "$screen_content": "npc_interact.npc_screen_contents_custom",
      "button_mappings": [
        {
          "from_button_id": "button.menu_exit",
          "to_button_id": "button.menu_continue",
          "mapping_type": "global"
        }
      ]
    }