Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-16-2009, 09:15 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
Help me with GUI

Hello im having problems the gui i cant get it to work can anyone post a GUI script or a link to one it will be great help. Thank you. (Note: I cant get it to stay in the corner )
__________________
Develop 4 Lyf
Reply With Quote
  #2  
Old 08-16-2009, 09:19 PM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Perhaps it would be best if you provided the script that you're having trouble with? I can provide the code for a simple window if that's what you need:

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  new 
GuiWindowCtrl("your_window")
  {
    
profile GuiBlueWindowProfile;
    
position = {100100};
    
extent = {200200};
    
    
title "My window!";
  }

It may benefit you to look at the GuiControl section of the wiki:
http://wiki.graal.net/index.php/Crea...iControls_List
It may also benefit you to use proper English, with correct grammar and punctuation.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #3  
Old 08-16-2009, 09:49 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
Yes thats all very nice but, i would like a image like showimg(1,"gui.png",x,y); in the corner no window. Do know how to do that and keep it in the corner when you move?
__________________
Develop 4 Lyf
Reply With Quote
  #4  
Old 08-16-2009, 09:54 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
well

showimg(200, "gui.png", 0, 0).layer = 4;

would do that :- )
__________________
Reply With Quote
  #5  
Old 08-16-2009, 09:59 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
with a setTimer(0.05); and Function onTimeOut()?
__________________
Develop 4 Lyf
Reply With Quote
  #6  
Old 08-16-2009, 09:59 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
yes it works ty ty ty <3
__________________
Develop 4 Lyf
Reply With Quote
  #7  
Old 08-16-2009, 10:02 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
also how do i hide everything but my player and other players and textbar
__________________
Develop 4 Lyf
Reply With Quote
  #8  
Old 08-16-2009, 10:04 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
PHP Code:
//#CLIENTSIDE
function GraalControl.onResize(nxny)
{
showimg(200"gui.png"00).layer 4;

is this correct?
__________________
Develop 4 Lyf
Reply With Quote
  #9  
Old 08-16-2009, 10:16 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Mattehy View Post
also how do i hide everything but my player and other players and textbar
showstats(1024);
__________________
Reply With Quote
  #10  
Old 08-16-2009, 10:18 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by Mattehy View Post
also how do i hide everything but my player and other players and textbar
showstats(0x400);
Reply With Quote
  #11  
Old 08-16-2009, 10:20 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Mattehy View Post
PHP Code:
//#CLIENTSIDE
function GraalControl.onResize(nxny)
{
showimg(200"gui.png"00).layer 4;

is this correct?
May as well just put the whole GUI in a timeout as you're going to be doing more updates such as health and all anyways.
Reply With Quote
  #12  
Old 08-16-2009, 10:37 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
thanks guys xD now all i need is the hp bar script so it goes down when i lose health if u can help their 2 xD
__________________
Develop 4 Lyf
Reply With Quote
  #13  
Old 08-16-2009, 10:44 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Try creating a progress bar and attaching health to that.

PHP Code:
new GuiProgressCtrl("GUI_HealthBar") {
  
profile GuiBlueProgressProfile;
  
10;
  
10;
  
height 10;
  
width 100;
  
progress playerr.health;

resize and place as necessary.
Reply With Quote
  #14  
Old 08-16-2009, 10:53 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
You can find a class which creates easily managable status bars here Implementation and usage might be a bit wonky, but I didn't bother working things out yet
Reply With Quote
  #15  
Old 08-16-2009, 10:55 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
also what is the command to show a image when another player is in observer?
and the image of the player's selected NPC and crow thanks but i want something much simpler.
__________________
Develop 4 Lyf
Reply With Quote
  #16  
Old 08-16-2009, 11:28 PM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by Mattehy View Post
also what is the command to show a image when another player is in observer?
and the image of the player's selected NPC and crow thanks but i want something much simpler.
Just set the first parameter (200 in most of these cases) with a number below 200.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #17  
Old 08-17-2009, 12:04 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
http://wiki.graal.net/index.php/Crea.../Script/Client

ctrl + f, showstats.
Reply With Quote
  #18  
Old 08-17-2009, 02:13 AM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
Quote:
Originally Posted by Programmer View Post
Just set the first parameter (200 in most of these cases) with a number below 200.
what does this mean? how do i hide the nickname of a player? and also when you die it says dead and a black screen comes how do i remove that aswell.
__________________
Develop 4 Lyf
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 01:08 AM.


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