Forum rules - please read before posting.

Changing objective texture depending on objective states

Hi, I'm in the process of building my objective menu and I have managed to get most of the stuff working, but there's just a couple things that I can't figure out how to solve.

Mainly, I'm wondering if there's a way to update the objective texture that's used by SelectedTexture when the objective is selected depending on the state it's in? I see there is an option to set the selected description to the state description, but I'm not seeing something similar to texture.

Secondly, is there a way to hide the objective title when the cursor hovers over the objective icon? It feels like an easy toggle but I've looked all over the place and can't seem to find the option to.

Thanks in advance!

Comments

  • Mainly, I'm wondering if there's a way to update the objective texture that's used by SelectedTexture when the objective is selected depending on the state it's in? I see there is an option to set the selected description to the state description, but I'm not seeing something similar to texture.

    Objective states don't currently have their own texture fields. Through scripting, it is possible to alter an Objective's texture - just right-click the field's label to get an API reference to it.

    Are you looking to override the displayed texture depending on what the state is? I will look to see if this functionality can be added - it's a good suggestion.

    Secondly, is there a way to hide the objective title when the cursor hovers over the objective icon? It feels like an easy toggle but I've looked all over the place and can't seem to find the option to.

    The label will appear within the Hotspot menu automatically, if the InventoryBox element's Display type is set to Icon Only.

    You can still hide this, however, by either locking the Hotspot menu while the Objectives menu is on (via Menu: Change state Action), or by lowering the Objectives menu beneath the Hotspot menu in the Menu Manager's list of Menus. This controls the order in which Menus are updated, so this should prevent the Hotspot menu from "reacting" to the Objectives menu.

  • Sorry I don't know much about scripting, when you say altering an objective's texture, are you talking about updating the texture by making a script and calling it via a custom action?

    Are you looking to override the displayed texture depending on what the state is?

    Yeah, basically I'm looking to have the objective texture when selected to show the quest-giver portrait with a neutral expression at the start, then change it to show a happy expression once the objective is complete. I figured it's a nice to have, so it'd be great if this can be added in the future :)

    So the label is showing through the hotspot menu? o: That explains why I can't find the related options. Thanks for pointing that out!

  • Sorry I don't know much about scripting, when you say altering an objective's texture, are you talking about updating the texture by making a script and calling it via a custom action?

    That's correct. As this would affect the game's asset data, however, you'd need to similarly use Actions to reset Objective textures to their default state when the game begins - as changes made mid-gameplay would survive closing the game.

    I have looked into things, however, and can confirm that the ability to override the texture on a per-state basis will be added as a feature.

  • Awesome, I'll be looking forward to the update! In the meantime I'll take a look at the script. Thanks again!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.