Adjust position of text

This commit is contained in:
Dazed 2024-01-22 07:40:33 -06:00
parent bb447ff759
commit 90bac1fc6e
3 changed files with 186 additions and 0 deletions

Binary file not shown.

157
CC_patch3/macro_name.ks Normal file
View file

@ -0,0 +1,157 @@
[eval exp="sf.namechip_x = 175+15"]
[eval exp="sf.namechip_y = 500"]
[eval exp="sf.namechip_w = 500"]
[eval exp="sf.namechip_h = 50"]
[eval exp="sf.namechip_size = 28"]
[eval exp="sf.namechip_ml = 25"]
[eval exp="sf.namechip_mt = 0"]
[macro name=hisout]
[eval exp="kag.historyLayer.store(mp.txt)" cond="kag.historyWriteEnabled"]
[endmacro]
[macro name=ns【]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]
[endmacro]
[macro name=】nse]
[hisout txt="】"][endnowait][hr][current layer=message0][eval exp="sf.text_x = sf.text_x + sf.text_x_namechip"]
[endmacro]
[macro name=【央】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x+15" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]央[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【???】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"][hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【累】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x+15" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]累[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【梨里】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]梨里[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【高橋】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]高橋[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【純】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]純[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【子野日】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]子野日[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【須田】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]須田[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【勇二】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]勇二[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[macro name=【顕悟】]
[if exp="f.まだ既読ではない == 0 || sf.allskip == 1"]
[eval exp="tf.namecolor = sf.kidoku_RGB"]
[else]
[eval exp="tf.namecolor = '0xffffff'"]
[endif]
[eval exp="f.namechip_on = 1"]
[layopt layer="&sf.message_namechip" page=fore visible=true]
[position layer="&sf.message_namechip" page=fore left="&sf.namechip_x" top="&sf.namechip_y" width="&sf.namechip_w" height="&sf.namechip_h" color=0x000000 frame="" opacity=0 marginL="&sf.namechip_ml" marginT="&sf.namechip_mt"]
[current layer="&sf.message_namechip"]
[font face="user" size="&sf.namechip_size" font color="&tf.namecolor" bold=true edge="&sf.edge_on" edgecolor="&sf.kidoku_Edgecolor" shadow=false]
[nowait][hisout txt="【"]顕悟[hisout txt="】"][endnowait][hr][current layer=message0]
[endmacro]
[return]

29
CC_patch3/macro_win.ks Normal file
View file

@ -0,0 +1,29 @@
[macro name=sysbt_meswin]
[backlay]
[sysbtopt forevisible=true backvisible=true left="&sf.sysbt_x" top="&sf.sysbt_y"]
[if exp="mp.clear!==void"]
[sysbtopt forevisible=false backvisible=false]
[layopt layer=message0 visible=false page=back]
[else]
[position layer=message0 page=back left="&sf.window_x" top="&sf.window_y+sf.window_chousei" width="&sf.window_w" height="&sf.window_h" frame="window2" opacity="&sf.graphicframe_opacity" marginl="&sf.text_x" margint="&sf.text_y - 30" marginr="&sf.text_r" marginb=0 visible=true]
[endif]
[current layer=message0]
[trans method=crossfade time=100]
[wt canskip=false]
[endmacro]
[macro name=s_m]
[backlay]
[if exp="f.selbt == 0"]
[sysbtopt forevisible=true backvisible=true left="&sf.sysbt_x" top="&sf.sysbt_y"]
[endif]
[if exp="mp.clear!==void"]
[sysbtopt forevisible=false backvisible=false]
[layopt layer=message0 visible=false page=back]
[elsif exp="f.selbt == 0"]
[position layer=message0 page=back left="&sf.window_x" top="&sf.window_y+sf.window_chousei" width="&sf.window_w" height="&sf.window_h" frame="window2" opacity="&sf.graphicframe_opacity" marginl="&sf.text_x" margint="&sf.text_y" marginr="&sf.text_r" marginb=0 visible=true]
[endif]
[current layer=message0]
[trans method=crossfade time=0]
[wt canskip=false]
[endmacro]
[return]