For example,
I have a group of text labels, buttons, inputfield, tableview, etc for different scene.
My requirement:
-
Totally the same UI component numbers and types.
-
Totally the same UI position (x, y)
-
Totally the same size
-
Totally the same color
for 3-4 different scenes.
What is the ideal solution to handle this case?
I guess:
-
solution 1: put them into a sharing scene, and let the scene overlap every time?
-
solution 2: create a new ui panel module which contains all the UI widgets, and then require it for each scene?
-
solution 3: repeat create them one by one for each scene, a lot for repeat code?
-
Or other elegant way?
Need your help.