4
1

mod_isample_readme.qsrc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # mod_isample_readme
  2. !input your mod detail readme here. you can use msg or detailed structure, just make sure to create act 'return': gt 'mod_setting'
  3. *clr&cla
  4. act 'return': gt 'mod_setting'
  5. '<center>Mod <b>isample</b></center>'
  6. 'This is a sample for new mod system, please fill your own mod in this form
  7. 1. Since QSP can not load location with same name, and there are no warning about this during adding new qsp files, please name ALL YOUR LOCATION NAME with <B>mod_name_xxx</B> to avoid duplication bug.
  8. 2. please DO NOT use space or non-ascii character in location name. you can use use _ instead. -- this may cause bug on txtsplit function for git
  9. 3. The first location MUST be named as "mod_name_setup", this system will call it and load necessary information from it.
  10. $mod_info[0] = mod name
  11. $mod_info[1] = mod version
  12. 10203 will be displayed as version 1.2, fix3.
  13. 40500 will be showen as version 4.5
  14. $mod_info[2] = author name
  15. $mod_info[3] = short description for this mod
  16. 4. please create "mod_name_readme" location for mod detail readme (just like this location)
  17. If you really have only one line for this, you can use a simple msg instead a long text.
  18. 5. put all your entry point in location "mod_name"
  19. You can use lots of condition check there, check this sample file yourself.
  20. Frequency used condition:'
  21. '<table>'
  22. *p "<tr><td>current location"
  23. "<td>if $curloc = '...'</td></tr>"
  24. *p "<tr><td>current stage"
  25. "<td>if $ARGS[0] = '...'</td></tr>"
  26. *p "<tr><td>variable value"
  27. "<td>if aaa > 10 </td></tr>"
  28. '</table>
  29. Please note that strings are case sensitive, you can use lcase() or ucase() to shft them before check.
  30. 6. Due to techinque issue, this mod system CAN NOT recognition locations use value in ARGS (luckly, only system functions use this, so you shall not worry about this.)
  31. for example, gs ''indik'', ''2'', 100
  32. Have a nice day, and Welcome to join this Community!
  33. --- illume, 2018/1/25'
  34. --- mod_isample_readme ---------------------------------