具体报酬:20元人民币
支付方式:支付宝,微信转账
联系方式:QQ296578353
有效期限:问题解决之前。还有可能没发现的问题,可能调试时才发现 如果有报酬会提升
例句
<Image x="#sw/2+#offset_x" y="#sh-360+#offset_y" align="center" alignV="center" pivotX="87" pivotY="87" rotation="#angle+#angle2" srcExp="'unlock'+#Color_id+'.webp" visibility="!(#charge.visibility)-#music.visibility*#Gb"/>
<Image x="#sw/2" y="#sh-360" align="center" alignV="center" srcExp="'style'+#Color_id+'.webp" visibility="!(#charge.visibility)-#music.visibility*#Gb"/>
<Circle name="wave_2_show" x="#sw/2" y="#sh-360" align="center" alignV="center" r="66" strokeColor="@Color" weight="7" visibility="1-#music.visibility*#Gb">
<Circle name="wave_3_show" x="#sw/2" y="#sh-360" align="center" alignV="center" r="77" strokeColor="@Color" weight="7" visibility="1-#music.visibility*#Gb">
生成
<Var name="Image_x共2个" type="number[] const="false" values="#sw/2+#offset_x,#sw/2"/> #数字数组用,隔开
<Var name="Image_y共2个" type="number[] const="false" values="#sh-360+#offset_y,#sh-360"/>
... #以此类推归类并正则匹配所有属性值 统计数量依据节点数即<Image <Circle 节点(标签)的对应数量 并非值的数量
<Var name="Image_visibility共2个" type="number[] const="false" values="!(#charge.visibility)-#music.visibility*#Gb,!(#charge.visibility)-#music.visibility*#Gb"/>
<Var name="Circle_name共2个" type="string[]" const="true" expression="''''" values="'wave_2_show','wave_3_show'"/>#字符数组以','隔开 name align alignV strokeColor package class 为字符数组(可能还有)其它为数字数组
<Var name="Circle_x共2个" type="number[] const="false" values="#sw/2,#sw/2"/>
<Var name="Circle_y共2个" type="number[] const="false" values="#sh-360,#sh-360"/>
...
以下是大神回帖我照葫芦画瓢改的,比较固定、针对,不够灵活 没有统计和归类- $f =gc manifest.xml -readcount 0 -enc utf8;
- $x =[regex]::matches($f,'(?is)(?<=\bx=")[^"]+\b').value;
- $y =[regex]::Matches($f,'(?is)(?<=\by=")[^"]+\b').value;
- $w =[regex]::matches($f,'(?is)(?<=\bw=")[^"]+\b').value;
- $h =[regex]::matches($f,'(?!s)(?<=\bh=")[^"]+\b').value;
- $r =[regex]::matches($f,'(?!s)(?<=\br=")[^"]+\b').value;
- $alpha =[regex]::matches($f,'(?is)(?<=\balpha=")[^"]+\b').value;
- $pivotX =[regex]::matches($f,'(?is)(?<=\bpivotX=")[^"]+\b').value;
- $pivotY =[regex]::matches($f,'(?is)(?<=\bpivotY=")[^"]+\b').value;
- $angle =[regex]::matches($f,'(?is)(?<=\bangle=")[^"]+\b').value;
- $scale =[regex]::matches($f,'(?is)(?<=\bscale=")[^"]+\b').value;
- $src =[regex]::matches($f,'(?is)(?<=\bsrc=")[^"]+\b').value;
- $srcExp =[regex]::matches($f,'(?is)(?<=\bsrcExp=")[^"]+\b').value;
- $align =[regex]::matches($f,'(?is)(?<=\balign=")[^"]+\b').value;
- $alignV =[regex]::matches($f,'(?is)(?<=\balignV=")[^"]+\b').value;
- $package =[regex]::matches($f,'(?is)(?<=\bpackage=")[^"]+\b').value;
- $class =[regex]::matches($f,'(?is)(?<=\bclass=")[^"]+\b').value;
- $out ='<Var name="信息_x" type="number[] const="false" values="'+($x -join ',')+'"/>'+"`r`n"+'<Var name="信息_y" type="number[] const="false" values="'+($y -join ',')+'"/>'+"`r`n"+'<Var name="信息_w" type="number[] const="true" values="'+($w -join ',')+'"/>'+"`r`n"+'<Var name="信息_h" type="number[] const="true" values="'+($h -join ',')+'"/>'+"`r`n"+'<Var name="信息_r" type="number[] const="true" values="'+($r -join ',')+'"/>'+"`r`n"+'<Var name="信息_alpha" type="number[] const="true" values="'+($alpha -join ',')+'"/>'+"`r`n"+'<Var name="信息_pivotX" type="number[] const="true" values="'+($pivotX -join ',')+'"/>'+"`r`n"+'<Var name="信息_pivotY" type="number[] const="true" values="'+($pivotY -join ',')+'"/>'+"`r`n"+'<Var name="信息_angle" type="number[] const="true" values="'+($angle -join ',')+'"/>'+"`r`n"+'<Var name="信息_scale" type="number[] const="true" values="'+($scale -join ',')+'"/>'+"`r`n"+'<Var name="信息_src" type="string[]" const="true" expression="''''" values="'''+($src -join ''',''')+'''"/>'+"`r`n"+'<Var name="信息_srcExp" type="string[]" const="true" expression="''''" values="'''+($srcExp -join ''',''')+'''"/>'+"`r`n"+'<Var name="信息_align" type="string[]" const="true" expression="''''" values="'''+($align -join ''',''')+'''"/>'+"`r`n"+'<Var name="信息_alignV" type="string[]" const="true" expression="''''" values="'''+($alignV -join ''',''')+'''"/>'+"`r`n"+'<Var name="信息_package" type="string[]" const="true" expression="''''" values="'''+($package -Join ''',''')+'''"/>'+"`r`n"+'<Var name="信息_class" type="string[]" const="true" expression="''''" values="'''+($class -join ''',''')+'''"/>'
- sc '.\数组信息.xml' -value $out -enc utf8 -force;
复制代码
|