I am creating an asset that links to three other assets using a URL or asset link.
It seems that I need to create a pair of Paint and Process functions for each, or is there a smart way to group them and use just one pair of functions.
Also, why is it that many of the lang XML files have the functions in them same as in edit_interface_screen_details?
Thanks.
Paint and Process
rhulse
(Rhulse)
#1
Avi_Miller
(Avi Miller)
#2
You would need a paint/process for each, but you could just call a single _paint() and _process() with a parameter from each one. :)
[quote]Also, why is it that many of the lang XML files have the functions in them same as in edit_interface_screen_details?
[right][post="15583"]<{POST_SNAPBACK}>[/post][/right][/quote]
Edit_interface_screen_details just defines the layout, lang_screen_details actually has the text for the specific locale (in most cases "en", or English). In the case of paint/process functions you should use the translate() function to reference strings from lang_strings.xml instead.
rhulse
(Rhulse)
#3
doh! Of course.
I have been looking at Matrix code for the last couple of days and I think my brain may be fried... :blink:
[quote]Edit_interface_screen_details just defines the layout, lang_screen_details actually has the text for the specific locale (in most cases "en", or English). In the case of paint/process functions you should use the translate() function to reference strings from lang_strings.xml instead.
[right][post="15585"]<{POST_SNAPBACK}>[/post][/right][/quote]
Thanks! It is a bit tricky working how things interact as the system is, err quite modular. It does make sense though when you get into the code (hat off to devs).