Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Main GUI (https://forums.graalonline.com/forums/showthread.php?t=134257112)

sssssssssss 11-29-2009 05:57 AM

Main GUI
 
I was wondering how to edit the main gui of the game, that shows the ap, bombs, arrows, rupees, hearts, ect.

I mostly want to just move some things around, and take things out really. I just dont know where to start with it. :x If someone could post some things, commands, places to changes, ect, that would be helpful.

cbk1994 11-29-2009 06:06 AM

You can't move things around, or even really change things, but you can hide stuff. Look into the showstats command.

PHP Code:

showStats(allstats 64); 

The stat values are as following:

PHP Code:

1             ASD
2             icons
4             rupees
8             bombs
16            arrows
32            hearts
64            ap
128           mp
256           minimap
512           inv
1024          player
allstats      all stats 

So you could do something like:

PHP Code:

showStats(allstats 8); 

to disable both rupees and bombs.

DustyPorViva 11-29-2009 06:18 AM

showStats(allstats - 4 - 8);

sssssssssss 11-29-2009 06:38 AM

So if i wanted to replace I would hide what I didnt want, and just show what I did manually? Much like people do a hp system?

Also, an off question. Ive never had a new gui profile, so how would i change it if the window profile I made was called guiarm_window.png?

PHP Code:

profile "GuiBlueWindowProfile"

because,

PHP Code:

profile "GuiArmWindowProfile"

didn't work. And I know the gui image is uploaded in the images folder in rc.

fowlplay4 11-29-2009 06:47 AM

Quote:

Originally Posted by sssssssssss (Post 1541076)
So if i wanted to replace I would hide what I didnt want, and just show what I did manually? Much like people do a hp system?

Yes.

You have to create the profile before you can use it, you can create a replica of the GuiBlueWindowProfile like so:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
onCreateProfiles();
}

function 
onCreateProfiles() {
  new 
GuiBlueWindowProfile("GuiArmWindowProfile") {
    
bitmap "guiarm_window.png";
  }



sssssssssss 11-29-2009 07:43 AM

Ah, ok. :)
Thanks.

DustyPorViva 11-29-2009 08:15 AM

Alternatively you can just:

PHP Code:

profile "GuiBlueWindowProfile";
useownprofile true;
profile.bitmap "yourimage.png"


cbk1994 11-29-2009 08:29 AM

Quote:

Originally Posted by DustyPorViva (Post 1541068)
showStats(allstats - 4 - 8);

Oops, my bad (typo)!
Quote:

Originally Posted by fowlplay4 (Post 1541079)
PHP Code:

onCreateProfiles() 


:whatever:

Mark Sir Link 11-29-2009 10:41 AM

would be interested to see the GDT create a scripted replacement of the original UI to make it customizable

sssssssssss 11-29-2009 06:20 PM

Ah, is there a way to show only S and not A or D? Noticed its ASD in the show stats.

cbk1994 11-29-2009 08:16 PM

Quote:

Originally Posted by sssssssssss (Post 1541172)
Ah, is there a way to show only S and not A or D? Noticed its ASD in the show stats.

No, but it would be easy to make a scripted replacement.

Samposse 11-30-2009 10:53 AM

ye me 2

Switch 11-30-2009 06:16 PM

Quote:

Originally Posted by cbk1994 (Post 1541200)
No, but it would be easy to make a scripted replacement.

Take stats.png (or whatever you're using) and place them on your own.

Samposse 12-10-2009 12:04 PM

are you making a bomb,arrows and Rupees Server / gui (classic)
or Modern (bars and ammo and stuff like that `?)

Samposse 12-10-2009 12:04 PM

might help us help you :D

fowlplay4 12-10-2009 04:06 PM

Samposse.. if you need to add to your message use the http://forums.graalonline.com/forums...ttons/edit.gif button, and add it instead of making a new post.

sssssssssss 12-10-2009 09:04 PM

Classic amigo. Although, my problem is fixed at this point. :)


All times are GMT +2. The time now is 05:18 AM.

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