Skip to content

Commit

Permalink
1.6.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
YrracOwl committed Aug 27, 2024
1 parent b7f8590 commit be083ea
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 26 deletions.
2 changes: 1 addition & 1 deletion default.aproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<project ver="10" name="ChiikawaBest" libEmbed="true" icon="res\chiikawaIcon.ico" ui="win" output="ChiikawaBest.exe" CompanyName="CarryWho" FileDescription="ChiikawaBest" LegalCopyright="Copyright (C) CarryWho 2023" ProductName="ChiikawaBest" InternalName="ChiikawaBest" FileVersion="1.6.0.11" ProductVersion="1.6.0.11" publishDir="/dist/" dstrip="true" local="false" ignored="false">
<project ver="10" name="ChiikawaBest" libEmbed="true" icon="res\chiikawaIcon.ico" ui="win" output="ChiikawaBest.exe" CompanyName="CarryWho" FileDescription="ChiikawaBest" LegalCopyright="Copyright (C) CarryWho 2023" ProductName="ChiikawaBest" InternalName="ChiikawaBest" FileVersion="1.6.0.12" ProductVersion="1.6.0.12" publishDir="/dist/" dstrip="true" local="false" ignored="false">
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
<folder name="资源文件" path="res" embed="true" local="false" ignored="false">
<file name="chiikawa.png" path="res\chiikawa.png" comment="res\chiikawa.png"/>
Expand Down
54 changes: 30 additions & 24 deletions dlg/timeline.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ key.delayDown = 1;
key.delayUp = 1;

winform.SetSelSpace = function(){
key.down(key.VK.SPACE)
key.sendString('​ ')
key.down(key.VK.SHIFT);
key.down(key.VK.LEFT);
key.up(key.VK.LEFT,key.VK.SHIFT);
Expand All @@ -1209,6 +1209,7 @@ winform.doingSetSelSpace = false;
winform.okDetectWndSize = 300;
winform.lastOKDown = false;


winform.内容plus.editBox.translateAccelerator = function(msg){
var vk = msg.wParam;
if( vk == 0x9/*_VK_TAB*/ ){
Expand All @@ -1229,30 +1230,36 @@ winform.内容plus.editBox.translateAccelerator = function(msg){
if( msg.message == 0x100/*_WM_KEYDOWN*/) {
if(!winform.doingSetSelSpace){
winform.doingSetSelSpace = !winform.doingSetSelSpace;

var tempText = winform.内容plus.editBox.lineText();

var pattern = "- "
var i,j = string.find( tempText, pattern );
var tempFlagNoOrderList = i==1 ? true:false;

var pattern = "\d+\.\s"
var i,j = string.find( tempText, pattern );
var tempFlagOrderList = i==1 ? true:false;

var pattern = "- \[ \] "
var i,j = string.find( tempText, pattern );
var tempFlagToDoU = i==1 ? true:false;

var pattern = "- \[x\] "
var i,j = string.find( tempText, pattern );
var tempFlagToDoD = i==1 ? true:false;

var pattern = "> "
var i,j = string.find( tempText, pattern );
var tempFlagQuote = i==1 ? true:false;

if ( !(tempFlagNoOrderList or tempFlagOrderList or tempFlagToDoU or tempFlagToDoD or tempFlagQuote) ) {
winform.doingSetSelSpace = !winform.doingSetSelSpace;
return ;
}

var txtSel = winform.SetSelSpace();
if(txtSel){
var tempText = winform.内容plus.editBox.lineText();

var pattern = "- "
var i,j = string.find( tempText, pattern );
var tempFlagNoOrderList = i==1 ? true:false;

var pattern = "\d+\.\s"
var i,j = string.find( tempText, pattern );
var tempFlagOrderList = i==1 ? true:false;

var pattern = "- \[ \] "
var i,j = string.find( tempText, pattern );
var tempFlagToDoU = i==1 ? true:false;

var pattern = "- \[x\] "
var i,j = string.find( tempText, pattern );
var tempFlagToDoD = i==1 ? true:false;

var pattern = "> "
var i,j = string.find( tempText, pattern );
var tempFlagQuote = i==1 ? true:false;

if(tempFlagToDoD){
winform.内容plus.editBox.selText = txtSel + '\r\n- [ ] ';
}
Expand All @@ -1272,7 +1279,6 @@ winform.内容plus.editBox.translateAccelerator = function(msg){
winform.内容plus.editBox.selText = txtSel + '\r\n';
}
winform.doingSetSelSpace = !winform.doingSetSelSpace;
return true;
}
}
return true;
Expand Down
1 change: 0 additions & 1 deletion release/1.6.0.10

This file was deleted.

1 change: 1 addition & 0 deletions release/1.6.0.11
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.6.0.11
Binary file modified release/ChiikawaBest.exe
Binary file not shown.

0 comments on commit be083ea

Please sign in to comment.