About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
GUI
Author Message
bart1234 Offline
Member

Post: #1
GUI
hello,

i have created interface for login stcreen/character selection and character creation. however if i go from loginscreen to character select screen the interface of the login screen doesnt go away.

so my first question is:
1.How can i make the interface of login screen go away as soon as i leave loginscreen.

also i have a button wich leads to homepage in loginscreen i want that if someone clicks that button to game minimizes and standard brwoser opens and goes to my website. i have tried different things also have used internet to find some more stuff about how to do this in c++ however none of the methods i tried worked so i was hoping someone can help me with that to.

thx for your time.

bart hertman
05-19-2011 06:27 PM
Find all posts by this user Quote this message in a reply
Semmy13 Offline
Member

Post: #2
RE: GUI
1) For the login gui you have to delete the GuiObjs.
You should have something like
PHP Code:
GuiObjs mLoginGui
and before leaving the login screen you have to perform:
PHP Code:
mLoginGui.del(); 

2) I don't know how to do it, I'm sorry pfft

Hope the first one could help grin
(This post was last modified: 05-19-2011 10:02 PM by Semmy13.)
05-19-2011 10:02 PM
Find all posts by this user Quote this message in a reply
bart1234 Offline
Member

Post: #3
RE: GUI
(05-19-2011 10:02 PM)Semmy13 Wrote:  1) For the login gui you have to delete the GuiObjs.
You should have something like
PHP Code:
GuiObjs mLoginGui
and before leaving the login screen you have to perform:
PHP Code:
mLoginGui.del(); 

2) I don't know how to do it, I'm sorry pfft

Hope the first one could help grin

haha i figured my first question had to be something as simple as that lol.

thx alot man to bad you dont know 2nd question i struggle with that one hihi cant get it to work oh well i leave those buttons without function for now. they arent nessecary anyways

thx for your time

Bart Hertman
(This post was last modified: 05-19-2011 11:06 PM by bart1234.)
05-19-2011 11:05 PM
Find all posts by this user Quote this message in a reply
SFCBias Offline
Member

Post: #4
RE: GUI
If you call mLoginGui.del(); then in order to return to your login screen you'd have to call create again AFAIK. You could simply do mLoginGui.hide();. then a corresponding .show();

Your second question

Code:
OSLaunch("yoururl.com");
(This post was last modified: 06-02-2011 10:40 PM by SFCBias.)
06-02-2011 07:44 PM
Find all posts by this user Quote this message in a reply
TBJokers Offline
Member

Post: #5
RE: GUI
(05-19-2011 10:02 PM)Semmy13 Wrote:  1) For the login gui you have to delete the GuiObjs.
You should have something like
PHP Code:
GuiObjs mLoginGui
and before leaving the login screen you have to perform:
PHP Code:
mLoginGui.del(); 

2) I don't know how to do it, I'm sorry pfft

Hope the first one could help grin

Do you really want to delete it? you could only do mLogingui.hide(); since you may want to use the login screen again like if you want to logg out. Then if you want to logg out you do mLogingui.show();

Man, it's always that semicolon...
06-02-2011 08:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #6
RE: GUI
it doesn't really matter that much, for something like this. It does free up memory though, and you can always load it again.
06-02-2011 11:33 PM
Find all posts by this user Quote this message in a reply
Post Reply