Custom button text in Popup Dialog Device

Hi! I want to create a popup dialog device that changes its button text using verse strings. I’ve already set up the title and description so they change based on a string determined in code, but I can’t figure out how to do the buttons, I’ve found this on Fortnite.digest

image

There is the problem, title and description only ask for a message but buttons ask for an Index too, can someone help me with this? Thanks!!! :slight_smile:

1 Like

Assuming you used the StringToMessage function for the title and description
which would have looked something like this
SetTitle(StM("My Title Here"))

For Buttons you would need to do something like this:
.SetButtonText(StM("This is Button 3",2))

The 2 I put in the end tells the code which of the 6 buttons I want it to set the ButtonText to, You may also see how despite me saying “this is button 3” I have put the number 2 on the index. That’s because indexes start from 0,

So Button 1 Would be index 0
Button 2 Would be index 1
Button 3 Would be index 2
etc…

If you want any further clarification I would be glad to provide it.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.