Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2008, 06:58 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
gui stuff

two things

i'm drawing text over the part of my guiwindowctrl so that it's stopping the dragging of that window. is there a way to make it even if i drag the text it'll drag the window?

how can i tell once a gui has been closed [by the x in the corner] [is there a function?]
Reply With Quote
  #2  
Old 08-31-2008, 07:00 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Second issue:

Quote:
Originally Posted by wiki.graal.net
onCloseQuery() - is invoked when the user clicks on the close-button of a window and closequery=true; the script should then either hide or destroy the window; if closequery=false then the window is just hidden (not destroyed)
Reply With Quote
  #3  
Old 08-31-2008, 07:01 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
onCloseQuery() is triggered when you have closequery=true; in the gui (You have to script the hiding/destroy of the gui then yourself)


And, adjust the window while you drag the text? Or is the window bickering then?
__________________
Reply With Quote
  #4  
Old 08-31-2008, 07:04 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
thanks


well, on the guiwindowctrl i didn't use the 'text=stuff', instead i made my own text guitextctrl and re-positioned that over the part that allows dragging of the guiwindowctrl, i basically want to push that text back and so that the window is selected instead of the text for dragging
Reply With Quote
  #5  
Old 08-31-2008, 07:15 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by [email protected] View Post
well, on the guiwindowctrl i didn't use the 'text=stuff', instead i made my own text guitextctrl and re-positioned that over the part that allows dragging of the guiwindowctrl, i basically want to push that text back and so that the window is selected instead of the text for dragging
Just create the GuiTextCtrl as a child to GuiWindowCtrl and have it positioned up there?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 08-31-2008, 07:24 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
well, the position of the GuiTextCtrl is still blocking it, unless you mean there is a command to do that...?

Basically, it goes:
HTML Code:
guiWindowCtrl() {
  //stuff
  guiTextCtrl() {
    position = {x, - 30}; //Will draw it on the guiWindowCtrl tab
  }
}
Reply With Quote
  #7  
Old 08-31-2008, 07:28 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Oh, you mean like that... well... I don't think there's a way around making it not stealing focus, you can manually script so that if you "select" the text control and move the pointer, it behaves the same as the GuiWindowCtrl would.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 08-31-2008, 07:29 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
In the text that's drawn over the window, set active = false;
__________________
Reply With Quote
  #9  
Old 08-31-2008, 07:34 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
In the text that's drawn over the window, set active = false;
Duh.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #10  
Old 08-31-2008, 07:46 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
Duh.
I'll assume you were calling yourself a noob.

I mean its not like setting active to false in a GUI control makes it so it doesn't steal focus right?
__________________
Reply With Quote
  #11  
Old 08-31-2008, 08:17 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
inverness you rock my world
Reply With Quote
  #12  
Old 08-31-2008, 10:43 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
I'll assume you were calling yourself a noob.
Good assumption there, Inverness-kun.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
Reply


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:47 PM.


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