必須再建一個MessageLayer然後往上覆蓋,
但是這樣的做法會使得原本的設計出現問題。
比方說如下圖的情況:

存檔的三個button建置在message2層,但是在button上方要多加一些裝飾,
如紅色方塊框起來的部份,那麼可以利用多加一層MessageLayer的方式,
把圖片放在message3層中。
但是這樣仍然會有問題,因為message3層在message2層之上,
會造成原本的button被覆蓋而不能使用,這時候就可以利用下面這段程式碼,
使得message3的hitMask失去作用了。
[position layer=message2 frame="save_bg" opacity=255 left=0 top=0 width=800 height=600 marginT=0 marginL=0 marginR=0 marginB=0 visible=true transparent=false page=back]
[position layer=message3 frame="save_bg_up" opacity=255 left=650 top=269 width=150 height=331 marginT=0 marginL=0 marginR=0 marginB=0 visible=true transparent=false page=back]
[iscript]
var layer = kag.back.messages[3];
layer.hitType=htProvince;
[endscript]
0 意見:
張貼意見