• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[JASS] Modifying UI Error/Target Frame Text

Status
Not open for further replies.
Level 1
Joined
Jul 17, 2022
Messages
1
Hi folks!

I'm trying to implement some custom error messages that I can display to my players with triggers. I'm aware of solutions like SimError, but this approach does not play nicely with standard errors or other usages of DisplayTimedTextToPlayer. After reading through The Big UI-Frame Tutorial, I figured the best way to create custom error messages would be to directly set text on the Frame that the game itself uses for error/order strings (screenshots below), but I am not able to find the framehandle that ultimately displays this text.

What I've tried so far:
  • Hiding each Origin Frame individually.
  • Displaying a message on the screen and iterating through Taysen's list of BrowserFrames and checking their text value.
  • Displaying a message on the screen and traversing the Parent/Child tree up and down from Tayen's list of BrowserFrames. The natives crashing made this fragile enough to not be a feasible approach.
At this point I'm not sure how to proceed. We know that there are SimpleFrames in the UI who are not generated by the FDFs, such as those for Unit Groups. Does anybody know the Frame I'm looking for directly, or a more robust method for finding it?

Thanks for your time!
 

Attachments

  • ex1.PNG
    ex1.PNG
    4.9 MB · Views: 39
  • ex2.PNG
    ex2.PNG
    4.6 MB · Views: 38
Status
Not open for further replies.
Top