Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-12-2015, 06:30 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
External Window not working correctly

So I have two questions for a external window I'm making.
My first one would be is there a way to set a specific x and y where the window will appear. When ever I update the script the window will appear on the top left corner and continue to move a couple of pixels down right.

Second, for some reason my gif image wont actually show it as a gif, it just stays still but when ever I update the script my gif image seems to be on a different frame most of the time.


oh and also I'm I suppose to have all my questions in a single thread or does it not matter? :o
Reply With Quote
  #2  
Old 06-12-2015, 10:58 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
****'s buggy so if you find a solution share it

you will probably have to work around the gif thing and animate it yourself
__________________
Quote:
Reply With Quote
  #3  
Old 06-14-2015, 09:38 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
Quote:
Originally Posted by fowlplay4 View Post
****'s buggy so if you find a solution share it

you will probably have to work around the gif thing and animate it yourself
I had to make the image into a gani

anyways thanks for replying!
Reply With Quote
  #4  
Old 06-14-2015, 10:14 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
you should also make it in flip book format for hard copy purposes.
Reply With Quote
  #5  
Old 06-15-2015, 01:46 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Have you tried making x = y;?
__________________
Reply With Quote
  #6  
Old 01-09-2017, 11:41 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
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;

Reply With Quote
  #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
  #8  
Old 01-11-2017, 10:34 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
For reference the externalwindow object is a TWindow. So doing "/scripthelp TWindow." in rc will show what you can do with it

Quote:
Originally Posted by ffcmike View Post
That said it is working fine for me within the original function that is creating the external GUI...
For some reason the first time I tried to edit in the same function it didn't work. I probably had a typo or something.
Reply With Quote
  #9  
Old 02-27-2017, 01:09 AM
Alpho Alpho is offline
Registered User
Alpho's Avatar
Join Date: Dec 2011
Location: California, USA
Posts: 80
Alpho will become famous soon enough
Quote:
Originally Posted by Kirko View Post
"/scripthelp TWindow."
Thank you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:14 AM.


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