Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Feature request (https://forums.graalonline.com/forums/forumdisplay.php?f=194)
-   -   Gui Style setting (https://forums.graalonline.com/forums/showthread.php?t=77198)

Twinny 10-16-2007 10:29 AM

Gui Style setting
 
Could we get a readable setting to show what gui style the player has selected? Something like $pref::graal::guistyle? If it already exists, someone update the wiki :P

zokemon 10-16-2007 10:42 AM

As well as an event like onGuiStyleChange() or something, please.

Crow 10-16-2007 11:28 AM

*signs*
Yea, would be useful.

Twinny 10-16-2007 11:37 AM

My bad. Exists in http://wiki.graal.net/index.php/Crea...side_Functions as $pref::video::defaultguistyle but not in http://wiki.graal.net/index.php/Crea.../Script/Client .

zokemon 10-16-2007 11:57 AM

That's because I just updated that right now. To tired to add all the new things to Script/Client right now though. Will tomorrow maybe.

Still, would be nice to have that function. I notice that if I set style to that it will change it as soon as I change my style in options but onResize() and such aren't called to resize the child guis :(

Admins 10-16-2007 10:22 PM

Do something like this:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
// Create a new window and set attributes
  
new GuiWindowCtrl("MyWindow") {
    
// Use the default skin
    
style $pref::Video::defaultguistyle;

    
// Set the size of the window
    
clientrelative true;
    
clientextent = {320200};

    
// Set the position
    
120;
    
80;

    
// Set the title of the window
    
text "Hello Window";
  }
}

function 
onDefaultStyleChanges() {
  
MyWindow.style $pref::Video::defaultguistyle;



zokemon 10-16-2007 10:41 PM

onDefaultStyleChanges()!
Thank you! ^^


All times are GMT +2. The time now is 12:42 AM.

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