diff --git a/en/coding/classes.html b/en/coding/classes.html index d1e5ad5..925b905 100644 --- a/en/coding/classes.html +++ b/en/coding/classes.html @@ -16,9 +16,9 @@ Syntax:\ `.(parameters)` -| `Class name` - the name of a group of commands defined in the `classes.db` file for this edit mode. -| `Class member` - one of the commands included in the class. -| `Parameters` - 0 or more comma-delimited [parameters](data-types.md) +> `Class name` - the name of a group of commands defined in the `classes.db` file for this edit mode. +> `Class member` - one of the commands included in the class. +> `Parameters` - 0 or more comma-delimited [parameters](data-types.md) ```sb3 Player.SetMinWantedLevel($PLAYER_CHAR, 2) diff --git a/js/main.js b/js/main.js index f4dcc5a..d0262a2 100644 --- a/js/main.js +++ b/js/main.js @@ -1,5 +1,5 @@ // GLOBAL VERSION OF THE CHM -const VERSION = "1.0"; +const VERSION = "1.1"; // GLOBAL VARS const d = document; @@ -81,7 +81,7 @@ $('.markdown').innerHTML = $('.markdown').innerHTML .replace(/{% hint style="(\w+)" %}/g, '
') .replace(/{% endhint %}/g, '
') /*** CITE ***/ - .replace(/^(\||>)\s(.+)/gim, '
$2
') + .replace(/^>\s(.+)/gim, '
$1
') .replace(/<\/blockquote>(\s+)
/g, '
') /*** FORMAT ***/ .replace(/(\s|\(|>)\*\*\*([\x20-\x29\x2B-\xFF]+)\*\*\*/g, '$1$2') diff --git a/js/main.min.js b/js/main.min.js index 4a895f1..f866cad 100644 --- a/js/main.min.js +++ b/js/main.min.js @@ -1 +1 @@ -const VERSION="1.0",d=document;function $(e){return"#"===e.charAt(0)&&!/\s/.test(e)||1===d.querySelectorAll(e).length?d.querySelector(e):0!==d.querySelectorAll(e).length?d.querySelectorAll(e):void 0}function apply(e,a){if(e)if(""+e=="[object NodeList]")for(var r=0;r\t
'+$("body").innerHTML,$(".markdown").innerHTML=$(".markdown").innerHTML.replace(/^\*\s(.+)/gim,"
  • $1
").replace(/^\d\.\s(.+)/gim,"
  1. $1
").replace(/^\-\s(.+)/gim,"
$1
").replace(/<\/ul>(\s+)
    /g,"").replace(/<\/ol>(\s+)
      /g,"").replace(/<\/dl>(\s+)
      /g,"").replace(/^(\w.+)\n==+=/gim,function(e){e=e.replace(/^(\w.+)\n==+=/gim,"$1");return'

      '+e+"


      "}).replace(/^(\w.+)\n--+-/gim,function(e){e=e.replace(/^(\w.+)\n--+-/gim,"$1");return'

      '+e+"


      "}).replace(/\n--+-\n/g,"
      \n").replace(/{% hint (\w+) %}([\w\W]*){% endhint %}/g,"
      $2
      ").replace(/{% hint style="(\w+)" %}/g,"
      ").replace(/{% endhint %}/g,"
      ").replace(/^(\||>)\s(.+)/gim,"
      $2
      ").replace(/<\/blockquote>(\s+)
      /g,"
      ").replace(/(\s|\(|>)\*\*\*([\x20-\x29\x2B-\xFF]+)\*\*\*/g,"$1$2").replace(/(\s|\(|>)\*\*([\x20-\x29\x2B-\xFF]+)\*\*/g,"$1$2").replace(/(\s|\(|>)\*([\x20-\x29\x2B-\xFF]+)\*/g,"$1$2").replace(/(\s|\(|>)\+\+([\x20-\x2A\x2C-\xFF]+)\+\+/,"$1$2").replace(/(\s|\(|>)==([\x20-\x3C\x3E-\xFF]+)==/,"$1$2").replace(/^#.+\s([\x20-\x22\x24-\xFF].+)/gm,function(e){var n,s=0;return function e(a){if(/^#+\s/.test(a))s++,e(a=a.replace(/^#/,""));else if(0!=s){const r=a.replace(/^\s/,"");n="\n\t'+r+"\n"}else n=a}(e),n}).replace(/(\n^\.\n|(\.|:|\))\n\n(\w|\d|`(``)?!))/g,"$2

      $3").replace(/(\\\n|\\n\w|(\.|:|\))\n(\w|\d|`(``)?!))/g,"$2
      $3").replace(/\!\[([\x20-\x5A\x5C\x5E-\xFF]+)?\]\(([\x20-\x27\x2A-\xFF]+)(\s"[\w\d\s].+")?\)/g,'
      $1
      ').replace(/\.md(\)|#)/g,".html$1").replace(/\[([\x20-\x5A\x5C\x5E-\xFF]+)\]\(([\x20-\x27\x2A-\xFF]+)(\s"[\w\d\s].+")?\)/g,'$1').replace(/```(\w+|\n)?\s([\x09-\x5F\x61-\xFF]*)```/g,'
      $2
      ').replace(/`([\x20-\x5F\x61-\xFF]+)`/g,"$1")+'

      CHM EN v'+VERSION+" - by MatiDragon & Seemann with <3 for you

      ";var $firstElementChild=$(".markdown").firstElementChild.style;$firstElementChild["padding-top"]=0,$firstElementChild["margin-top"]=0,$firstElementChild["border-top"]=0,apply($("code"),function(e){e.innerText=e.innerHTML.replace(/=""/g,"").replace(/<\/(\w+|\w)?>/g,""),e.innerHTML=e.innerHTML.replace(/&/g,"&")}),apply($("pre"),function(e){e.innerText=e.innerHTML.replace(/=""/g,"").replace(/<\/(\w+|\w)?>/g,""),e.innerHTML=e.innerText.replace(/
      /g,"\n"),e.innerHTML=e.innerHTML.replace(/&/g,"&")}),apply($(".sb3"),function(e){e.innerHTML=e.innerHTML.replace(/(\/\/.+)/gm,"$1").replace(/(\/\*[\x09-.0-¦]*\*\/)/gim,"$1").replace(/(\{[\x09-z\|~-¦]*\})/gim,"$1").replace(/\"([\x09-\!#-¦]*)\"/gim,'"$1"').replace(/\'([!-&(-¦]+)\'/gim,"'$1'").replace(/(^|\s+)(longstring|shortstring|integer|jump_if_false|thread|create_thread|create_custom_thread|end_thread|name_thread|end_thread_named|if|then|else|hex|end|else_jump|jump|jf|print|const|while|not|wait|repeat|until|break|continue|for|gosub|goto|var|array|of|and|or|to|downto|step|call|return_true|return_false|return|ret|rf|tr|Inc|Dec|Mul|Div|Alloc|Sqr|Random|int|string|float|bool|fade|DEFINE|select_interior|set_weather|set_wb_check_to|nop)\b/gim,"$1$2").replace(/(\s+)(\@+\w+|\:+\w+)/gm,"$1$2").replace(/(\s)([A-Za-z]+\(\))/gm,"$1$2").replace(/(\[)([\d+]*)(\])/gim,"$1$2$3").replace(/([a-fA-F0-9]{4}\:)/gim,"$1").replace(/\b(\d+)(x|\.)(\w+)\b/gim,"$1$2$3").replace(/\b(true|false)\b/gim,"$1").replace(/(\s|\-|\,)(?!\$)(\d+)(?!\:|\@)(i)?\b/gim,"$1$2$3").replace(/(\#+\w+)/gm,"$1").replace(/(^|\s)(Actor|Animation|Attractor|Audio|AudioStream|Blip|Boat|Button|Camera|Car|CarGenerator|CardDecks|Checkpoint|Clock|Component|Credits|Cutscene|Debugger|DecisionMaker|DecisionMakerActor|DecisionMakerGroup|DynamicLibrary|File|Fs|Fx|Game|Gang|Garage|Group|Heli|Hid|ImGui|IniFile|Input|Interior|Key|Marker|Math|Memory|Menu|Model|Mouse|Multiplayer|List|Object|ObjectGroup|Particle|Path|Pickup|Plane|Player|Rampage|Rc|Render|Restart|Screen|ScriptEvent|ScriptFire|Searchlight|Sequence|Shopping|Skip|Sound|Soundtrack|SpecialActor|Sphere|Sprite|Stat|StreamedScript|Streaming|String|StuckCarCheck|Task|Text|Texture|Trailer|Train|Txd|WeaponInfo|Weather|Widget|World|Zone)(\.)(\w+)/gim,"$1$2$3$4").replace(/(\w+)(\(.+\)\.)(\w+)/gim,"$1$2$3").replace(/(\$\w+|\d+\@)\.([0-9A-Z_a-z]+)/gm,"$1.$2").replace(/: (\w+)\n/gm,": $1\n").replace(/\.([0-9A-Z_a-z]+)\n/gm,".$1\n").replace(/(\{\$)(CLEO|OPCODE|NOSOURCE)(\s\w+\}|\})/gim,"$1$2$3").replace(/\b(timera|timerb)\b/gim,"$1").replace(/(\d+)(\@s|\@v|\@)(\:|\s|\n|\]|\.|\,||\))/gm,"$1$2$3").replace(/(\&\d+)/gim,"$1").replace(/(\x{00}|s|v)(\$[0-9A-Z_a-z]+)/gm,"$1$2").replace(/(\t)/gim," ")}); \ No newline at end of file +const VERSION="1.1",d=document;function $(e){return"#"===e.charAt(0)&&!/\s/.test(e)||1===d.querySelectorAll(e).length?d.querySelector(e):0!==d.querySelectorAll(e).length?d.querySelectorAll(e):void 0}function apply(e,a){if(e)if(""+e=="[object NodeList]")for(var r=0;r\t
'+$("body").innerHTML,$(".markdown").innerHTML=$(".markdown").innerHTML.replace(/^\*\s(.+)/gim,"
  • $1
").replace(/^\d\.\s(.+)/gim,"
  1. $1
").replace(/^\-\s(.+)/gim,"
$1
").replace(/<\/ul>(\s+)
    /g,"").replace(/<\/ol>(\s+)
      /g,"").replace(/<\/dl>(\s+)
      /g,"").replace(/^(\w.+)\n==+=/gim,function(e){e=e.replace(/^(\w.+)\n==+=/gim,"$1");return'

      '+e+"


      "}).replace(/^(\w.+)\n--+-/gim,function(e){e=e.replace(/^(\w.+)\n--+-/gim,"$1");return'

      '+e+"


      "}).replace(/\n--+-\n/g,"
      \n").replace(/{% hint (\w+) %}([\w\W]*){% endhint %}/g,"
      $2
      ").replace(/{% hint style="(\w+)" %}/g,"
      ").replace(/{% endhint %}/g,"
      ").replace(/^>\s(.+)/gim,"
      $1
      ").replace(/<\/blockquote>(\s+)
      /g,"
      ").replace(/(\s|\(|>)\*\*\*([\x20-\x29\x2B-\xFF]+)\*\*\*/g,"$1$2").replace(/(\s|\(|>)\*\*([\x20-\x29\x2B-\xFF]+)\*\*/g,"$1$2").replace(/(\s|\(|>)\*([\x20-\x29\x2B-\xFF]+)\*/g,"$1$2").replace(/(\s|\(|>)\+\+([\x20-\x2A\x2C-\xFF]+)\+\+/,"$1$2").replace(/(\s|\(|>)==([\x20-\x3C\x3E-\xFF]+)==/,"$1$2").replace(/^#.+\s([\x20-\x22\x24-\xFF].+)/gm,function(e){var n,s=0;return function e(a){if(/^#+\s/.test(a))s++,e(a=a.replace(/^#/,""));else if(0!=s){const r=a.replace(/^\s/,"");n="\n\t'+r+"\n"}else n=a}(e),n}).replace(/(\n^\.\n|(\.|:|\))\n\n(\w|\d|`(``)?!))/g,"$2

      $3").replace(/(\\\n|\\n\w|(\.|:|\))\n(\w|\d|`(``)?!))/g,"$2
      $3").replace(/\!\[([\x20-\x5A\x5C\x5E-\xFF]+)?\]\(([\x20-\x27\x2A-\xFF]+)(\s"[\w\d\s].+")?\)/g,'
      $1
      ').replace(/\.md(\)|#)/g,".html$1").replace(/\[([\x20-\x5A\x5C\x5E-\xFF]+)\]\(([\x20-\x27\x2A-\xFF]+)(\s"[\w\d\s].+")?\)/g,'$1').replace(/```(\w+|\n)?\s([\x09-\x5F\x61-\xFF]*)```/g,'
      $2
      ').replace(/`([\x20-\x5F\x61-\xFF]+)`/g,"$1")+'

      CHM EN v'+VERSION+" - by MatiDragon & Seemann with <3 for you

      ";var $firstElementChild=$(".markdown").firstElementChild.style;$firstElementChild["padding-top"]=0,$firstElementChild["margin-top"]=0,$firstElementChild["border-top"]=0,apply($("code"),function(e){e.innerText=e.innerHTML.replace(/=""/g,"").replace(/<\/(\w+|\w)?>/g,""),e.innerHTML=e.innerHTML.replace(/&/g,"&")}),apply($("pre"),function(e){e.innerText=e.innerHTML.replace(/=""/g,"").replace(/<\/(\w+|\w)?>/g,""),e.innerHTML=e.innerText.replace(/
      /g,"\n"),e.innerHTML=e.innerHTML.replace(/&/g,"&")}),apply($(".sb3"),function(e){e.innerHTML=e.innerHTML.replace(/(\/\/.+)/gm,"$1").replace(/(\/\*[\x09-.0-¦]*\*\/)/gim,"$1").replace(/(\{[\x09-z\|~-¦]*\})/gim,"$1").replace(/\"([\x09-\!#-¦]*)\"/gim,'"$1"').replace(/\'([!-&(-¦]+)\'/gim,"'$1'").replace(/(^|\s+)(longstring|shortstring|integer|jump_if_false|thread|create_thread|create_custom_thread|end_thread|name_thread|end_thread_named|if|then|else|hex|end|else_jump|jump|jf|print|const|while|not|wait|repeat|until|break|continue|for|gosub|goto|var|array|of|and|or|to|downto|step|call|return_true|return_false|return|ret|rf|tr|Inc|Dec|Mul|Div|Alloc|Sqr|Random|int|string|float|bool|fade|DEFINE|select_interior|set_weather|set_wb_check_to|nop)\b/gim,"$1$2").replace(/(\s+)(\@+\w+|\:+\w+)/gm,"$1$2").replace(/(\s)([A-Za-z]+\(\))/gm,"$1$2").replace(/(\[)([\d+]*)(\])/gim,"$1$2$3").replace(/([a-fA-F0-9]{4}\:)/gim,"$1").replace(/\b(\d+)(x|\.)(\w+)\b/gim,"$1$2$3").replace(/\b(true|false)\b/gim,"$1").replace(/(\s|\-|\,)(?!\$)(\d+)(?!\:|\@)(i)?\b/gim,"$1$2$3").replace(/(\#+\w+)/gm,"$1").replace(/(^|\s)(Actor|Animation|Attractor|Audio|AudioStream|Blip|Boat|Button|Camera|Car|CarGenerator|CardDecks|Checkpoint|Clock|Component|Credits|Cutscene|Debugger|DecisionMaker|DecisionMakerActor|DecisionMakerGroup|DynamicLibrary|File|Fs|Fx|Game|Gang|Garage|Group|Heli|Hid|ImGui|IniFile|Input|Interior|Key|Marker|Math|Memory|Menu|Model|Mouse|Multiplayer|List|Object|ObjectGroup|Particle|Path|Pickup|Plane|Player|Rampage|Rc|Render|Restart|Screen|ScriptEvent|ScriptFire|Searchlight|Sequence|Shopping|Skip|Sound|Soundtrack|SpecialActor|Sphere|Sprite|Stat|StreamedScript|Streaming|String|StuckCarCheck|Task|Text|Texture|Trailer|Train|Txd|WeaponInfo|Weather|Widget|World|Zone)(\.)(\w+)/gim,"$1$2$3$4").replace(/(\w+)(\(.+\)\.)(\w+)/gim,"$1$2$3").replace(/(\$\w+|\d+\@)\.([0-9A-Z_a-z]+)/gm,"$1.$2").replace(/: (\w+)\n/gm,": $1\n").replace(/\.([0-9A-Z_a-z]+)\n/gm,".$1\n").replace(/(\{\$)(CLEO|OPCODE|NOSOURCE)(\s\w+\}|\})/gim,"$1$2$3").replace(/\b(timera|timerb)\b/gim,"$1").replace(/(\d+)(\@s|\@v|\@)(\:|\s|\n|\]|\.|\,||\))/gm,"$1$2$3").replace(/(\&\d+)/gim,"$1").replace(/(\x{00}|s|v)(\$[0-9A-Z_a-z]+)/gm,"$1$2").replace(/(\t)/gim," ")}); \ No newline at end of file