觀看歷史訊息的問題
以下是從範例改來的
問題在我若調整文字顯示的範圍(ex:增加 marginr=122 marginb=90),整個歷史訊息會變的很怪
煩煩高手告訴我該怎麼改程式碼....感謝>"< !!!
-----------------------
*start
[backlay]
[image layer=3 page="back" storage="History底圖" visible="true" left=0 top=0]
[layopt layer="message1" visible="true" page="back" left=0 top=0]
;调整文字显示位置
[position layer="message1" page="back" marginl=80 margint=121 opacity=0]
[current layer="message1" page="back"]
[er]
;计算页数
[eval exp="tf.行数=kag.historyLayer.dataPos-1"]
[eval exp="tf.页数=tf.行数\10"]
[eval exp="tf.页数++" cond="tf.行数%10>0"]
[eval exp="tf.循环=10"]
[eval exp="tf.当前页=tf.页数"]
;打开时显示最后一页
*循环一
[nowait]
;历史记录不到头则显示
[if exp="kag.historyLayer.dataPos-tf.循环>=0"]
;一般对话字体
[font color="0x000000" shadow="false"]
;姓名显示字体
[font color="0x52823F" shadow="true" shadowcolor="0xFFFFFF" cond="kag.historyLayer.data[kag.historyLayer.dataPos-tf.循环].substring(0,1)=='〔'"]
;@link exp="kag.historyLayer.actionInfo[0][0][0].action.exp"
[emb exp="kag.historyLayer.data[kag.historyLayer.dataPos-tf.循环]"]
;[endlink]
[r]
[endif]
[eval exp="tf.循环--"]
[jump target=*循环一 cond="tf.循环>0"]
[endnowait]
[locate x=600 y=40]
[button normal=上頁鈕 target=*刷新画面 exp="tf.当前页--" cond="tf.当前页>1"]
[locate x=500 y=-60]
[button graphic=r-return storage="rmenu.ks" target=*return]
[trans method="crossfade" time=200]
[wt]
[s]
*刷新画面
[current layer="message1" page="fore"]
[er]
[eval exp="tf.循环=10"]
*循环二
[nowait]
;不是第一页的情况
[if exp="tf.当前页!=1"]
[if exp="kag.historyLayer.dataPos-tf.循环-(tf.页数-tf.当前页)*10>=0"]
[font color="0x000000" shadow="false"]
[font color="0x52823F" shadow="true" shadowcolor="0xFFFFFF" cond="kag.historyLayer.data[kag.historyLayer.dataPos-tf.循环-(tf.页数-tf.当前页)*10].substring(0,1)=='〔'"]
[emb exp="kag.historyLayer.data[kag.historyLayer.dataPos-tf.循环-(tf.页数-tf.当前页)*10]"][r]
[endif]
[endif]
[if exp="tf.当前页==1"]
[font color="0x000000" shadow="false"]
[font color="0x52823F" shadow="true" shadowcolor="0xFFFFFF" cond="kag.historyLayer.data[10-tf.循环].substring(0,1)=='〔'"]
[emb exp="kag.historyLayer.data[10-tf.循环]"][r]
[endif]
[eval exp="tf.循环--"]
[jump target=*循环二 cond="tf.循环>0"]
[endnowait]
[locate x=600 y=40]
[button normal=上頁鈕 target=*刷新画面 exp="tf.当前页--" cond="tf.当前页>1"]
[locate x=600 y=255]
[button normal=下頁鈕 target=*刷新画面 exp="tf.当前页++" cond="tf.当前页<tf.页数"]
[locate x=500 y=-60]
[button graphic=r-return storage="rmenu.ks" target=*return]
[s]
|