TID: Mystic BBS 1.12 A47   
   MSGID: 1:129/215 c6f5c24d   
   REPLY: 1:317/3 b502f50a   
   TZUTC: -0500   
    BP> If there was a way that we could put in, say, #V#2#X/2#8...etc,   
    BP> where X was the max x, or TermSizeX (using mpl terms), divided by 2 to   
    BP> find the center of the screen, it would make things a bit easier. This   
    BP> is something that can be done pretty easily with MPL, but this might be   
    BP> something that could help out other sysops.   
      
   I have given some thought and put some time into some ideas around this and I   
   am very open to suggestions. Here's what I have worked on/thought about:   
      
   One thing I experimented with was some inline scripting that I called   
   "QuickScript" where you can get access to some basic values/math functions   
   right inside an MCI code in places where an X/Y value would be involved.   
      
   I have a basic scripting engine that actually works now just not enabled in   
   Mystic and it looks like this:   
      
   {(80+(wx/2))-2}   
      
   And that would allow you to calculate numbers right in an MCI code. In that   
   example "WY" and "WX" are the user's terminal size X/Y. I was expanding it to   
   support other variables and stuff but I stopped at some point.   
      
   Like you mentioned the same could be accomplished today using MPL or also an   
   external display file like "mybox.c132.ans" that shows the box where you want   
   it only for 132+ displays and so on.   
      
   Another idea specifically for the box drawing code would be to have the option   
   for it to automatically center on the screen if you supply a "0" value for   
   the start or end X positions. This might be a good thing to add too.   
      
   ... Do device drivers need a chauffeur's license?   
      
   --- Mystic BBS v1.12 A47 2021/11/18 (Windows/64)   
    * Origin: Sector 7 * Mystic WHQ (1:129/215)   
   SEEN-BY: 1/123 90/1 105/81 114/705 120/340 457 616 123/10 120 131   
   SEEN-BY: 129/215 305 154/10 30 40 50 700 203/0 218/840 220/70 80 90   
   SEEN-BY: 221/6 226/17 18 30 100 227/114 201 229/101 310 424 426 428   
   SEEN-BY: 229/452 550 664 700 240/5832 249/206 307 317 400 250/5 8   
   SEEN-BY: 267/800 280/464 282/1038 292/854 298/25 301/1 305/2 3 317/3   
   SEEN-BY: 322/757 340/1000 342/200 633/280 770/1 3634/12   
   PATH: 129/215 154/10 770/1 317/3 229/426   
      
|