/* Authors: Arkeon */ /* Last update: 20.03.03 */ /* Version: 1.0 */ typeof plugin = S;; typeof class = S;; typeof ed = PluginEditor;; proto save=fun [ [Inst r1] ] [[S r1] [S r1] [[S r1]r1] [[S r1]r1]];; fun openedit(win, param) = let strextr param -> l in let _GETwindowSizePosition win -> [w h x y] in set ed = startPluginEditor _channel win 0 0 w h WN_CHILDINSIDE|WN_NOBORDER class; 0;; fun savesuppdmi(l) = if l==nil then nil else let l->[a n] in ("eventC"::(strcat a.nameInst ".SoftMode")::nil):: ("eventC"::(strcat a.nameInst ".OpenGlMode")::nil):: savesuppdmi n ;; fun save(l)= [ nil /* registerF */ nil /* register */ ("plugin"::plugin::nil)::nil /* supplemental Dat */ savesuppdmi l /* supplemental Dmi */ ];; fun IniPlug(file) = set plugin=file; set class=getInfo strextr _getpack _checkpack file "name"; PlugRegister class @save nil @openedit nil;;