You save them to a string register via create_simple_text_box_overlay. Look at name_kingdom in module_presentations - it is literally a textbox with a button to use the string after.
That's a simple text label, which contains whatever string that's stored on s1 (in this case it's str_name_kingdom_text), center justified. The pointer to that presentation object will be stored in reg1 - this is a common practice for static labels like those strings, since we only need to initialize where it goes by setting the coordinates in pos1, and then using overlay_set_position to properly position the text overlay on the screen.
For an example of how to copy the appearance of a multiplayer chat box, see this old thread of mine, copying the multiplayer_get_poll_question presentation and changing the network event appropriately. Also remember to call overlay_obtain_focus on the text box overlay in the init trigger, so players don't have to click the box before typing (the operation was added in a later warband version).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.