Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 01-10-2017, 01:57 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Kirko View Post
Only took a year.

PHP Code:
function showCrap() {
  new 
GuiWindowCtrl("MyWindow") {
    
useownprofile true;
    
style $pref::video::defaultguistyle;
    
isExternal true;
    
showOnTaskBar true;
    
text "My Window";
  }
  
// Had to change in other function, didn't work in this one
  
stuff();
}

function 
stuff() {
  
temp.ctrl MyWindow.externalwindow// basically just change this
  
ctrl.width 300;
  
ctrl.height 200;
  
ctrl.= (ctrl.screenWidth ctrl.width) / 2;
  
ctrl.= (ctrl.screenHeight ctrl.height) / 2;

Thank you for this. It solves a problem I was attempting to solve years ago as I was unaware you could modify the .externalwindow object (official documentation states that it is read-only, I guess that doesn't necessarily mean its properties are read-only).

That said it is working fine for me within the original function that is creating the external GUI...
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.