|
@@ -17,19 +17,21 @@ end
|
|
|
'<b>WARNING</b>: Game slowdown may occur when installing too many mods, or mods with bad structure.'
|
|
|
if mod_list > 0:
|
|
|
|
|
|
- '<table border=1><tr><td>id</td><td>Name</td><td>Version</td><td>Author</td><td>Description</td></tr>'
|
|
|
+ '<table border=1><tr><td>id</td><td>Name</td><td>Version</td><td>Author</td><td>Description</td><td>Options</td></tr>'
|
|
|
mod_i=1
|
|
|
:mod_alllist
|
|
|
if $mod_name[mod_i] ! '':
|
|
|
+ !name
|
|
|
gs 'mod_<<$mod_name[mod_i]>>_setup'
|
|
|
*p '<tr><td><<mod_i>></td><td><<$mod_info[0]>></td>'
|
|
|
- !name
|
|
|
- *p '<td><<val($mod_info[1])/10000>>.<<(val($mod_info[1]) mod 10000)/100>> <<iif(val($mod_info[1]) mod 100 > 0, ''fix <<val($mod_info[1]) mod 100>> '', '' '')>></td>'
|
|
|
!version
|
|
|
- *p '<td><<$mod_info[2]>></td>'
|
|
|
+ *p '<td><<val($mod_info[1])/10000>>.<<(val($mod_info[1]) mod 10000)/100>> <<iif(val($mod_info[1]) mod 100 > 0, ''fix <<val($mod_info[1]) mod 100>> '', '' '')>></td>'
|
|
|
!author
|
|
|
- *p '<td><a href="exec:gs ''mod_<<$mod_info[0]>>_readme''"><img src="images/system/icon/anptekainfo.jpg"></a> <<$mod_info[3]>></td></tr>'
|
|
|
+ *p '<td><<$mod_info[2]>></td>'
|
|
|
!description and readme
|
|
|
+ *p '<td><a href="exec:gs ''mod_<<$mod_info[0]>>_readme''"><img src="images/system/icon/anptekainfo.jpg"></a> <<$mod_info[3]>></td></tr>'
|
|
|
+ !mod options page
|
|
|
+ *p '<td>'+iif($mod_opt[mod_i] ! '','<a href="exec:gs ''mod_<<$mod_info[0]>>_options''"><<$mod_info[4]>></a>','')+'</td></tr>'
|
|
|
else
|
|
|
'ERROR loading mod id <<mod_i>>, no mod name available'
|
|
|
end
|
|
@@ -38,14 +40,14 @@ if mod_list > 0:
|
|
|
mod_i+=1
|
|
|
jump 'mod_alllist'
|
|
|
end
|
|
|
- killvar 'mod_info'
|
|
|
+ killvar '$mod_info'
|
|
|
'</table>'
|
|
|
else
|
|
|
'<br>You have no Mods activated.'
|
|
|
end
|
|
|
'</center>'
|
|
|
act ''+iif(settingmode = 1, '<center><b>Install new mod</b></center>','Install new mod')+'':
|
|
|
- killvar 'mod_info'
|
|
|
+ killvar '$mod_info'
|
|
|
$mod_temp=input('input mod name (as for the example image above, input <B>isample</B>)')
|
|
|
if $mod_temp='':exit
|
|
|
addqst 'mod/<<$mod_temp>>.qsp'
|
|
@@ -59,6 +61,7 @@ act ''+iif(settingmode = 1, '<center><b>Install new mod</b></center>','Install n
|
|
|
$mod_version[mod_list] = $mod_info[1]
|
|
|
$mod_author[mod_list] = $mod_info[2]
|
|
|
$mod_desc[mod_list] = $mod_info[3]
|
|
|
+ $mod_opt[mod_list] = $mod_info[4]
|
|
|
gt $loc, $metka
|
|
|
end
|
|
|
act ''+iif(settingmode = 1, '<center><b>Disable all mods</b></center>','Disable all mods')+'':
|
|
@@ -69,6 +72,7 @@ act ''+iif(settingmode = 1, '<center><b>Disable all mods</b></center>','Disable
|
|
|
killvar '$mod_version'
|
|
|
killvar '$mod_author'
|
|
|
killvar '$mod_desc'
|
|
|
+ killvar '$mod_opt'
|
|
|
'All mod disabled. You can re-install them later.'
|
|
|
cla
|
|
|
act 'Continue':gt $loc, $metka
|