you could re-create the panel?
Code:
panel* my_panel;
string comp_panel_str;
function display_dynamic_panel (str) {
str_cpy (comp_panel_str, "digits 164,68,\"");
str_cat (comp_panel_str, str);
str_cat (comp_panel_str, "\",menu_font,0,0;");
return (pan_create (comp_panel_str)); //returns the new created panel pointer
}
...
if (my_panel) {pan_remove (my_panel);} //if panel already exists, remove first
my_panel = display_dynamic_panel ("lala I am good"); //make new panel and store
my_panel.visible = on; //show panel
well, theoretically this should work... it should display the name on screen when calling the function with the right arguments