ID:139778
 
Code:
winset(usr,"LoginWindow","pos = [150],[150]")


Problem description:
So I was wondering where to put that winset at, mob/Login()? client/New()? also, how can I make it so it is after they logged in to have a msg for login? Like I have the login window so you need to press Login to go into the game, then see New, Load or Delete.


and for Mouse Dragging, I've looked at a lot of mouse demos but I can't seem to understand them or is any of them what I need... I want to be able to drag my character around and other players changing there x,y to where the mouse drops, can someone give exampl.
NarutoBleach wrote:
Code:
> winset(usr,"LoginWindow","pos = [150],[150]")
>

Problem description:
So I was wondering where to put that winset at, mob/Login()? client/New()? also, how can I make it so it is after they logged in to have a msg for login? Like I have the login window so you need to press Login to go into the game, then see New, Load or Delete.
Login seems like a good place. I'm not sure what else your asking though.


and for Mouse Dragging, I've looked at a lot of mouse demos but I can't seem to understand them or is any of them what I need... I want to be able to drag my character around and other players changing there x,y to where the mouse drops, can someone give exampl.
Aside from pixel offsets, on mousedown, hide the player some place safe, turn your mouse pointer into the players icon_state, on mouseup, move the mob to the new location. I used this technique in "Tower Defense: Clone Wars".

Look up mouse pointers.

ts
In response to Tsfreaks
Tsfreaks wrote:

Login seems like a good place. I'm not sure what else your asking though.

mob
Login()
winset(usr,"LoginWindow","pos = [150],[150]")
src.random = rand(1,3)
if(src.random == 1)
src.loc = locate(/turf/Login/LoginScreen1)
if(src.random == 2)
src.loc = locate(/turf/Login/LoginScreen2)
if(src.random == 3)
src.loc = locate(/turf/Login/LoginScreen3)
src << sound('flow remember.wav',1)
src << "<font size = 2><font color = #FF8040>Welcome to Naruto Bleach Assault!"
world << "<font size = 2><font color = #808000>[usr] has log in</font>"
src << alert("Don't Spam Bunshin, puppets, spam in OOC, or spam any other jutsu or attack... Also Visit Or forum For Updates and See whats goin on In game")

When I log on, I see the login screen with the alert... I want to see the alert after pressing login.
In response to NarutoBleach
Just move your alert(...) into the Login-Buttons verb/proc call.

so...

Double click on button, Options tab, and add 'CustomLogin' (don't add quotes) to the command input.

Add the verb to your mob and place the alert there.
mob
verb
CustomLogin()
alert(...);


ts
In response to Tsfreaks
Lol for my commands I have ".winset "mainwindow.is-visible=true;loginwindow.is-visible=false"" would I be able to put \nCustomLogin?
In response to NarutoBleach
This is what should happen.

- In your default window, add a child control. Set it to full screen and to anchor to top and bottom. In the Options tab of the child control, Add LoginScreen to the "Left/Top Window ID:"
- Hit OK and close out of your default window.

- Create a new window and name it LoginScreen. Go into the Options tab of the LoginScreen and check the box, this is a pane.
- Add a button to the LoginScreen called Login (as you wanted). Double click on the button. In the Options tab, is a field called "Command:". Type CustomLogin in that field.
- Hit OK and close out of your LoginScreen.

- Add a verb under mob called CustomLogin
mob
verb
CustomLogin()
alert("Hey you!");
winset(usr, "child1", "left=GameScreen") // This is how you would navigate the user to a new screen after you CustomLogin screen. child1 is the name of the child control we added in the default window.

Login()
// No need to do anything special here because the LoginScreen is the default view now.


That's all I have for tonight... gl.

ts
In response to Tsfreaks
Okay thanks.. I will try it out. :)