![]() |
keydown in gui
so i started scripting a new inventory with the new gscript2 gui stuff but i came to a problem not far into it . it has a bar on the right side of the screen with button's in it for items,weapons,armor,spells,prizes,stats,pets, and options and another smaller bar for brief discriptions . but it wont change the discription on mouse overs . ive tryed several way's and none have worked yet , can anyone help ? im not sure if i should do it in the button or with a timeout useing "in x, y" . ill have to do mouse to do different window's later too for the window to disply all stat's , or a list of item's or weapons .
PHP Code:
|
okay..first of all you don't have to do that many hide and shows...o___o
just hide or show the parent. |
in that script, there are no parent as I see..
|
Quote:
http://www.geocities.com/mysticalnin...winventory.png |
Loakey, if you made a bitmap for the GUIs it would look realy cool :p
(So they fit the GUI displaying HP, MP etc..) |
Add the buttons to the window, then you just need to show/hide the window instead of showing/hiding each individual button:
PHP Code:
PHP Code:
PHP Code:
|
ight , sounds simple enough . thank's stefan :)
|
PHP Code:
also, check out http://wiki.graal.net/index.php/Crea...ControlProfile for use of GuiControlProfile() |
well for the longest time sl has had some kind of personal made gui or inventory . what im attempting to do is to make a inventory and gui from the basic image's stefan and graal so graciously provided in the "graal/levels3d/gui" folder . its just my opion but there realy isnt anything gained in person images and out or the ordinary scripting . sometimes something really good looking and well working comes out , but not too often .
this last atempt to restore sl was not just to finish but to also upgrade everything and try to simplify it at the same time . to reconstuct the server and better organize it , make it all work at it's best but also make it so nothing takes a rocket scientist to figure out and do . also we talked to some oldbies to get a better understanding of what sl was ment to be in the begining . which isnt where sl was going . so were gona try to make sl more what it was intended to be while incorperateing what everone spent so long on . i got the actions to work but now i have a new issue , when they click a button a window open's display the weapon's or item's they have . but if they go to a different section i need to make the last place opened close before the new section open's . here's what i tryed just off the top of my head so yes i know its wrong . function ItemButtonWindow.onAction(){ @ client.lastclicked @ ListWindow.hide(); sleep("0.01"); ItemListWindow.show(); DiscriptionWindow.show(); DiscriptionText.show(); client.lastclicked = "Item"; } i just need to know how to make the hide command use a client string to define the prefix of the command . but im not even sure if it's possable . |
PHP Code:
|
Quote:
|
Quote:
Did that honestly warrant you reviving a thread that is nearly 3 years old? |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 03:28 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.