Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: I need some help  (Read 3376 times)

0 Members and 1 Guest are viewing this topic.

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
I need some help
« on: June 17, 2003, 09:35:42 PM »

Well, let's see if I can tell it right: I'm triying to do this options menu with scrollbars:


And I have this code to actualize the buttons position when the mouse is clicked over it, you know, the typical thing for a scrollbar:

[code]var meters;
var MoveButton;

on "LeftClick"
{
    MoveButton = true;
    meters.MouseY = Game.MouseY;    
« Last Edit: June 17, 2003, 09:36:35 PM by McCoy »
Logged

Click here to sign my sig!

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5679
    • View Profile
    • Dead:Code Site
Re:I need some help
« Reply #1 on: June 18, 2003, 06:45:32 AM »

I'll test it in the evening and I'll let you know what I've found, ok?


And another question: what's the difference between SystemExclusive and Exclusive? :P
SystemExclusive freezes the game, Exclusive doesn't. That's the only (major) difference.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:I need some help
« Reply #2 on: June 18, 2003, 08:56:55 AM »

Ok, thanx. Well, if there's no way to have only the window loop running while keeping all the rest paused, try to think in a way to actualize the buttons position without using loops. I'm out of ideas  :'(
Logged

Click here to sign my sig!

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5679
    • View Profile
    • Dead:Code Site
Re:I need some help
« Reply #3 on: June 18, 2003, 06:04:03 PM »

OK, it was a bug. The exclusive window shouldn't freeze its own controls. Also the Sleep() command didn't work correctly on the exclusive window.

I fixed that, please download the fixed version at: http://dead-code.org/download/wme_latest.exe
(I hope I didn't break anything else...).

I've also added the ability to set mouse pointer position:

Game.MouseX = 120;

I think you're gonna need it in this case...
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:I need some help
« Reply #4 on: June 18, 2003, 11:17:24 PM »

Wow, thanx for fixing it so quickly. I'll try it now.

And...

Quote
I've also added the ability to set mouse pointer position:

Game.MouseX = 120;

will do the same as  Game.SetMousePos(X, Y) ?
But anyway, I prefer Game.MouseX & Game.MouseY to define the mouse pos, so thanx again :) It will be very useful to keep the mouse inside the button while moving it trought the vertical bar, because the LeftRelease event must occur on the button to work, as you surely supposed  :P.
Logged

Click here to sign my sig!

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:I need some help
« Reply #5 on: June 18, 2003, 11:24:58 PM »

YES! YES! He's alive!... erm... It works!!!  ;D
Logged

Click here to sign my sig!

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5679
    • View Profile
    • Dead:Code Site
Re:I need some help
« Reply #6 on: June 19, 2003, 09:42:49 AM »

will do the same as  Game.SetMousePos(X, Y) ?
Yes, *exactly* the same. I won't go into details, but odnorf knows... :)


because the LeftRelease event must occur on the button to work, as you surely supposed  :P.
Right 8)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.179 seconds with 24 queries.