/* Authors: Arkeon */ /* Last update: 07.04.02 */ /* Version: 1.0 */ typeof plugin = S;; typeof class = S;; typeof ed = PluginEditor;; typeof SavedType = S;; typeof Init = ObjCheck;; 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; set Init = _SETcheck _CRcheck _channel ed.PluginEditorEditWin 5 10 160 20 0 "FullScreen at start" if !strcmpi getInfo l "init" "on" then 1 else 0; }; 0;; fun closeedit() = strbuild ("init"::(let _GETcheck Init -> x in if x then "on" else "off")::nil):: nil ;; fun savesuppdmi(l) = if l==nil then nil else let l->[a n] in ("actionC"::(strcat a.nameInst ".ChangeMode")::nil):: ("actionC"::(strcat a.nameInst ".ScreenMode")::nil):: ("actionC"::(strcat a.nameInst ".FullScreen")::nil):: ("actionC"::(strcat a.nameInst ".Window")::nil):: ("eventC"::(strcat a.nameInst ".Changed")::nil):: ("eventC"::(strcat a.nameInst ".Software")::nil):: ("eventC"::(strcat a.nameInst ".Fullscreen")::nil):: ("eventC"::(strcat a.nameInst ".Window")::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 @closeedit;;